Sign in to follow this  

Expanding the frustum

Recommended Posts

Hello; Im implementing some shadow volume (from objects) in my terrain, using the Sun (directional, infinite volume) as the light it i only test if the light is on view, and witch objects r inside that volume, ill get ALL objects casting shadows ( for example, if a spaceship is right above, not inside the view frustum , if u look at the grounf u can see its shadow), but its obvious that wont run very fast... So i wanna expand the frustum, using an amount variable (or % or in meters), to get the objects that could cast shadows in the scene...i read about super frustum , but i didnt find any code to expand it, and i dont wanna a big bounding sphere around the player to do my tests....if anybody could help me...thanx!!

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