Archived

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

ScallionODI

glTranslatef(float, float, float);

Recommended Posts

jwblair    122
gltranslate() just resets the originof your drawing.

So if you have your origin at (0,0,0) then do gltranslate(1,1,1) then your new origin is at 1,1,1 - but you can use it as 0,0,0

Please sea leson 2 for more details.

Also to move the camera - see leson 10 - but I dont like the way that they do it...

Please look here for the camera function...it is called gluLookAt()...


http://www.sun.com/software/graphics/OpenGL/manpages/gluLookAt.html

But I cant get it to work...you must use the projection matrix and the modelview matrix together..and since I am a newbie at opengl...I dont have a clue yet...but I am doing the research...

I will post my findings later..




Thanks!

John William Blair

Share this post


Link to post
Share on other sites