Jump to content
  • Advertisement


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


glTranslatef(float, float, float);

This topic is 6479 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
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()...


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..


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!