Jump to content
  • Advertisement
Sign in to follow this  
brekehan

normals

This topic is 3277 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 am confused between these two methods of defining normals: 1) 3 triangle vertices, all have the same normal, which is the same as the face normal. 2) 3 triangle vertices, all have thier own normals, which is a direction relevant to the origin. When averaged the result is the face normal. I've always used 1 and it seems to have proper results in my lighting. When do we use 2? Reason I ask, is if I use 2 for my generated sphere, I can use use a index buffer to save on data passed, where I cannot if I use 1. Method 1 results in the shared edges needing seperate vertices.

Share this post


Link to post
Share on other sites
Advertisement
Use 2 when the surface is curved like the case of a sphere.
In the case of a sphere, each normal is normalize(vertex_pos - center_pos)

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!