View Full Version : No Clipping
03-22-2012, 11:23 AM
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, 11:42 AM
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, 11:47 AM
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, 12:38 PM
Thanks, that solved the problem. :)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.