|
|
kurtz le pirate <kur### [at] gmailcom> wrote:
> This kind of code is a very big mystery to me :(
> T-O-K also uses it a lot in his code about complex functions.
It doesn't need to be, and once you understand the basics of how it works, it's
a very powerful technique that you can use a wide variety of purposes.
You can get a simple idea of how it all works by defining a simple distance
function to any pixel. vlength (x, y, z) is the Euclidian distance to any
pixel from the origin.
So just do:
#declare Distance = function {vlength (x, y, z)}
and then do
plane {z, 0 pigment {function {Distance (x, y, z}}
> It's strange from you ...
> Is your code recursif ?
It's not - it's a few simple functions that are just layered together. I just
wrote a description of how it all works.
Post a reply to this message
|
|