|
![](/i/fill.gif) |
Hello,
1) I got in blob 2 elements :
sphere { pos size1 power1 }
sphere { pos size2 power2 }
if thier's pos is same, then probably this can be replaced with single :
sphere { pos sizeX powerX }
(assuming that components 1 and 2 have same texture, and dont have other
transforms) ?
(What if we alsow assume that thier size and power is same - this are 1
identical components) ?
What's formula for sizeX and powerX ?
2) blob { threshold thr;
sphere { pos size power }
}
can be replaced with simpel sphere sphere { pos radius }
where radius = ... ?
--
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
> What's formula for sizeX and powerX ?
Assuming both of their sizes are the same, I believe
sphere {pos size1 power1+power2}
will work. If the sizes are different, though, then I don't think anything
will produce exactly the same result.
The answer to question number two can probably be found analytically. Check
the documentation for the formula of the surface of a single blob element.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
![](/i/fill.gif) |