![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Some weeks ago I heard about some Clutter() macro. Since I found nothing
that kind (to be honest I didn't even look for it...;)) today I wrote (after
lunch) a little macro which randomly places a series of objects. It allows
you to define obstacles as well (as you can see from this simple picture).
There are 275 spheres and 275 boxes randomly placed in a 10x10 square. The
torus is a *no fly zone*.
Comments are welcome.
jrg
Post a reply to this message
Attachments:
Download 'clutter.jpg' (100 KB)
Preview of image 'clutter.jpg'
![clutter.jpg](/povray.binaries.images/attachment/%3C3b447809%40news.povray.org%3E/clutter.jpg?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
That may have been me, in jest, suggesting that mega-pov needs a clutter().
pretty nice tho :)
JRG <jrg### [at] hotmail com> wrote in message news:3b447809@news.povray.org...
> Some weeks ago I heard about some Clutter() macro. Since I found nothing
> that kind (to be honest I didn't even look for it...;)) today I wrote
(after
> lunch) a little macro which randomly places a series of objects. It allows
> you to define obstacles as well (as you can see from this simple picture).
> There are 275 spheres and 275 boxes randomly placed in a 10x10 square. The
> torus is a *no fly zone*.
> Comments are welcome.
>
> jrg
>
>
>
>
>
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Ross Litscher" <lit### [at] osu edu> ha scritto nel messaggio
news:3b448070$1@news.povray.org...
> That may have been me, in jest, suggesting that mega-pov needs a
clutter().
> pretty nice tho :)
>
Even more clutter for this one: 2500 objects.
Time for parse: 40 min (!)
Time for trace: 1 min 20 s
jrg.
Post a reply to this message
Attachments:
Download 'clutter2.jpg' (132 KB)
Preview of image 'clutter2.jpg'
![clutter2.jpg](/povray.binaries.images/attachment/%3C3b448b8f%40news.povray.org%3E/clutter2.jpg?preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
JRG wrote:
>
> Some weeks ago I heard about some Clutter() macro. Since I found nothing
> that kind (to be honest I didn't even look for it...;)) today I wrote (after
> lunch) a little macro which randomly places a series of objects. It allows
> you to define obstacles as well (as you can see from this simple picture).
> There are 275 spheres and 275 boxes randomly placed in a 10x10 square. The
> torus is a *no fly zone*.
> Comments are welcome.
>
Looks quite useful, something in the same direction but probably more
universal (although it seems quite complicated in syntax from what i have
seen):
http://www.ksp.sk/~dushan/dipl.php
I don't recall this being metioned in p.u.p. or somewhere else in these
newsgroups before so some might find it interesting to try.
All such things could extremely profit from a refer{} patch like ABX seems
to be working on.
Christoph
--
Christoph Hormann <chr### [at] gmx de>
IsoWood include, radiosity tutorial, TransSkin and other
things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
JRG wrote:
> Even more clutter for this one: 2500 objects.
It looks cool and good, altought I liked also the brown boxes - they
looked very real and somehow like something I would like to eat.
--
/"\ | iki.
\ / ASCII Ribbon Campaign | fi/
X Against HTML Mail | zds
/ \
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
What is that patch intended to do?
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
It looks really interesting to me, though rather complex.
The macro I wrote is intended to serve my poor needs: I got bored placing
every single object on a table (like in my last IRTC entry). So I just wrote
a little (and extremely simple) script that places any objects (the number
is unlimited) in a rectangle. The placing is absolutely random. So, if there
are too many objects and too little space the computer spends a lot of time
to find free spots. Because it just verifies, each time, if a random
position doesn't touch any object already placed (and the obstacles as
well).
If anyone is interested in it, I can post it.
Regards,
Jonathan.
"Christoph Hormann" <chr### [at] gmx de> ha scritto nel messaggio
news:3B449359.CA732FEB@gmx.de...
>
>
> JRG wrote:
> >
> > Some weeks ago I heard about some Clutter() macro. Since I found nothing
> > that kind (to be honest I didn't even look for it...;)) today I wrote
(after
> > lunch) a little macro which randomly places a series of objects. It
allows
> > you to define obstacles as well (as you can see from this simple
picture).
> > There are 275 spheres and 275 boxes randomly placed in a 10x10 square.
The
> > torus is a *no fly zone*.
> > Comments are welcome.
> >
>
> Looks quite useful, something in the same direction but probably more
> universal (although it seems quite complicated in syntax from what i have
> seen):
>
> http://www.ksp.sk/~dushan/dipl.php
>
> I don't recall this being metioned in p.u.p. or somewhere else in these
> newsgroups before so some might find it interesting to try.
>
> All such things could extremely profit from a refer{} patch like ABX seems
> to be working on.
>
> Christoph
>
> --
> Christoph Hormann <chr### [at] gmx de>
> IsoWood include, radiosity tutorial, TransSkin and other
> things on: http://www.schunter.etc.tu-bs.de/~chris/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"JRG" <jrg### [at] hotmail com> wrote in message
news:3b44c678@news.povray.org...
> It looks really interesting to me, though rather complex.
> The macro I wrote is intended to serve my poor needs: I got bored placing
> every single object on a table (like in my last IRTC entry). So I just
wrote
> a little (and extremely simple) script that places any objects (the number
> is unlimited) in a rectangle. The placing is absolutely random. So, if
there
> are too many objects and too little space the computer spends a lot of
time
> to find free spots. Because it just verifies, each time, if a random
> position doesn't touch any object already placed (and the obstacles as
> well).
> If anyone is interested in it, I can post it.
>
I'd be very interested. I did something similar a while ago, but used an
external
program. Would love to see your code.
Gail
*************************************************************************
* gsh### [at] monotix co za * Step into the abyss, *
* http://www.rucus.ru.ac.za/~gail/ * and let go. Babylon 5 *
*************************************************************************
* The difficult we do immediately, the impossible takes a little longer *
*************************************************************************
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> If anyone is interested in it, I can post it.
>
detection with my own little random placement method via imagemaps.
My own ideas are really complicate to realize and I would love to see a
simple way.
Norbert
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
How about a probability map? The macro takes a function that defines
unique probability for each point in the area. This way the map could
be defined by a mathematical expression or grayscale image.
_____________
Kari Kivisalo
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |