Jump to content
  • Advertisement
Sign in to follow this  
bovinedragon

Line - Triangle Collision and Normals

This topic is 3934 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

Any one have a good link for this? I have read a few sites on this subject, and they use the normal to the plane. I have all the normals of the vertexes, how would I convert this into the normal of the plane? I tried adding up the components, then diving by three. That makes the right vector, but its not normalized right? What is the difference between a normalized normal and a unnormalized one? Isnt it still the same normal, just a different length? Does this affect how it renders(like for lighting)?

Share this post


Link to post
Share on other sites
Advertisement
You can calculate the triangle normal directly from the vertices, without using their normals. Just do (C-A)x(B-A) for vertices A, B, and C, and then normalize.

Share this post


Link to post
Share on other sites
Quote:
Original post by bovinedragon
What is the difference between a normalized normal and a unnormalized one? Isnt it still the same normal, just a different length? Does this affect how it renders(like for lighting)?


A normalized vector is a unit vector. It's a mathemactical description of a geometry's orientation.

Unnormalized vectors are typically used to describe magnitude/distance AND direction.

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!