• Popular Now

• 15
• 15
• 11
• 9
• 10

Archived

This topic is now archived and is closed to further replies.

matrix issue...

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

Recommended Posts

I have a linked list system for the entities. Im using glLoadMatrix along with my math class to handle transformations. Im sure this is a trivial question.. Anyway, I added a terrain to the scene graph as the root node and then attached a child entity to the terrain. When I try and move around in the world, nothing happens. So, this is really 2 questions in 1. first off, if your using glLoadmatrix, can you still move the object around using gltranslate/rotate? glTranslatef(cam...) ... DrawObject(); //load matrix is in this function... 2: (vague) is this correct?... child entitie's matrix code (example)
glPushMatrix();
mpTransform.SetTranslation(mpPosition); //vector function

mpTransform.SetRotation(mpRotation);
glMultMatrix(mpTransform);
...

Does anyone see what im doing wrong? (note that I have tried switching mpParent->mpTransform to multmatrix, but no change). Im relatively new to using glLoadMatrix to handel transformations, ive always used glTranslate/rotate before this. Thanks a lot in advance guys! ~No1 [edited by - no one on February 21, 2004 4:11:15 AM]