POV-Ray : Newsgroups : povray.binaries.images : blended cells : Re: blended cells Server Time
4 Nov 2024 20:13:34 EST (-0500)
  Re: blended cells  
From: Zeger Knaepen
Date: 23 Feb 2007 04:20:00
Message: <45deb1c0@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> 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

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