Rotation Dilemma

Started by gyroninja, December 28, 2011, 22:16:50

Previous topic - Next topic

gyroninja

I have a large world made up of 9 x 9 chunks made up of 16 x 16 x 128 blocks. I want to rotate the whole world. When I pass the rotate to all the blocks they just rotate independently. I want them to rotate as a whole all rotate around the "camera".

CodeBunny

Depends on how you are rendering the scene. If you are just passing vertices to the ModelView matrix (no glLoadIdentity() calls, etc), then using glRotate should work just fine.