Jump to content
  • Advertisement
Sign in to follow this  
Nameles

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

This topic is 4614 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!