POV-Ray : Newsgroups : povray.general : auto normals for mesh? Server Time
6 Nov 2024 00:27:25 EST (-0500)
  auto normals for mesh? (Message 1 to 3 of 3)  
From: Lazarus Plath
Subject: auto normals for mesh?
Date: 27 Oct 2004 07:19:18
Message: <qqazxxsw-79D573.06191527102004@news.povray.org>
I have a mesh2 that only lists vertices, faces and uv.

I want to render it smooth using what I consider the default or implied 
normals, that is, a verts normal is the sum of normals of the faces that 
use the vert.

Is there keyword or some way to tell pov to do this or do I need to 
calculate it myself? -few


Post a reply to this message

From: Warp
Subject: Re: auto normals for mesh?
Date: 27 Oct 2004 08:46:56
Message: <417f98c0@news.povray.org>
Lazarus Plath <qqa### [at] yahoocom> wrote:
> Is there keyword or some way to tell pov to do this

  No. Perhaps pov4 will, but that's something far in the future.

> or do I need to calculate it myself?

  Try the surface subdivision suite macros (googe should find them).
IIRC they had something like what you want.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Lazarus Plath
Subject: Re: auto normals for mesh?
Date: 29 Oct 2004 01:36:35
Message: <qqazxxsw-00DE22.00363329102004@news.povray.org>
In article <417f98c0@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Try the surface subdivision suite macros

Thanks, they look like they'll do it! -laz


Post a reply to this message

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