<%@ include file="../../check-login.jsp" %> Subdivision.org: Re: problem with normals Catmull clark <% session.setAttribute ( "messageNum", new Integer ( 1398 ) ); %>

Re: problem with normals Catmull clark

Posted by Scott Schaefer on January 26, 2005 at 10:40:53:

In 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.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL: