PDA

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



WelshWonder
02-24-2011, 02: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.
http://dl.dropbox.com/u/21986480/Untitled.jpg

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?

bcthund
02-24-2011, 02: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);

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