PDA

View Full Version : Stopping Translate



12-20-2000, 02:57 AM
glTranslatef(0.0f,meteory,meteorz);

i'm using the above code to move an object
but it also moves all the objects created after this object.

Is there a way that i can stop this from happening??

Nutty
12-20-2000, 03:06 AM
do..

glPushMatrix();
glTranslatef(0.0f, y, z);

//render your object here.

glPopMatrix();

should sort it.

Nutty.

j
12-20-2000, 07:18 AM
Or just go glLoadIdentity()

j

12-21-2000, 01:45 AM
thanks.
http://www.opengl.org/discussion_boards/ubb/smile.gif