Sign in to follow this  
draculr

Most efficient way to get frustum values?

Recommended Posts

Hey, I need the smallest and largest x and z values from my frustum (between the near clipping plane I have set in my perspective view, and an arbitrary far clipping plane)... I was wondering what the most efficient way would be to get that data? Thanks

Share this post


Link to post
Share on other sites
You would unproject a window space coordinate to object space with gluUnproject.
The window coord, you can set to {x, y, 1.0} and another for {x, y, 0.0}

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