POV-Ray : Newsgroups : povray.general : Collison Detecion in Povray? Server Time
16 Oct 2026 07:40:06 EDT (-0400)
  Collison Detecion in Povray? (Message 1 to 19 of 19)  
From: GrimDude
Subject: Collison Detecion in Povray?
Date: 4 Sep 2000 02:57:13
Message: <39b347c9@news.povray.org>
Has anyone done anything like this?

Grim


Post a reply to this message

From: Ken
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 10:16:45
Message: <39B1FBBD.3EBFFFC8@pacbell.net>
GrimDude wrote:
> 
> Has anyone done anything like this?

Yes, but not me.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Dave Blandston
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 13:54:41
Message: <39b3e1e1$1@news.povray.org>
I recently added simple collision detection to a scene. (And I do mean
simple!) However, if your requirements aren't very complex, the method that
I used was effective and fairly easy to implement. I'd be glad to describe
what I did if you're interested.

Regards,
Dave

P.S. - You may find some tips in Chris Colefax's Explode.inc file - he has
pieces of exploded objects bouncing off the floor.


Post a reply to this message

From: Josh English
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 14:13:10
Message: <39B3E630.FDC15479@spiritone.com>
If you have a bunch of spheres, then collision detection is easy, but
costly in parsing time.
I've been trying with boxes, but it hasn't been working out as well as
I'd hoped.

There is some information here:
http://freespace.virgin.net/hugo.elias/models/m_colide.htm

I'm really suprsied Ken didn't offer up a link... he must have a virus..

Josh

GrimDude wrote:

> Has anyone done anything like this?
>
> Grim

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Ken
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 14:19:43
Message: <39B234B0.8DE94D29@pacbell.net>
Josh English wrote:

> I'm really suprsied Ken didn't offer up a link... he must have a virus..

Space herpes...

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Josh English
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 18:25:25
Message: <39B42074.1D4DC953@spiritone.com>
Been visitng MIR again have we Ken? ; )

J

Ken wrote:

> Josh English wrote:
>
> > I'm really suprsied Ken didn't offer up a link... he must have a virus..
>
> Space herpes...
>
> --
> Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
> http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Chris Colefax
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 19:41:55
Message: <39b43343@news.povray.org>
Dave Blandston <gra### [at] earthlinknet> wrote:
[snip]
> P.S. - You may find some tips in Chris Colefax's Explode.inc file - he has
> pieces of exploded objects bouncing off the floor.

Both my Object Exploder and Liquid Spray include files offer functions for
particle collisions with an arbitrary ground plane.  Both files were created
for POV-Ray 3.0 originally (no macros, no file I/O, etc.), and so I used an
analytical, recursive while loop that allows each particle to bounce
multiple times before coming to rest (taking into account friction with the
ground plane).

For more generalised collision detection, Ron Parker's trace() function
(available in MegaPOV, will be in POV 3.5) should be a good start, although
a lot of POV scripting will still be required.  It is something I personally
want to try my hand at, as part of a more comprehensive, generalised physics
simulation/approximation (see
http://www.geocities.com/ccolefax/projects.html)...


Post a reply to this message

From: GrimDude
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 20:43:31
Message: <39b441b3@news.povray.org>
"Ken" <tyl### [at] pacbellnet> wrote in message
news:39B234B0.8DE94D29@pacbell.net...
> Space herpes...
>
> --

...another quip?

Grim


Post a reply to this message

From: GrimDude
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 20:43:33
Message: <39b441b5@news.povray.org>
> For more generalised collision detection, Ron Parker's trace() function
> (available in MegaPOV, will be in POV 3.5) should be a good start,
although
> a lot of POV scripting will still be required.  It is something I
personally
> want to try my hand at, as part of a more comprehensive, generalised
physics
> simulation/approximation (see
> http://www.geocities.com/ccolefax/projects.html)...
>
You are always pulling my fat out of the fire, Chris. :) I'll start right
away.

Thanks for all of your suggestions, guys.

Grim


Post a reply to this message

From: Ken
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 20:46:51
Message: <39B44221.F9D103EA@pacbell.net>
GrimDude wrote:
> 
> "Ken" <tyl### [at] pacbellnet> wrote in message
> news:39B234B0.8DE94D29@pacbell.net...
> > Space herpes...
> >
> > --
> 
> ...another quip?

From "Space Balls the Movie" a parody of Star Wars by Mel Brooks.

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: GrimDude
Subject: Re: Collison Detecion in Povray?
Date: 4 Sep 2000 20:54:05
Message: <39b4442d@news.povray.org>
Ah, I knew that... :)

Grim


Post a reply to this message

From: Warp
Subject: Re: Collison Detecion in Povray?
Date: 5 Sep 2000 10:19:23
Message: <39b500eb@news.povray.org>
Josh English <eng### [at] spiritonecom> wrote:
: If you have a bunch of spheres, then collision detection is easy, but
: costly in parsing time.

  You mean easy relatively speaking?-)

  Yes, it's easy in the sense that you can easily write the appropriate code
with pov-script (even with pov3.1).

  But the math is not so easy. You need to know some physics math (momentum
calculations and so on) to get the collisions, resulting speeds and directions,
etc accurately.
  For example, it's not easy at all to make the math to simulate a pool
game (and this is in 2D).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Peter Popov
Subject: Re: Collison Detecion in Povray?
Date: 5 Sep 2000 16:37:43
Message: <m1mars47463ldf0q9ohmkpnmfg56aikoa7@4ax.com>
On 5 Sep 2000 10:19:23 -0400, Warp <war### [at] tagpovrayorg> wrote:

>  For example, it's not easy at all to make the math to simulate a pool
>game (and this is in 2D).

