Camera and Frustrum Culling

Started by
1 comment, last by Marvin 22 years, 7 months ago
How does the use of a camera affect frustrum culling? eg i use the rotatef and translate method to move my cammera... glRotatef(camera.yaw, 1, 0, 0); glRotatef(camera.pitch, 0, 1, 0); glRotatef(camera.roll, 0, 0, 1); glTranslatef(-x, -y, -z); and my frustrum culling does not seem to work if i move my camera to far from 0,0,0 , almost seems as if this code dosnt modify the frustrum? someone help, this is way ablove my head. btw the frustrum culling i use is described at.. http://www.markmorley.com/opengl/frustumculling.html Thanks
Advertisement
I just had a quick look over the article, but it actually works by extracting the frustum limiting planes from the modelview/projection matrices.

With your glRotate and glTranslate you modify the modelview matrix, so you have to update the clip planes by calling ExtractFrustum() each frame (after you updated your camera)
Seems pretty much as im doing then, must be something else i have done wrong, thanks

This topic is closed to new replies.

Advertisement