POV-Ray : Newsgroups : povray.general : Problem with normals? in mesh2 : Re: Problem with normals? in mesh2 Server Time
29 Jul 2024 22:29:31 EDT (-0400)
  Re: Problem with normals? in mesh2  
From: Alain
Date: 10 May 2010 19:52:43
Message: <4be89c4b$1@news.povray.org>

> Thanks!  I tried simply turning off the normals and it looked better.
>
>
> But what would I have to do to make a value-add normal?  Take the case of mesh2
> that is a torus (or an arbitrary bend if you're tempted to tell me the math for
> a torus' normal).  I'm guessing having my normal be merely "normal" to the
> triangle itself would be pointless.  But how many surrounding points would I
> need to use-- the eight surrounding points, or what?
>
>
>
>
>
>

In most cases, it's the average of the normals at the center of the 
triangles touching the point. If not the actual average, then reasonably 
close to that.

Depending on the situation, 3 points can be enough, but you probably 
need to use 6 points, and sometimes, 8 or more. Use the vertices that 
connect to a point.



Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.