POV-Ray : Newsgroups : povray.binaries.images : Corrosion : Re: Corrosion Server Time
6 Aug 2024 16:57:01 EDT (-0400)
  Re: Corrosion  
From: Rune
Date: 17 Nov 2006 08:45:12
Message: <455dbce8$1@news.povray.org>
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


Post a reply to this message

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