Advertisement

glTranslatef() problem

Started by March 07, 2001 07:27 PM
1 comment, last by Psyche 23 years, 8 months ago
Hello everyone. I have a problem with my glTranslatef() function. It won''t work correctly with the Z-axis. When I try to zoom in or zoom out to my model, it disappears after a while and it doesn''t even zoom! Does anyone have an idea why that''s happening? I just can''t figure it out. The function works perfectly for the x and y axis'' Thanks alot
T.J Birand
Remember that Z is pointing out of the screen. Or perhaps do you have a too big Z increment?
Advertisement
Actually i solved the problem. My Projection matrix was not set correctly, so the maximum depth i could draw to was 1.0f, -1.0f so when the object reached those boundaries, it wouldn''t draw anymore.
Thanks for your help though, greatly appreciated
T.J Birand

This topic is closed to new replies.

Advertisement