|
|
> 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
|
|