POV-Ray : Newsgroups : povray.binaries.images : Crackle - are we bored yet? : Re: Crackle - are we bored yet? Server Time
19 Apr 2024 15:00:19 EDT (-0400)
  Re: Crackle - are we bored yet?  
From: Bald Eagle
Date: 2 Dec 2022 15:50:00
Message: <web.638a64b97dc652cc1f9dae3025979125@news.povray.org>
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

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