Jump to content
  • Advertisement

Archived

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

ScallionODI

glTranslatef(float, float, float);

This topic is 6397 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, I still dont get what gltranslatef does. Does it move the camera around? does it move an invisible cursor? if it doesnt move da camera, what will move the camera?

Share this post


Link to post
Share on other sites
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!