  | 
  | 
 
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
I've wanted to do this for ages but I could never figure out how. Then this 
morning I woke up at 5am with a brain wave! So here it is, povray's cells 
pattern with linear blending to create blurry cells!
Very useful if you want to use cells to choose between random patterns, but 
you don't want to get hard edges between them.
Source in p.b.s-f
-- 
Tek
http://evilsuperbrain.com
 
 Post a reply to this message 
 
Attachments: 
Download 'blendedcells1.jpg' (48 KB)
Download 'blendedcells2.jpg' (32 KB)
Download 'blendedcells3.jpg' (37 KB)
Download 'blendedcells4.jpg' (42 KB)
Download 'blendedcells5.jpg' (69 KB)
 
  
Preview of image 'blendedcells1.jpg'
   
Preview of image 'blendedcells2.jpg'
   
Preview of image 'blendedcells3.jpg'
   
Preview of image 'blendedcells4.jpg'
   
Preview of image 'blendedcells5.jpg'
   
   
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
Tek wrote:
> I've wanted to do this for ages but I could never figure out how. Then this 
> morning I woke up at 5am with a brain wave! So here it is, povray's cells 
> pattern with linear blending to create blurry cells!
> 
> Very useful if you want to use cells to choose between random patterns, but 
> you don't want to get hard edges between them.
> 
> Source in p.b.s-f
   Indeed, you have an evil super brain... ;)
   I always wanted to do this, but never figured how. Thanks, it's going 
to be very very useful for a lot of things. Please, Tek, keep surprising 
us at regular intervals...
--
Jaime
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
"Tek" <tek### [at] evilsuperbrain com> wrote in message news:45de8021@news.povray.org...
> I've wanted to do this for ages but I could never figure out how. Then this
> morning I woke up at 5am with a brain wave! So here it is, povray's cells
> pattern with linear blending to create blurry cells!
>
> Very useful if you want to use cells to choose between random patterns, but
> you don't want to get hard edges between them.
>
> Source in p.b.s-f
thanks!! I've been looking for a way of doing this for ages now!
still trying to figure out how exactly it works, but maybe when I'm fully awake
it'll hit me :)
cu!
--
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
Yes! That is perfect!!
Thanks a lot!!
Thomas
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
Awesome I'm glad I'm not the only one who'd wanted this trick for ages!
Basically what I'm doing is trilinear blending between the same cells 
pattern, offset by 1 square in each direction. Since the blend region is no 
bigger than 1 square (actually I mean one cube, i.e. one cell) we just need 
to overlay 8 copies of the cell pattern offset by <0,0,0> <0,0,1>, <0,1,1>, 
etc... so we have all 8 possible values available for tri-linear blending...
Hopefully that explanation might help... though possibly not.
-- 
Tek
http://evilsuperbrain.com
"Zeger Knaepen" <zeg### [at] MOVEpovplace com> wrote in message 
news:45deb1c0@news.povray.org...
> "Tek" <tek### [at] evilsuperbrain com> wrote in message 
> news:45de8021@news.povray.org...
>> I've wanted to do this for ages but I could never figure out how. Then 
>> this
>> morning I woke up at 5am with a brain wave! So here it is, povray's cells
>> pattern with linear blending to create blurry cells!
>>
>> Very useful if you want to use cells to choose between random patterns, 
>> but
>> you don't want to get hard edges between them.
>>
>> Source in p.b.s-f
>
> thanks!! I've been looking for a way of doing this for ages now!
> still trying to figure out how exactly it works, but maybe when I'm fully 
> awake
> it'll hit me :)
>
> cu!
> --
> #macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
> sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
> #end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
> _(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com
>
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
"Tek" <tek### [at] evilsuperbrain com> wrote in message
news:45deb925$1@news.povray.org...
> Awesome I'm glad I'm not the only one who'd wanted this trick for ages!
>
> Basically what I'm doing is trilinear blending between the same cells
> pattern, offset by 1 square in each direction. Since the blend region is no
> bigger than 1 square (actually I mean one cube, i.e. one cell) we just need
> to overlay 8 copies of the cell pattern offset by <0,0,0> <0,0,1>, <0,1,1>,
> etc... so we have all 8 possible values available for tri-linear blending...
>
> Hopefully that explanation might help... though possibly not.
.. need ... caffeine ... !
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
Tek wrote:
The effect on the top sphere looks Hella-useful.
 -Shay
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
Shay nous apporta ses lumieres en ce 25-02-2007 11:19:
> Tek wrote:
> 
> The effect on the top sphere looks Hella-useful.
> 
>  -Shay
Take the second one and add some turbulance.
-- 
Alain
-------------------------------------------------
Experience demands that man is the only animal which devours his own kind,
for I can apply no milder term to the general prey of the rich on the poor.
Thomas Jefferson
 
 Post a reply to this message 
 | 
  | 
 
 |   |  
 |   |  
 | 
  | 
 | 
  | 
 
 |   |  
 
 | 
  |