Forums > Jitter

is there a way to turn off clipping planes?

Jun 10 2011 | 2:23 am

Clipping planes are destroying my 3d models. The surfaces are being chopped up related to the value of the near_clip attribute. I created a hack to work around this, but was wondering if there’s a way to just turn off clipping planes and be able to zoom and move the camera wherever I want without the surfaces of the model distintegrating? I’ve found very limited info on glEnable and glDisable regarding this, but not enough to know what to implement correctly.

Jun 20 2011 | 5:58 am

Images below are examples of the destruction clipping planes are causing. The first is how the model should look. The second is the effect the clipping plane is having. Has anyone else experienced this?

[attachment=164654,2377] [attachment=164654,2378]

  1. clipplaneeatup2.jpg


Jun 21 2011 | 1:24 am

You can’t in the strictest sense turn "off" clipping planes. The planes tell OpenGL where to start and stop rendering if not to infinity… And as we all know, infinity in computer speak is crash and burn. OpenGL may have safeguard to prevent it, but why take the performance hit?

Can you just adjust the clipping planes to compensate? And move the camera and/or model’s z values?

@near_clip 0.1 @far_clip 1000 @camera 0. 0. 100.

Jun 21 2011 | 2:45 am

Yeah, that’s pretty much what I’m doing right now, and it works ok.

I’m wondering if glEnable and glDisable might be able to fix this problem though. I can’t find much info at all on these two attributes and how they work in max/jitter though.

Jun 21 2011 | 5:55 am

Are you sure that is not a front and back face culling issue? It looks like you are not culling the back faces. Without a patch and a model it is hard to tell.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > Jitter