POV-Ray : Newsgroups : povray.newusers : Collision test Server Time
13 Nov 2024 05:17:48 EST (-0500)
  Collision test (Message 1 to 5 of 5)  
From: Robert Günther
Subject: Collision test
Date: 30 Mar 2001 10:48:36
Message: <3AC4AAF3.7FC50B38@exmail.de>
Hello,

balls. With 'seed' and 'rand' i get the distribution of the balls i
like. But unfortunately, a lot of the balls intersect with another. Is
there an easy way (i know, what does easy mean?) to protect the balls of
collision with each other?

in advance and best wishes,


Robert


Post a reply to this message

From: Jean-Michel Grimaldi
Subject: Re: Collision test
Date: 30 Mar 2001 11:07:50
Message: <3AC4AF17.DEA69088@via.ecp.fr>

> 

> balls. With 'seed' and 'rand' i get the distribution of the balls i
> like. But unfortunately, a lot of the balls intersect with another.

I think the easier way is to calculate a new position for a given ball
until it intersects with no other ball, then add another one, etc.

Though, if you have many balls, this will be quite lengthy, so you may
prefer to generate a .pov file from a program writter in a faster
language like C.

-- 
JM


Post a reply to this message

From: Ken
Subject: Re: Collision test
Date: 30 Mar 2001 11:24:34
Message: <3AC4B3EB.EA7CDA56@pacbell.net>

> 
> Hello,

> balls. With 'seed' and 'rand' i get the distribution of the balls i
> like. But unfortunately, a lot of the balls intersect with another. Is
> there an easy way (i know, what does easy mean?) to protect the balls of
> collision with each other?
> 
> in advance and best wishes,
> 
> Robert

There is a macro file available at this site "fill box with spheres"
that you may find informative -

http://www.geocities.com/SiliconValley/Way/2419/POVMacros.html

-- 
Ken Tyler


Post a reply to this message

From: Robert Günther
Subject: Re: Collision test
Date: 30 Mar 2001 12:18:24
Message: <3AC4BFFF.57AEB45F@exmail.de>
oops, sounds difficult to me.
Nevertheless, thanks for answering..

Robert


Jean-Michel Grimaldi schrieb:


> >

> > balls. With 'seed' and 'rand' i get the distribution of the balls i
> > like. But unfortunately, a lot of the balls intersect with another.
>
> I think the easier way is to calculate a new position for a given ball
> until it intersects with no other ball, then add another one, etc.
>
> Though, if you have many balls, this will be quite lengthy, so you may
> prefer to generate a .pov file from a program writter in a faster
> language like C.
>
> --
> JM


Post a reply to this message

From: Robert Günther
Subject: Re: Collision test
Date: 30 Mar 2001 12:23:06
Message: <3AC4C119.E9AD6228@exmail.de>
Many thanks,
that's what i wanted. And now, a second object with a different shape combined
with the balls...


Thank you  Ken


Robert

Ken schrieb:


> >
> > Hello,

> > balls. With 'seed' and 'rand' i get the distribution of the balls i
> > like. But unfortunately, a lot of the balls intersect with another. Is
> > there an easy way (i know, what does easy mean?) to protect the balls of
> > collision with each other?
> >
> > in advance and best wishes,
> >
> > Robert
>
> There is a macro file available at this site "fill box with spheres"
> that you may find informative -
>
> http://www.geocities.com/SiliconValley/Way/2419/POVMacros.html
>
> --
> Ken Tyler


Post a reply to this message

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