PDA

View Full Version : TP collision


RudeYuut
08-23-2009, 05:14 AM
Ok, i just bought cinema and I'm a complete newbie. I'm trying to do a simple collision, I followed a tutorial from mograph to set up the thinking particles. The emitter works but the objects and/or particles are going thru each other. I want them to collide with each other but I'm not sure how to set it up. I found the repulse&bounce node in the xpresso editor, but I can't figure out where and how to attach the connector. I attached a screenshot, any help would be appreciated, thanks in advance.

http://img36.imageshack.us/img36/1504/screenshottua.jpg

ediris
08-23-2009, 05:26 AM
Particles from the same group cant collide with each other you will have to create a second set so group 1 and group2 can collide. It is a pity that this is not possible.
Edgard

skydistortion
08-23-2009, 09:46 AM
It is a pity that this is not possible.
Edgard
Have to agree ! pretty sad :(
would it be possible to develop a new "emitter node" with collision detection function ?

Srek
08-23-2009, 09:48 AM
The PRepulse and Bounce node needs some input to work wit.
Use the PPassAB node and feed it's two output ports into the two input ports of PR&B.
In PPassAB you can set the radius used for detection. Keep in mind that PR&B is not a real collider node, it just pushes the particles away from one another.

Ediris: Just use the same group (even all or an empty link field works) in both channels.

Cheers
Björn

RudeYuut
08-23-2009, 06:13 PM
Ok, I added the PPassAB node and connected it to Repulse and bounce node. It seems to be working but the particles seem to be bouncing on an invisible barrier and bouncing backwards. I'm assuming it's from the R&B node attributes, is there a way for them to bounce off each other but keep moving forward. I also found a collision node (Xpresso>General>collision). Is there a way to use this node with the particles?

http://img193.imageshack.us/img193/2931/screenshot2kkg.jpg

Srek
08-24-2009, 06:57 AM
The collision node can not be used for particle/particle collisions, it only works with real polygon objects.
As for particle movement after collision, this is something you have to define. Without a force of any kind acting on the particles to push them in a certain direction they won't change their path.
Maybe check the TP Prefered direction preset, i made it for situations like this.
Cheers
Björn

CGTalk Moderation
08-24-2009, 06:58 AM
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.