It's quite easy to do the basics. Once you get into english (it
shouldn't be capitalized here, right?) and spin and masse and jumps...
then it gets tricky. I should know, I tried and gave up.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Josh English
Subject: Re: Collison Detecion in Povray?
Date: 5 Sep 2000 17:22:49
Message: <39B5641C.28FC706F@spiritone.com>
To my knowledge, this is the only case where "English" is not capitalized.

Surprisingly, I can't find any websites about the subject. I found a
glossary of pool terms, but all the terms were in all caps. Go figure.

Josh

Peter Popov wrote:

> On 5 Sep 2000 10:19:23 -0400, Warp <war### [at] tagpovrayorg> wrote:
>
> >  For example, it's not easy at all to make the math to simulate a pool
> >game (and this is in 2D).
>
> It's quite easy to do the basics. Once you get into english (it
> shouldn't be capitalized here, right?) and spin and masse and jumps...
> then it gets tricky. I should know, I tried and gave up.
>
> Peter Popov ICQ : 15002700
> Personal e-mail : pet### [at] usanet
> TAG      e-mail : pet### [at] tagpovrayorg

--
Josh English -- Lexiphanic Lethomaniac
eng### [at] spiritonecom
The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Kevin Jackson-Mead
Subject: Re: Collison Detecion in Povray?
Date: 5 Sep 2000 17:46:16
Message: <39B5691F.9B88105C@mindspring.com>
My dictionary says that the pool term is "often" spelled without caps, which
would lead me to believe that either is acceptable.

Kevin Jackson-Mead
http://www.mindspring.com/~jacksonmead

Josh English wrote:

> To my knowledge, this is the only case where "English" is not capitalized.
>
> Surprisingly, I can't find any websites about the subject. I found a
> glossary of pool terms, but all the terms were in all caps. Go figure.
>
> Josh
>
> Peter Popov wrote:
>
> > On 5 Sep 2000 10:19:23 -0400, Warp <war### [at] tagpovrayorg> wrote:
> >
> > >  For example, it's not easy at all to make the math to simulate a pool
> > >game (and this is in 2D).
> >
> > It's quite easy to do the basics. Once you get into english (it
> > shouldn't be capitalized here, right?) and spin and masse and jumps...
> > then it gets tricky. I should know, I tried and gave up.
> >
> > Peter Popov ICQ : 15002700
> > Personal e-mail : pet### [at] usanet
> > TAG      e-mail : pet### [at] tagpovrayorg
>
> --
> Josh English -- Lexiphanic Lethomaniac
> eng### [at] spiritonecom
> The POV-Ray Cyclopedia http://www.spiritone.com/~english/cyclopedia/


Post a reply to this message

From: Dave Blandston
Subject: Re: Collison Detecion in Povray?
Date: 5 Sep 2000 23:59:15
Message: <39b5c113$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:39b500eb@news.povray.org...
>   But the math is not so easy. You need to know some physics math
(momentum
> calculations and so on) to get the collisions, resulting speeds and
directions,
> etc accurately.

Not if you just blow up everything that hits something! :)


Post a reply to this message

From: Matt Giwer
Subject: Re: Collison Detecion in Povray?
Date: 6 Sep 2000 03:34:52
Message: <39B5F3AD.CD5F87C0@ij.net>
GrimDude wrote:
> 
> Has anyone done anything like this?

	If you remember that collision detection is an exhaustive test, yes,
lots of people have done it. Collision detection in game machines are
dedicated sprites and colligion registers or are background parallel
routines in machines without collision registers. 

	If you are going to drop random sized and shaped things into your POV
file rotsa ruck on finding a fast was to avoid collisions. 

	There are plenty of strategies for it depending upon what you have in
mind. 

-- 
The US fought Germany in WWII because Germany
declared war on the US.
	-- The Iron Webmaster, 30


Post a reply to this message

From: Greg M  Johnson
Subject: Re: Collison Detecion in Povray?
Date: 6 Sep 2000 10:48:55
Message: <39B65814.30379B1B@my-dejanews.com>
The problem is easy if you limits your desires to one or more of the following:
    1) Have collision avoidance, where a flock of particles each exert a
REPULSIVE FORCE on each other;
    2) Have a particle STEER to find lower-collision-probability directions for
travel;
    3) Have one particle be treated as a point, with no limits on the complexity,
concavity, tortuosity, etc., of the object it collides into.

I have examples of all of these on my page (which BTW might not be functional as
of this hour) at:


Matt Giwer wrote:

> GrimDude wrote:
> >
> > Has anyone done anything like this?
>
>         If you remember that collision detection is an exhaustive test, yes,
> lots of people have done it. Collision detection in game machines are
> dedicated sprites and colligion registers or are background parallel
> routines in machines without collision registers.
>
>         If you are going to drop random sized and shaped things into your POV
> file rotsa ruck on finding a fast was to avoid collisions.
>
>         There are plenty of strategies for it depending upon what you have in
> mind.
>
> --
> The US fought Germany in WWII because Germany
> declared war on the US.
>         -- The Iron Webmaster, 30


Post a reply to this message

From: Greg M  Johnson
Subject: Re: How the heck did that get sent??
Date: 6 Sep 2000 10:51:17
Message: <39B658AF.89BFEDFD@my-dejanews.com>
http://members.xoom.com/gregjohn/animation.html

Yes, it is a great headache to calculate true collisions between:
    1) complex object A and complex object B
    2) three rigid objects ( _This_ is why a perfect billiard simulation is
difficult).

"Greg M. Johnson" wrote:

> I have examples of all of these on my page (which BTW might not be functional as
> of this hour) at:
>
> Matt Giwer wrote:
>
> >         If you are going to drop random sized and shaped things into your POV
> > file rotsa ruck on finding a fast was to avoid collisions.


Post a reply to this message

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