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

## 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.

## Create an account

Register a new account

• ## Partner Spotlight

• ### Forum Statistics

• Total Topics
627642
• Total Posts
2978354

• 10
• 12
• 22
• 13
• 33