How do you use normals in D3DIM?
How do you calculate and use normals in Direct3D immediate mode? I can''t find a tutorial anywhere that shows how to use them. Please help. Thanks!
Dave2001,
MAILTO(Forrester6@msn.com);
First you need to know which triangles share the same vertices. Then for each vertex compute the average of the normals for the triangles that use it. Use this averaged normal for the vertex normal, and you''ll get smooth shading of your model. (Don''t forget to renormalize the normal, so it is of unit length)
- WitchLord
- WitchLord
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement