Hi I have been playing around with opengl a little bit, but now I got a problem I can't figure out.
When I draw something, if I draw it at glTranslatef(0.0, 0.0, 1.5); I see it but when I draw it onto glTranslatef(0.0, 0.0, 1.51); it doesn't get drawn or atleast I'm unable to see it.
Beginner problem with opengl
It's impossible to tell without seeing some code. However, as a guess, if your eyepoint looks along the +Z axis and you have the far plane of your projection matrix (assuming it's a perspective matrix) set to 1.5, then nothing beyond 1.5 units from your eyepoint will be drawn.
If that's how you have the projection matrix setup, try setting the near plane to something like 0.1, and the far plane to something like 1000.0.
If that's how you have the projection matrix setup, try setting the near plane to something like 0.1, and the far plane to something like 1000.0.
Quote:Original post by Buckeye
It's impossible to tell without seeing some code. However, as a guess, if your eyepoint looks along the +Z axis and you have the far plane of your projection matrix (assuming it's a perspective matrix) set to 1.5, then nothing beyond 1.5 units from your eyepoint will be drawn.
If that's how you have the projection matrix setup, try setting the near plane to something like 0.1, and the far plane to something like 1000.0.
Thanks a lot that was the problem.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement