POV-Ray : Newsgroups : povray.general : Stacking objects Server Time
16 Nov 2024 19:18:08 EST (-0500)
  Stacking objects (Message 1 to 7 of 7)  
From: JC (Exether)
Subject: Stacking objects
Date: 15 Sep 2003 12:08:16
Message: <3f65e3f0@news.povray.org>
I'd like to do a scene with a heap of objects (cylinders in my case). I 
don't want a physically accurate stacking of the objects, but I'd like 
it to look realistic from a fair distance.

After thinking a bit about an algorithm I thought that it was not a very 
easy problem. I had a look at the stacker*.pov scenes from pov distrib 
but it is not really the same problem as all objects are put 
horizontally in the example. The internet doesn't provide much more stuff.

Soooo .... You see where I'm getting right ??

Does anyone know of such tool (preferably a pov-script) that would do 
what I seek ??

Thanks,

JC


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: Stacking objects
Date: 15 Sep 2003 12:38:08
Message: <3f65eaf0$1@news.povray.org>
AFAIK, some Scatter-Macro was circling these
groups a few months ago.

http://news.povray.org/povray.binaries.scene-files/18272/

Couldn't find anything more up to date...

Regards,
Tim

-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: no_lights (@) digitaltwilight.de


> I'd like to do a scene with a heap of objects (cylinders in my case). I
> don't want a physically accurate stacking of the objects, but I'd like
> it to look realistic from a fair distance.
>
> After thinking a bit about an algorithm I thought that it was not a very
> easy problem. I had a look at the stacker*.pov scenes from pov distrib
> but it is not really the same problem as all objects are put
> horizontally in the example. The internet doesn't provide much more stuff.
>
> Soooo .... You see where I'm getting right ??
>
> Does anyone know of such tool (preferably a pov-script) that would do
> what I seek ??
>
> Thanks,
>
> JC
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 01.09.2003


Post a reply to this message

From: Dave Matthews
Subject: Re: Stacking objects
Date: 15 Sep 2003 12:40:01
Message: <web.3f65ead896cf30b110dd5cfd0@news.povray.org>
JC (Exether) wrote:
>I'd like to do a scene with a heap of objects (cylinders in my case). I
>don't want a physically accurate stacking of the objects, but I'd like
>it to look realistic from a fair distance.
>
>After thinking a bit about an algorithm I thought that it was not a very
>easy problem. I had a look at the stacker*.pov scenes from pov distrib
>but it is not really the same problem as all objects are put
>horizontally in the example. The internet doesn't provide much more stuff.
>
>Soooo .... You see where I'm getting right ??
>
>Does anyone know of such tool (preferably a pov-script) that would do
>what I seek ??
>
>Thanks,
>
>JC
>

I think that Sputnik's reply in this thread:

http://news.povray.org/povray.advanced-users/32657/

may be something like what you're seeking.  I've made quite a bit of use of
his ideas -- modified slightly for my own needs.

Dave Matthews


Post a reply to this message

From: JC (Exether)
Subject: Re: Stacking objects
Date: 16 Sep 2003 02:42:00
Message: <3f66b0b8@news.povray.org>
Thanks, but unfortunately this macro just scatters the objects on a 
surface while I want to put them the one on top of the others.
Well, I suppose that means I'll have to post the source when I'm done 
with it. :-)

JC

Tim Nikias v2.0 wrote:
> AFAIK, some Scatter-Macro was circling these
> groups a few months ago.
> 
> http://news.povray.org/povray.binaries.scene-files/18272/
> 
> Couldn't find anything more up to date...
> 
> Regards,
> Tim
>


Post a reply to this message

From: JC (Exether)
Subject: Re: Stacking objects
Date: 16 Sep 2003 02:43:50
Message: <3f66b126$1@news.povray.org>
Well, I want to stack them but in a non-orderly way, what I want is a 
real messy heap of cylinders. I'll probably have to figure it out by 
myself. Thanks anyway.

JC

Dave Matthews wrote:
> JC (Exether) wrote:
> 
>>I'd like to do a scene with a heap of objects (cylinders in my case). I
>>don't want a physically accurate stacking of the objects, but I'd like
>>it to look realistic from a fair distance.
>>
>>After thinking a bit about an algorithm I thought that it was not a very
>>easy problem. I had a look at the stacker*.pov scenes from pov distrib
>>but it is not really the same problem as all objects are put
>>horizontally in the example. The internet doesn't provide much more stuff.
>>
>>Soooo .... You see where I'm getting right ??
>>
>>Does anyone know of such tool (preferably a pov-script) that would do
>>what I seek ??
>>
>>Thanks,
>>
>>JC
>>
> 
> 
> I think that Sputnik's reply in this thread:
> 
> http://news.povray.org/povray.advanced-users/32657/
> 
> may be something like what you're seeking.  I've made quite a bit of use of
> his ideas -- modified slightly for my own needs.
> 
> Dave Matthews
>


Post a reply to this message

From: Florian Brucker
Subject: Re: Stacking objects
Date: 16 Sep 2003 07:20:37
Message: <3f66f205@news.povray.org>
Hi JC!

I'm thinking about something similar, and I thought one could use 
SimPOV (included in the current MegaPOV). That would be physically 
correct, too. I haven't done any experiments though and I don't know 
how it'll come out.

HTH,
Florian
-- 
//=================[web: http://www.torfbold.com]==================\\
#local a=-5;#while(a<5)sphere{<sin(a*pi)*5a*10pow(a,5)*.01>sin(a*a*a*
.1)+1pigment{rgb 9*z}}#local a=a+.01;#end camera{look_at-y*10location
<8,-3,-8>*10}// [www.povray.org]     [www.imp.org]     [www.irtc.org]


Post a reply to this message

From: Dave Matthews
Subject: Re: Stacking objects
Date: 16 Sep 2003 09:05:08
Message: <web.3f670a0c96cf30b110dd5cfd0@news.povray.org>
JC (Exether) wrote:
>Well, I want to stack them but in a non-orderly way, what I want is a
>real messy heap of cylinders. I'll probably have to figure it out by
>myself. Thanks anyway.
>

I see what you mean.  If you needed to be super accurate, I suppose you
could rotate at random, then use trace to make sure they just touch.  But,
as you said, you just want a whole heap, not placed exactly, but "close
enough."  That's an interesting (and useful) puzzle.

Post the macro, once you've made it ;-)(I'll think about it, too.)

Dave Matthews


Post a reply to this message

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