Does Any One On Here Getting Garbage Values On Lesson 48?

This topic is 3555 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I am confused, when I implemented the Matrix class in my game engine, its seems my model's scales are messed up or the vertexes are. For one thing I keep getting this value on this line: glMultMatrixf(Transform.M);. Value On Transofrms. -1.0737418e+008 It keeps showing up on all the Transform's variables that are in my game engine, idk how it's happening since I just added the matrix class in it's own file, like the source code shown and mod my core so it enables right click and left click which work. Can someone help me with this issue? I would appreciate any help since I am rock bottom stuck on this. How I set up glMultMatrixf:
glLoadIdentity();
glTranslatef(0.0f,  0.0f,-90.0f); //Move model forward.

glPushMatrix();

glMultMatrixf(Transform.M);

//Draw model method here

//glPopMatrix.


Thanks, Andrew.

Share on other sites
The code you posted does not show how you're computing your Transform matrix and it's not clear what's going wrong. Could you please be more concise?

Share on other sites
Oh I see, because of my Matrix variable's weren't global and I had them in a class where they couldn't add the correct value to each other, so thats why I got a garbage variable in return.

Sorry, but this thread can get locked or deleted.

1. 1
2. 2
Rutin
24
3. 3
JoeJ
19
4. 4
5. 5

• 17
• 40
• 23
• 13
• 13
• Forum Statistics

• Total Topics
631730
• Total Posts
3001917
×