Sign in to follow this  
ajm113

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

Recommended Posts

ajm113    355
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 this post


Link to post
Share on other sites
Caste    973
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 this post


Link to post
Share on other sites
ajm113    355
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this