GL Clipping Distance

vance's picture

Hi,

Does anybody know how to change the clipping planes in QC? I can't seem to have sprites or objects beyond about 90 units from the camera.

Do I have to use ortho? There must be a way, it is pretty straightforward in other apps.

thanks holystrokes.com

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

cwright's picture
Re: GL Clipping Distance

QC doesn't use any clip planes by default. That doesn't necessarily mean that clipping doesn't happen, mind you, it just means that there aren't simple planes to tweak to "fix" it.

Clipping in QC happens because of how the GL frustum is set up (I think -- I've not experimented extensively with it, as it would take a bit of time). see http://www.opengl.org/sdk/docs/man/xhtml/glFrustum.xml for some details.

We could make a frustum patch in a future version of gltools, assuming it'll address this.

(Note that simply setting near and far to a bazillion units apart will make your depth buffer 99% useless, that's the tradeoff)