Particle Collisions?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  12 December 2005
Particle Collisions?

Is it possible to change a particle's color once it collides with another particle?

Basically I have two emitters that point at each other. Once the particles from each emitter hit each other I'd like them to change color while the remaining particles stay the same.

So far I think this is a TP problem for which I'm still learning.
I've tried a simple Xpresso collision node but it seems I'm missing something in concept as I'm unable to succeed.

Can someone put me on the right track with this or is it even possible to do in the first place?
__________________
...stuff
 
  12 December 2005
I 'may' have found the answer over here:
http://bonkers.de/tp/knowhow.html#singleout
__________________
...stuff
 
  12 December 2005
Yes, thats your basic solution. In case of a collision it depends on how you handle the collision. If you do it with a PPassAB node with a detection radius just put the particle from the Pass you want in a different group, if you use some other setup to detect the collision just use the very same result to trigger a PGroup node to switch the particles from one group to another.
Cheers
Björn
__________________
- www.bonkers.de -
The views expressed on this post are my personal opinions and do not represent the views of my employer.
 
  12 December 2005
Thanks Srek,
I tried a bit last night but no luck yet.
When I get home from work I'll give it another shot
__________________
...stuff
 
  12 December 2005
Well, I can't figure out the collisions .
I'm finally able to get two emitters to emit colored particles (thanks both to Srek's site and some at C4dCafe ) but I can't seem to figure out how to detect a collision between particles from each emitter.

Wondering though whether I'm approaching this correctly? Would I be better off comparing distance rather than looking for a collision?

Anyway, attached is the current file to show my route.
__________________
...stuff
 
  12 December 2005
Hi,
you are trying to use two seperate PPass nodes for this, this can't work.
Take a look here for more oinfo on this: http://www.bonkers.de/tp/knowhow.html
Also you are checking on an exact distance of zero, this will probably never ever happen. You will have to check on two times the particle diameter (or any value you want) and lower.
PPassAB can make this much easier, it already has an option to limit particle iteration to particles within a set distance. It's not only easier to use but also much faster since particle that are not within the distance are not used in the iteration.

Cheers
Björn
__________________
- www.bonkers.de -
The views expressed on this post are my personal opinions and do not represent the views of my employer.

Last edited by Srek : 12 December 2005 at 10:02 AM.
 
  12 December 2005
Originally Posted by Srek: Also you are checking on an exact distance of zero, this will probably never ever happen. You will have to check on two times the particle diameter (or any value you want) and lower.
PPassAB can make this much easier...




Two times the diameter. Hmmm. I would have thought it would be two times the radius?
So is it checking from the center of the particles?
Maybe learning this will keep me young .
__________________
...stuff
 
  12 December 2005
Originally Posted by Tiziano:

Two times the diameter. Hmmm. I would have thought it would be two times the radius?
So is it checking from the center of the particles?
Maybe learning this will keep me young .


I realy meant two times the radius or if you have particles of different size both radii added.
Cheers
Björn
__________________
- www.bonkers.de -
The views expressed on this post are my personal opinions and do not represent the views of my employer.
 
  12 December 2005
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:58 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.