Sign in to follow this  
GogetaX

glTranslatef Problem(for me)

Recommended Posts

Hey all, im having a problem with that command.. it looks like once i set the Z distance between the object farer (glTranslatef(0,0,2), im unable to see it cuz its too far.. is there any way to increase the view range so i can see the whole model? (looks like the default range between the "camera" and the model is 1.0)

Share this post


Link to post
Share on other sites
I suggest you read "The Red Book" openGL manual or reference or whatever.
If you didn't do any transformations, (glRotatie, glTranslate etc), and/or you didn't set the projection matrix, than yes, that is the default range (sort of, not good in terms)

Share this post


Link to post
Share on other sites
but i am using glRotatef and besides, i want to render a whole 3d map, and as it looks, i see the most of the leasons that already included better camera range, but i seem like cant find the right command to do that.. any1 can help me with that?

i cant see anything behind 1.0 of camera range.. thats sux =/

Share this post


Link to post
Share on other sites
http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/glu/perspective.html

you can have an infinate range but its a little more complicated

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this