Rendered cube when rotating corners 'cut'

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?

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);

Thanks a lot bcthund, that helped me solve it :slight_smile: