Sign in to follow this  
Enjoy

Frustum problems

Recommended Posts

Hello everyone, In my game I am using some simple frustum culling. It is calculating, basing on combined matrix (PROJECTION X MODELVIEW). Culling is working right for me only for a NEAR plane. If I am trying to cull LEFT and RIGHT planes, too much culling is taking place. And also, NEAR plane culling is working in an inverse way. I mean, that it should be: if ( plane_point_dist(point) < - sphere_radius) cull; But for me is working: if ( plane_point_dist(point) > sphere_radius) cull; Why could this be? Thank you in advance, Ilya.

Share this post


Link to post
Share on other sites
I think you need to provide some more information if someone is going to be able to help you. (some relevent source code snippets).

There are other methods for calculating the view frustum that does not involve using OpenGL's modelview and projection matrices though:

This method works great for me

I hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this