What's new

N64 Glide Plugin

Status
Not open for further replies.

Dave2001

Moderator
Hmm.. it appears to be YET ANOTHER matrix problem. :devil:

An interesting effect:
When I comment out the last line in matrix multiplication, the zooming in the game works perfectly, but the mario logo, text, and portraits do not work.


void modelview_mul (float m[4][4])
{
float m_src[4][4];
memcpy (m_src, rdp.model, 64);

for (int i=0; i<4; i++)
{
for (int j=0; j<4; j++)
{
rdp.model[j] =
m_src[0] * m[j][0] +
m_src[1] * m[j][1] +
m_src[2] * m[j][2]/* +
m_src[3] * m[j][3]*/;
}
}
}


or even more specific, if I don't add the projection matrix's z:

v.x = x*rdp.proj[0][0] + y*rdp.proj[1][0] + z*rdp.proj[2][0] + rdp.proj[3][0];
v.y = x*rdp.proj[0][1] + y*rdp.proj[1][1] + z*rdp.proj[2][1] + rdp.proj[3][1];
v.z = x*rdp.proj[0][2] + y*rdp.proj[1][2] + z*rdp.proj[2][2];// + rdp.proj[3][2];
 
Last edited:

Martin

Active member
Administrator
Great thread, but it's getting a bit big. Mind if I split it into two threads?
 
OP
Dave2001

Dave2001

Moderator
Sure, go right ahead.

I don't believe it!!! I should have listened to myself earlier. I fixed the zooming problem. You ARE supposed to divide by w instead of z during the 3d->2d stage.

Now princess shows up, and also it doesn't get too close to mario when in mario camera mode.

(don't ask me HOW I figure all these strange things out, it just kinda happens, and very quickly at that :D)
 

Martin

Active member
Administrator
Alright, first time I'm splitting a thread. Let's hope it works okay. :)

:emutalk1:
 

Quvack

Member
Lol, the thread split perfectly, the gfx plugin's errors are getting fixed, and im eating BBQ Shapes, lifes good ;)
 

Glize

New member
Great work Dave!

Works very well on my V3 2000, PIII 550Mhz and WinXP.

Quick question:

What's the next game you are going to concentrate on?
 

icepir8

Moderator
Dave2001 said:
Hmm.. it appears to be YET ANOTHER matrix problem. :devil:

An interesting effect:
When I comment out the last line in matrix multiplication, the zooming in the game works perfectly, but the mario logo, text, and portraits do not work.


void modelview_mul (float m[4][4])
{
float m_src[4][4];
memcpy (m_src, rdp.model, 64);

for (int i=0; i<4; i++)
{
for (int j=0; j<4; j++)
{
rdp.model[j] =
m_src[0] * m[j][0] +
m_src[1] * m[j][1] +
m_src[2] * m[j][2]/* +
m_src[3] * m[j][3]*/;
}
}
}


or even more specific, if I don't add the projection matrix's z:

v.x = x*rdp.proj[0][0] + y*rdp.proj[1][0] + z*rdp.proj[2][0] + rdp.proj[3][0];
v.y = x*rdp.proj[0][1] + y*rdp.proj[1][1] + z*rdp.proj[2][1] + rdp.proj[3][1];
v.z = x*rdp.proj[0][2] + y*rdp.proj[1][2] + z*rdp.proj[2][2];// + rdp.proj[3][2];


Dave2001,

The modelview matrix is handled a little differently then the projection matrix.

the modelview should only deal with x,y and z values while the projection matrix deals with x,y,z and w values.

maybe this will help out.

Cya,

Icepir8

:tr64:
 

Cyberman

Moderator
Moderator
Cool

Now if only one could do something similiar to ye olde PSX. Unfortunately you are stuck with there GTE seperate from the GPU (heh).

Well Dave if you have any questions feel free to express your anger.. err ;) express them here ;)

Cyb
 

Swampylee

New member
This is so cool. Watching a plugin progress is awesome.

Can we have more screenshots when you get a chance please?

Thanks, and great work.
-Swampylee
 

Renegade

Wearer of Army Boots
at least we know it's not a HYDRAHLE thing.
(what if dave2001 had said, "I'm developing a new plugin for Glide2x users!!! it can run Mario64 very well!!! too bad I feel that it doesn't need to be released though")

on the flip side, very good work dave2001!
 

2fast4u

New member
gokuss4 said:
just a little issue for me but whats wrong with the sky?

hmm... i think i remember having that same problem already in ultrahle. could be glide's fault then. ???
 
Status
Not open for further replies.

Top