POV-Ray : Newsgroups : povray.binaries.images : Delving into the bozo world (144KB) : Re: Delving into the bozo world (144KB) Server Time
29 Apr 2024 01:02:30 EDT (-0400)
  Re: Delving into the bozo world (144KB)  
From: Tor Olav Kristensen
Date: 18 Oct 2000 19:27:21
Message: <39EE30C1.6B71D3FF@hotmail.com>


> Tor Olav Kristensen wrote:
> >
> > Can you please explain ?    Is there any other way to do this ?
>
>         Something like that should work:
>
> #declare ManySpheres = function {
>   sqrt (sqr (x-floor(x)-0.5) + sqr (y-floor(y)-0.5) + sqr
> (z-floor(z)-0.5)) -
>   noise3d (x/30, y/30, z/30)
> }
> ...

Hmmm...

I used this sqrt equation for the spheres, but then I discovered
the built in "spheres" function and started using that instead.

It didn't cross my mind to use the sqrt function when trying
to adjust the different radii according to the field strength.

But I think that I would have to change your noise3d part to
something like this:

noise3d (floor(x/30) + 0.5, floor(y/30) + 0.5, floor(z/30) + 0.5)

I have not tested this yet either :)

Thank you.for this tip.


Tor Olav
--
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

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