POV-Ray : Newsgroups : povray.binaries.images : blended cells Server Time
4 Nov 2024 17:55:04 EST (-0500)
  blended cells (Message 1 to 8 of 8)  
From: Tek
Subject: blended cells
Date: 23 Feb 2007 00:48:17
Message: <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

-- 
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'
blendedcells1.jpg

Preview of image 'blendedcells2.jpg'
blendedcells2.jpg

Preview of image 'blendedcells3.jpg'
blendedcells3.jpg

Preview of image 'blendedcells4.jpg'
blendedcells4.jpg

Preview of image 'blendedcells5.jpg'
blendedcells5.jpg


 

From: Jaime Vives Piqueres
Subject: Re: blended cells
Date: 23 Feb 2007 03:13:31
Message: <45dea22b@news.povray.org>
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

From: Zeger Knaepen
Subject: Re: blended cells
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

From: Thomas de Groot
Subject: Re: blended cells
Date: 23 Feb 2007 04:42:36
Message: <45deb70c@news.povray.org>
Yes! That is perfect!!
Thanks a lot!!

Thomas


Post a reply to this message

From: Tek
Subject: Re: blended cells
Date: 23 Feb 2007 04:51:33
Message: <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.

-- 
Tek
http://evilsuperbrain.com

"Zeger Knaepen" <zeg### [at] MOVEpovplacecom> wrote in message 
news: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

From: Zeger Knaepen
Subject: Re: blended cells
Date: 23 Feb 2007 05:28:03
Message: <45dec1b3$1@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> 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

From: Shay
Subject: Re: blended cells
Date: 25 Feb 2007 11:19:23
Message: <45e1b70b$1@news.povray.org>
Tek wrote:

The effect on the top sphere looks Hella-useful.

 -Shay


Post a reply to this message

From: Alain
Subject: Re: blended cells
Date: 25 Feb 2007 13:50:34
Message: <45e1da7a$1@news.povray.org>
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

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