POV-Ray : Newsgroups : povray.general : Calculate normal vector? : Re: Calculate normal vector? Server Time
1 Aug 2024 14:35:00 EDT (-0400)
  Re: Calculate normal vector?  
From: Tim Nikias
Date: 9 Sep 2005 13:54:45
Message: <4321cc65$1@news.povray.org>
Like Slime said. Take the vertices and look which triangles share that
vertex. Add the normals from those triangles together, and use vnormalize()
to normalize it. Then use that normal for the vertex. Repeat for all
vertices.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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