POV-Ray : Newsgroups : povray.general : Smooth normals for mesh2 objects : Smooth normals for mesh2 objects Server Time
29 Jul 2024 00:29:34 EDT (-0400)
  Smooth normals for mesh2 objects  
From: David Given
Date: 6 Dec 2013 08:26:55
Message: <52a1d09f$1@news.povray.org>
Is there a way to get Povray to automatically calculate smoothed normals
for a mesh2?

I'm generating huge meshes from an external procedural terrain
generator. The generator assumes that the renderer doesn't need explicit
normals, so not only does it not write them but it lacks the
functionality internally to go from a vertex to the facets containing
the vertex. So adding support for calculating smoothed normals is going
to be non-trivial.

Most other renderers I've looked at have an option to do this
automatically. Does Povray?

-- 
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│ "There does not now, nor will there ever, exist a programming
│ language in which it is the least bit hard to write bad programs." ---
│ Flon's Axiom


Post a reply to this message

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