Forums > Jitter

are near_clip & far_clip inactivating OB3D from the openGL context ??

June 1, 2012 | 4:08 pm

Hi there,

I have my routine that track the distance between ALL my objects & my current position (cam position)
This updateDistance() routine is launch when an object’s position change and when the cam position change.

if the distance is beyond a particular limit, the object is disable from the OpenGL context, which reduce CPU job (and thus makes me quieter :p)

BUT I just thought about near & far clip.
Does they work only for visuals purpose ?
Is an object not currently visible processed yet by the CPU ?

Any ideas around this would be appreciate.


June 1, 2012 | 5:15 pm

hi julien.
near/far_clip are used by opengl for the projection clipping stage of the rendering pipeline.

so no, they do not remove the ob3d from the context or from CPU processing, they simply will clip out any vertices outside the projection frustum.


June 1, 2012 | 5:17 pm

Ok got it .
thanks Robert.


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