POV-Ray : Newsgroups : povray.binaries.images : More fun with scatter macro Server Time
17 Aug 2024 00:14:26 EDT (-0400)
  More fun with scatter macro (Message 1 to 8 of 8)  
From: JRG
Subject: More fun with scatter macro
Date: 19 Nov 2001 13:38:57
Message: <3bf951c1@news.povray.org>
I've changed the core algorithm of the macro, nomore Reorient_Trans() and
planes' normals but haevy use of Axis_Rotate_Trans. Some floating boxes are
still there, but at least I got rid of the sinking ones. When the y_size
(height) of the placed object is small, compared to the other sizes, the
macro works wonderfully IMO (as you can see in the following examples named
"cards" and "sticks").

I don't think I'll go through all the physics stuff, since this is not meant
to be a simulation and speed is a key factor (I must say that the new
algorithm is a bit slower, but parse time is still under 2 minutes).

BTW, what do you think? Does this look usefull-useless cool-boring?

Code will be posted ASA I find a free website where to put it on :)

Cheers,

--
Jonathan.


Post a reply to this message


Attachments:
Download 'colblo2.jpg' (41 KB) Download 'cards.jpg' (33 KB) Download 'sticks.jpg' (77 KB)

Preview of image 'colblo2.jpg'
colblo2.jpg

Preview of image 'cards.jpg'
cards.jpg

Preview of image 'sticks.jpg'
sticks.jpg


 

From: Christoph Hormann
Subject: Re: More fun with scatter macro
Date: 19 Nov 2001 15:58:11
Message: <3BF97260.EA5A1F61@gmx.de>
JRG wrote:
> 
> I've changed the core algorithm of the macro, nomore Reorient_Trans() and
> planes' normals but haevy use of Axis_Rotate_Trans. Some floating boxes are
> still there, but at least I got rid of the sinking ones. When the y_size
> (height) of the placed object is small, compared to the other sizes, the
> macro works wonderfully IMO (as you can see in the following examples named
> "cards" and "sticks").
> 
> I don't think I'll go through all the physics stuff, since this is not meant
> to be a simulation and speed is a key factor (I must say that the new
> algorithm is a bit slower, but parse time is still under 2 minutes).
> 
> BTW, what do you think? Does this look usefull-useless cool-boring?

I think it's very useful, of course including physics would be even
better, but difficult to do it correctly (apart from gravitation friction
would be important to consider too, not an easy task)

I thought about something similar for simulating stacks of wood like you
see in the forest when it's cut, maybe your macro can be modified to
simulate this too.

> Code will be posted ASA I find a free website where to put it on :)
> 

Doesn't your ISP offer a webspace?  Free offers with advertisement banners
on the pages are often not that nice.  

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: JRG
Subject: Re: More fun with scatter macro
Date: 19 Nov 2001 17:27:05
Message: <3bf98739$1@news.povray.org>
Christoph Hormann wrote:
> I think it's very useful, of course including physics would be even
> better, but difficult to do it correctly (apart from gravitation friction
> would be important to consider too, not an easy task)

Not to mention that it would be much slower (which doesn't mean it's not
worth the try).

> I thought about something similar for simulating stacks of wood like you
> see in the forest when it's cut, maybe your macro can be modified to
> simulate this too.

Since every position is chosen by a position_macro() (defined by the user:
i.e. it doesn't have to be random, but can be described by a probability
map, a function, a loop, whatever you want), this should be fairly simple.

> Doesn't your ISP offer a webspace?  Free offers with advertisement banners
> on the pages are often not that nice.

Hmm, I'll check it out.

--
Jonathan.

> Christoph
>
> --
> Christoph Hormann <chr### [at] gmxde>
> IsoWood include, radiosity tutorial, TransSkin and other
> things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Mahalis
Subject: Re: More fun with scatter macro
Date: 19 Nov 2001 19:47:38
Message: <3bf9a82a$1@news.povray.org>
Does the macro let you scatter stuff over any object?


Post a reply to this message

From: JRG
Subject: Re: More fun with scatter macro
Date: 20 Nov 2001 01:53:02
Message: <3bf9fdce@news.povray.org>
Yes.

--
Jonathan.
"Mahalis" <don### [at] fakeycom> ha scritto nel messaggio
news:3bf9a82a$1@news.povray.org...
> Does the macro let you scatter stuff over any object?
>
>


Post a reply to this message

From: JRG
Subject: Re: More fun with scatter macro
Date: 20 Nov 2001 01:57:59
Message: <3bf9fef7$1@news.povray.org>
These ones are very simplified examples. Using multiple objects is possible
with minimal code modification (which I'm gonna do it :).

--
Jonathan.

"Ross Litscher" <lit### [at] osuedu> ha scritto nel messaggio
news:3bf9e403@news.povray.org...
> although you could probably hack this with multiple uses of the existing
> macro, it might be usefull if you could give it a set of objects to
clutter.
> somone mentioned stacks of wood when cut, and i immediately thought of the
> "clutter" of wood chips around those trees when being cut. or, the various
> shapes and sizes of "dust bunnies" that exist behind my monitor on my
desk.
>
> i dunno, just something that adds more variation besides color.
>
>
> ross.
>
>


Post a reply to this message

From: oliWood
Subject: Re: More fun with scatter macro
Date: 20 Nov 2001 05:15:32
Message: <3BFA2D45.170817E1@durham.ac.uk>
It looks great.  It looks useful.  I can't wait for the code !

JRG wrote:
> 
> I've changed the core algorithm of the macro, nomore Reorient_Trans() and
> planes' normals but haevy use of Axis_Rotate_Trans. Some floating boxes are
> still there, but at least I got rid of the sinking ones. When the y_size
> (height) of the placed object is small, compared to the other sizes, the
> macro works wonderfully IMO (as you can see in the following examples named
> "cards" and "sticks").
> 
> I don't think I'll go through all the physics stuff, since this is not meant
> to be a simulation and speed is a key factor (I must say that the new
> algorithm is a bit slower, but parse time is still under 2 minutes).
> 
> BTW, what do you think? Does this look usefull-useless cool-boring?
> 
> Code will be posted ASA I find a free website where to put it on :)
> 
> Cheers,
> 
> --
> Jonathan.
> 
>  [Image]
> 
>  [Image]
> 
>  [Image]

-- 
Oliver Wood
University Of Durham

http://www.dur.ac.uk/o.e.wood/


Post a reply to this message

From: Mick Hazelgrove
Subject: Re: More fun with scatter macro
Date: 20 Nov 2001 12:52:21
Message: <3bfa9855$1@news.povray.org>
This looks very useful, in fact I think it will allow me to make a picture
which I have rejected as to difficult until now!

Mick


Post a reply to this message

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