Jump to content
  • Advertisement
Sign in to follow this  
robydx

Per vertex normals

This topic is 4751 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 need to compute vertex-normals for triangle polygons. What's the right math formulas?

Share this post


Link to post
Share on other sites
Advertisement
Depending upon exactly what you mean, you can just average the face normals from any triangles sharing a particular vertex.

(face normals can be found by taking a cross product of two edges of a triangle)

Share this post


Link to post
Share on other sites
Assign to each vertex, the average normal of the triangles that have that vertex or one coincident, except those triangles that form an angle too great. Split those triangles off into another normal group. Another possible exception is triangles that use different materials, but it depends upon the material.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!