POV-Ray : Newsgroups : povray.binaries.images : Inside the Crackle pattern (161KB) : Re: Inside the Crackle pattern (161KB) Server Time
3 May 2024 15:10:50 EDT (-0400)
  Re: Inside the Crackle pattern (161KB)  
From: SomeGuy
Date: 20 Oct 2000 01:01:21
Message: <39EE91BB.36F43756@earthlink.net>
i DL the source but i do not understand the if statement you referred to
...

I let the iso-surface do the work itself.
(-By using a pigment function inside an if statement. If the pigment
value in the middle of a "subcube" in 3D-space is above a certain
limit/threshold, a function is called to make a sphere in this
"subcube".
Else a constant outside the limit is returned.)

What does this statement exactly do... Or better yet how does it do what
it does...
How are the arguments read...?

if(
      MidOfCrackleSquare(x, y, z) - Threshold,
      ManySpheres(x, y, z),
      1
    )

Im guessing if mid of crackle square... then do many spheres... what is
the 1... threshold...?
please help,


Post a reply to this message

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