POV-Ray : Newsgroups : povray.binaries.images : Just toying around ... Server Time
1 Aug 2024 00:24:04 EDT (-0400)
  Just toying around ... (Message 1 to 8 of 8)  
From: Christian Froeschlin
Subject: Just toying around ...
Date: 9 Mar 2009 17:03:04
Message: <49b58408@news.povray.org>
... with random object placements following 3d pattern functions.


Post a reply to this message


Attachments:
Download 'pattern.png' (70 KB)

Preview of image 'pattern.png'
pattern.png


 

From: Cousin Ricky
Subject: Re: Just toying around ...
Date: 9 Mar 2009 19:30:00
Message: <web.49b5a604cd2b5c0a85de7b680@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> ... with random object placements following 3d pattern functions.

Reminds me of galaxy superclusters.


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Just toying around ...
Date: 10 Mar 2009 08:33:00
Message: <49b65dfc$1@news.povray.org>
Cousin Ricky wrote:

> Reminds me of galaxy superclusters.

Crackle permeates the universe ;)


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Just toying around ...
Date: 10 Mar 2009 18:33:05
Message: <49b6eaa1@news.povray.org>
... or care for a yummy blob version instead? ;)


Post a reply to this message


Attachments:
Download 'yummy.jpg' (67 KB)

Preview of image 'yummy.jpg'
yummy.jpg


 

From: Christian Froeschlin
Subject: Re: Just toying around ...
Date: 11 Mar 2009 15:54:08
Message: <49b816e0@news.povray.org>
... basing orientation and shape on pattern gradients


Post a reply to this message


Attachments:
Download 'orient.jpg' (125 KB)

Preview of image 'orient.jpg'
orient.jpg


 

From: [GDS|Entropy]
Subject: Re: Just toying around ...
Date: 11 Mar 2009 17:05:56
Message: <49b827b4$1@news.povray.org>
Thats freakin cool! :-D

How are you doing that?

ian

"Christian Froeschlin" <chr### [at] chrfrde> wrote in message 
news:49b816e0@news.povray.org...
> ... basing orientation and shape on pattern gradients
>
>


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Just toying around ...
Date: 12 Mar 2009 05:14:06
Message: <49b8d25e$1@news.povray.org>
[GDS|Entropy] wrote:

> Thats freakin cool! :-D

thanks ;)

> How are you doing that?

well it won't win a prize for stable numerics ;)

#declare EPS = 0.0001;
#declare F   = // some pattern function

...

       // For object at <X,Y,Z>

       #local DX = (F(X+EPS,Y,Z) - F(X-EPS,Y,Z))/(2*EPS);
       #local DY = (F(X,Y+EPS,Z) - F(X,Y-EPS,Z))/(2*EPS);
       #local DZ = (F(X,Y,Z+EPS) - F(X,Y,Z-EPS))/(2*EPS);
       #local G  = <DX,DY,DZ>;

Basically, I used F(X,Y,Z) for placement descision and object size,
vlength(G) for elongation and the direction of G for orientation.


Post a reply to this message

From: [GDS|Entropy]
Subject: Re: Just toying around ...
Date: 12 Mar 2009 05:28:58
Message: <49b8d5da$1@news.povray.org>
"Christian Froeschlin" <chr### [at] chrfrde> wrote in message 
news:49b8d25e$1@news.povray.org...
> [GDS|Entropy] wrote:
>
>> Thats freakin cool! :-D
>
> thanks ;)
>
>> How are you doing that?
>
> well it won't win a prize for stable numerics ;)
>
> #declare EPS = 0.0001;
> #declare F   = // some pattern function
>
> ...
>
>       // For object at <X,Y,Z>
>
>       #local DX = (F(X+EPS,Y,Z) - F(X-EPS,Y,Z))/(2*EPS);
>       #local DY = (F(X,Y+EPS,Z) - F(X,Y-EPS,Z))/(2*EPS);
>       #local DZ = (F(X,Y,Z+EPS) - F(X,Y,Z-EPS))/(2*EPS);
>       #local G  = <DX,DY,DZ>;
>
> Basically, I used F(X,Y,Z) for placement descision and object size,
> vlength(G) for elongation and the direction of G for orientation.
>

That idea inspires me to try some things. :-D
I need to wrap up the betas of the other macros I'm working on though before 
I start on anything new lol! ;-)

ian


Post a reply to this message

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