POV-Ray : Newsgroups : povray.general : Macros : Re: Macros Server Time
20 Nov 2024 08:25:04 EST (-0500)
  Re: Macros  
From: Tom Melly
Date: 3 Oct 2001 12:25:27
Message: <3bbb3bf7@news.povray.org>
<dav### [at] intrepidvoygrcom> wrote in message news:3bbb3503@news.povray.org...
> Tom,
>
>   I've picked up MegaPov and tryin to learn Iso Surfaces... I was never much
good at trig.. time to brush up.. :)
>
> Thanks for all yoru help everyone!
>

There are some excellent iso-tutorials around - check the povray links. For
simple rocks, you might find a few blobs plus some normals would do the job -
e.g.

#declare StrengthVal = 1.0 // (+ or -) strength of component's radiating density
#declare RadiusVal   = 1.0 // (0 < RadiusVal) outer sphere of influence on other
components
blob
{
  // threshold (0.0 < threshold <= StrengthVal) surface falloff threshold #
  threshold 0.6
  sphere { < 0.75,   0,    0>, StrengthVal, RadiusVal }
  sphere { <-0.375,  0.65, 0>, StrengthVal, RadiusVal }
  sphere { <0.375,  0.65, 0.2>, StrengthVal, RadiusVal }
  sphere { <-0.175, 0, 0>, StrengthVal, RadiusVal }
  sphere { <-0.175, 0, -.25>, StrengthVal, RadiusVal }
  // [sturm]
  scale 2
  pigment{agate pigment_map{[0 Gray40][1/2 Gray50][1 Gray60]}}
  normal{granite}
  normal{agate}
}


Post a reply to this message

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