> >  If so, how would you calculate the normal vector at v(1)?  Is it the
> > average of two normal
> >  vectors calculated from two triangles that share v(1)?
>
> Yup.  To generate smooth normals, average the the normals of all the triangles
> which are adjacent to the vertex.  For best results, weight the vectors based on
> the area of the triangles (i.e. large triangles have more affect on the averaged
> normal than small triangles).

We weight vectors proportionally to the inverse of the triangle's area.
When triangles are generated as an iso-surface of a field, some folks
generate normal vectors by estimating the field's gradient (the direction
of fastest increase in field values).  You might want to experiment with
different schemes.


=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to