![](/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) |
I followed Norbert's suggestion and added the possibility to place the
objects on a landscape (just one line of code).
My next effort is something concerning the textures of the placed objects
(i.e. they could be influenced by another map, or by their position, or by
the relative position of the objects around...) but I haven't got any good
and clear idea yet.
In this example 500 spheres and 500 boxes are placed on a landscape
following a simple checker pattern.
Feedback is appreciated.
Jonathan.
Post a reply to this message
Attachments:
Download 'clutter4.jpg' (110 KB)
Preview of image 'clutter4.jpg'
![clutter4.jpg](/povray.binaries.images/attachment/%3C3b460665%40news.povray.org%3E/clutter4.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" <jrg### [at] hotmail com> wrote in message
news:3b460665@news.povray.org...
> I followed Norbert's suggestion and added the possibility to place the
> objects on a landscape (just one line of code).
> My next effort is something concerning the textures of the placed objects
> (i.e. they could be influenced by another map, or by their position, or by
> the relative position of the objects around...) but I haven't got any good
> and clear idea yet.
> In this example 500 spheres and 500 boxes are placed on a landscape
> following a simple checker pattern.
>
> Feedback is appreciated.
Could you include re-orientation of the objects to the normal of the
landscape as an option?
Looks great!
All the best,
Andy
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) |
> I followed Norbert's suggestion and added the possibility to place the
> objects on a landscape (just one line of code).
<snip>
That's coming along nicely! In fact this does exactly what I was trying to
do with a grass macro that never went anywhere. Could you post the one line
of code? I never got the hang of the trace function.
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 you want to know the y coordinate of a point (i.e. its height):
#local _alt=vdot(y,trace( land, temp_pos+10000*y,-y)); // check the
altitude
or, even easier:
#local _alt=(trace( land, temp_pos+10000*y,-y)).y; // check the altitude
(I didn't check if the last notation works, but it should).
Where land is the landscape object,
temp_pos is the coordinate (of XZ plane) you want to check (you are supposed
to not use landscapes higher than 10000 units...).
For normal calculation things are slightly more complicate (even if it's
just another line of trig formulae).
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) |
Done.
Thank you for the suggestion!
jrg.
Post a reply to this message
Attachments:
Download 'clutter5.jpg' (69 KB)
Preview of image 'clutter5.jpg'
![clutter5.jpg](/povray.binaries.images/attachment/%3C3b4701a0%40news.povray.org%3E/clutter5.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) |
You gotta animate that!
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) |
Yeah, I was thinking so too.
I'll try.
Jonathan
"Bill DeWitt" <bde### [at] cfl rr com> ha scritto nel messaggio
news:3b471ec2@news.povray.org...
>
> You gotta animate that!
>
>
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) |
...and here's how it looks with a heightfield.
2700 spikes and no probability map this time.
jrg.
Post a reply to this message
Attachments:
Download 'clutter6.jpg' (134 KB)
Preview of image 'clutter6.jpg'
![clutter6.jpg](/povray.binaries.images/attachment/%3C3b474200%40news.povray.org%3E/clutter6.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) |
Oh good lord. It *is* now a VERY COOL macro... how
about object orientation parameters, possible to add in
or not?
-peter
--
http://www.users.qwest.net/~dearmad
Why bother? I'm not interesting.
But... maybe "Ballet pour ma fille" will be.
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) |
this is starting to look a little like fur or... I
dunno something sort of wicked... :o)
-peter
--
http://www.users.qwest.net/~dearmad
Why bother? I'm not interesting.
But... maybe "Ballet pour ma fille" will be.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |