View Full Version : Rendered cube when rotating corners 'cut'

02-24-2011, 01:31 PM
Hi again people,

Another quick (and probably dumb) question.

I have created my rotating, textured cube. However when I rotate it, at specific locations the corners of the cube are cut/not visible.

I really can't work out why, but I think it has to do with my glulookat call as if I move the location closer the cutting seems to reduce/stop. Is their an automatic non-render/cutoff point for distant points?

02-24-2011, 01:41 PM
Looks like you need to increase your far clipping plane, the last value in the following command sets the far clipping plane if this is the command you use:

gluPerspective(fov, screen.w/screen.h, near, far);

02-26-2011, 06:17 AM
Thanks a lot bcthund, that helped me solve it :)