• Welcome to Dark Bit Factory & Gravity.
 

This one should be easy. glTranslatef ?

Started by ScottyBrosious, December 30, 2006

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ScottyBrosious

gltranslatef(x,y,z)

Say I wanna position something at
glTranslatef(-30,0,0)

then rotate it (just) around that point
how do I do it without it revolveing all around the screen?

then also
next object at

glTranslate(-15,0,0)

it rotateing around just that point also
without revolveing all around the screen?

last question
do I also have to glTranslatef(0,0,0) before second objoect?

Please would someone explain to me
glTranslatef()
and also how to rotate some oject around that point (only)?

Thanks
and some short code would be nice


taj

Hi scotty the trick is to do things in reverse in opengl.

So
glTranslate (x,y,z)
glRotatef (ang,1,1,1)
drawobject...

will do what you want.
Challenge Trophies Won: