|
![](/i/fill.gif) |
>
> On Tue, 5 Mar 2002 09:12:47 -0600, "Shay" <sah### [at] simcoparts com> wrote:
> > The weighted normals look better. Is this the case with every mesh?
>
> This is just more accurate method of averaging.
>
> > This goes against everything I have seen concerning mesh normals.
>
> Not exactly. Weighting is just longer and result is visible when there are
> differences in triangle area.
>
> > By a weighted average, do you mean simply not normalizing the normal of each
> > triangle?
>
> Considering you have N triangles with vertex P:
> - take all N normals as previously
> - normalize them as previously
> - new step: multiply/adjust according to area of triangle
> - add all N normals as previously
> - normalize this sum as previously (I'm not sure it is necessary)
>
> So only new thing is muliplying. This is done to save larger triangles more
> float.
Wlodek,
if the triangle normals are calculated
with cross products, then step 2 and 3
above are not necessary.
Also see my reply in this thread to Josh
Seagoe some minutes ago:
http://news.povray.org/%3C3C86A730.785EA5C1%40hotmail.com%3E
news://news.povray.org/3C86A730.785EA5C1%40hotmail.com
Tor Olav
Post a reply to this message
|
![](/i/fill.gif) |