View Full Version : No Clipping
03-22-2012, 12:23 PM
How is it possible to stop or highly reduce clipping because in a simple 3D world I created objects seem to 'fall behind the screen' a long time before they should when you moving around?
This screen-shot might illustrate my problem better.
03-22-2012, 12:42 PM
Set front (near) clipping plane distance (e.g. in gluPerspectice) to lower value. But never to 0. Keep far/near lower than 1e6 in order to have acceptable resolution with 24-bit Z-buffer.
03-22-2012, 12:47 PM
In addition, you can switch off the depth-test for fragments in front of the near plane: glEnable(GL_DEPTH_CLAMP);
Note that this can introduce artifacts, e.g. your grey plane could overwrite your wireframe rendering (just in front of the near plane of course).
03-22-2012, 01:38 PM
Thanks, that solved the problem. :)
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.