POV-Ray : Newsgroups : povray.text.scene-files : Simple Surface Macro Server Time
26 Dec 2024 12:14:46 EST (-0500)
  Simple Surface Macro (Message 1 to 1 of 1)  
From: Gordon
Subject: Simple Surface Macro
Date: 16 Mar 1999 21:46:12
Message: <36ef1774.0@news.povray.org>
Hi All,

I thought I would post this as I have noticed a couple of queries regarding
triangles and smooth-triangles. It is a set of macros that create a mesh
object using a user defined function to determine the height of each point.
It then calculates normals and creates smooth_triangles. It only calls the
height function once for each point in the grid, so is fairly efficient (and
the efficiency improves as the size of the mesh increases). Hope someone
finds it useful.

Feel free to use the code in whatever way you wish. There is also a file
containing a set of macros I use for simple animations. This is a little
like the classic clock mod suite, but no where near as comprehensive. The
best way to figure it out is play around. I usuallt use it for starting and
stopping objects at different times. If you "nest" the macros, you can get
more complex actions. I intend to come back to this at some time (like after
I get the water/particle stuff working).

The mesh macro is also the basis of the water macros I've been working on.
This project has got a bit more complex as I decided to include drop sprays
and showers and their interaction with the surface. So it will be a little
while before it is done.

Regards
Gordon
<gbe### [at] birdcameroncomau>


Post a reply to this message


Attachments:
Download 'SurfTest.pov.txt' (2 KB) Download 'GBGenMac.inc.txt' (2 KB) Download 'GBSurf.inc.txt' (8 KB)

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