%@ include file="../../check-login.jsp" %>
Re: problem with normals Catmull clarkIn Reply to: problem with normals Catmull clark posted by suneel on November 13, 2004 at 04:01:14: : hi i was trying to implement the catmull clark subdivision. i am having trouble in calculating the normals. i calculate the normals based on tangent vectors , but i am not getting it rt.i am using a cube with 6 faces, each having a valence of 3 intially. below is the sample of my code : if anyone knows whats wrong with this pls tell me. sometimes my cube becomes bright and sometimes very dark as i rotate it. Have you tried displaying the normals to see where they point? That's one of the first things I would do. Make sure that you're also subdividing the surface a few times before displaying. Just showing a cube will of course generate shading artifacts because there are not many vertices to sample the smooth function with.
|