Advertisement

glTranslatef(float, float, float);

Started by March 20, 2001 07:41 PM
1 comment, last by ScallionODI 23 years, 8 months ago
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?
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
Thanks!John William Blair "The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of the darkness. For he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee."
http://members.home.com/chucklez/wtc/index.html
Advertisement
http://www.xmission.com/%7Enate/tutors.html

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement