Sign in to follow this  
Nameles

Direction of frustum normals... inny or outy does it matter?

Recommended Posts

I know that it the direction does mater when it comes to the math, but given that all the code is written to work with the chosen direction, pointing in or pointing out, is it just personal preference or is there an argument to be made for one over the other?

Share this post


Link to post
Share on other sites
Consistency dictates that as long as you know what you're using, it doesn't matter. Convention dictates that the normals point inwards, since inside is where things are supposed to be. It's the same reason collision hull normals point outwards; outside is where things are supposed to be.

Share this post


Link to post
Share on other sites
That makes sense, and it’s the same reasoning I've been using. I implemented my frustum code with normals pointing inward and my hull code with normals pointing outward. It seemed very natural to me but I wanted to be sure I wasn’t missing something.

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