PDA

View Full Version : Reset view at origin



CGagnon
04-05-2008, 01:57 PM
Hi,

My application draws axes X, Y and Z.

I utilize GLUT user interface. I do rotation and translation with controls from GLUT.

How can I reset the view to the origin axes ?

Thanks,

Claude

ZbuffeR
04-05-2008, 02:11 PM
Use glLoadIdentity() when in modelview matrix mode.

But for translate/rotate it is often better to do that each frame, and then translate/rotate with the total value, instead of doing it incrementally as you seem to be doing currently.