SetNormal() doesn't work

Jan 27, 2011 at 11:20 PM

 

I create a Geometry and set the vertex, normal and faces. When I add a light, it is still dark.

but after add this code

 GeometryHelper.CalculateNormals(FullDetailLevel);
 
the result seems right.
so I'm wondering how can I define the normal by myself, no need GeomtryHelper to calculate.
Thanks!!!
Coordinator
Jan 29, 2011 at 10:36 AM

Are you calculating the vertex normals and are you setting the face.NormalA,B,C to point on the normal you create?

 

Jan 29, 2011 at 12:08 PM
adept wrote:

Are you calculating the vertex normals and are you setting the face.NormalA,B,C to point on the normal you create?

 

 

I set the vertex normals, but didn't set the face.NormalA,B,C.  It can work now. 

Thank you