POV-Ray : Newsgroups : povray.general : blobs Server Time
6 Nov 2024 06:21:27 EST (-0500)
  blobs (Message 1 to 2 of 2)  
From: Rafal 'Raf256' Maj
Subject: blobs
Date: 8 Oct 2002 21:45:29
Message: <Xns92A225FDDA64Braf256com@204.213.191.226>
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

From: Slime
Subject: Re: blobs
Date: 8 Oct 2002 22:09:20
Message: <3da38fd0@news.povray.org>
> 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

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