Unfortunately b-boxing the whole group of particles isn't a good option
either. The group of particles is traveling through a space enclosed by the
geometry, so the bounding box would always be in contact.
I'm thinking I can partition the geometry into some kind of a recursive data
structure, but haven't figured out exactly how to do it. I'd like to do the
same with the particles themselves, but can't quite picture how to deal with
a particle moving out of one partition and into another.
BTW... Thanks to everyone for all your input and suggestions, it helps to at
least bounce ideas around, and talk it out. : P
-----Original Message-----
From: Shawn Kendall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 10, 2000 2:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Particle Collision?
Neil Daniels wrote:
> Shawn,
> I think you're correct that particle-to-particle interactions are easier,
> and that handling that, for example, in the Animation loop would be a
proper
> way to do it - that way you can control the new vector and speed more
easily
> (i.e., have a ParticleMaster which check all particles against each other
> for collision and then resets vector, color and speed appropriately. Then
> update the scene)
> And I think you're correct that particle-to-object is more processing
> intensive, if you're using collision detection for each particle.
> But, if your particles are in some proximity to each other, you can create
> and invisible 'box' around them, then check for that box colliding with
> other objects. At that point, only at that point, would you need to check
> each particle against the object collided. I think this would speed it up
> considerably...
Yes, I agree. Throw a bounding box or sphere around the whole group of
particles if you can, and use that to weed out most of your database.
--
__________________________________________________________
Shawn Kendall Full Sail Real World Education
Course Director 3300 University BLVD
Real Time 3D for Gaming Winter Park FL 32792
[EMAIL PROTECTED] http://www.fullsail.com
__________________________________________________________
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".