POV-Ray : Newsgroups : povray.binaries.images : Corrosion Server Time
6 Aug 2024 21:39:49 EDT (-0400)
  Corrosion (Message 11 to 11 of 11)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Trevor G Quayle
Subject: Re: Corrosion
Date: 17 Nov 2006 09:45:00
Message: <web.455dca48ed830b83c150d4c10@news.povray.org>
"Rune" <new### [at] runevisioncom> wrote:
> Trevor G Quayle wrote:
> > The mesh is generated
> > internally by SDL. It specifically is made to generate a torus.  Each
> > point position is calculated (depending on the determined mesh size)
> > as well as the surface normal for the undeformed point.  The point is
> > them deformed in the direction of the surface normal based on a
> > deformation function (granite was used here).  New surface normals
> > are then recalculated based on the new point location and the points
> > in it's immediate proximity (i.e. four points: up, down, right and
> > left) to give a fairly good and smooth result.
>
> Note that this is pretty much what the hf_torus macro does which is included
> with POV-Ray 3.5. It's always more satisfying to do things from scratch
> though. :)
>
> Rune
> --
> http://runevision.com

Much more satisfying...
Actually I never delve too much into the ready-made macros so I didn't know
it was there, perhaps I'll have a look at it.

-tgq


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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