View Full Version : Thinking Particles, Local and Global Space

07 July 2012, 10:48 AM

I'm trying to create an emitter where secondary particles vibrate up and down relative to the of path primary ones of which they're parented.

I've used the data channel to parent the particle in Group A to Group B. This works fine.
I can then add noise to the Y channel of the Group B particle. Again this works fine.
But the particle moves up and down in Global Space and I want it to move 'up' and 'down' relative to the path of the particle of which it's parented to. Eg. In local space compared to that particle.

I'm trying to use the MatrixMulVector node to convert to and from Local Space but I can't get it working.

Here's my setup:


07 July 2012, 02:46 PM
I don't have cinema in front of me, do you mind posting a screenshot?

07 July 2012, 03:00 PM
You build the particle's matrix using its position and velocity. (

07 July 2012, 04:31 PM
Darter: That's great. Thank you very much, I've been struggling with this for a while. I see now that I didn't need to translate back using the MatrixMulVector. I was probably just neutralising any results I would have got!

Typografschaft: Here's a couple of screen shots. He's my attempt and here's Darter's solution

07 July 2012, 02:50 PM
You build the particle's matrix using its position and velocity.

i don´t want to hijack your thread, and your setupworks fine, Darter, but only a little correction:
you can get the matrix directly out of the alignment - so there´s no need for the velocity (take the output of the position instead of the velocity, and you will see no difference).
basically you can get your particle´s matrix out of the position, too, since the velocity is nothing else than the derivative of the position (and with this you will even have two nodes less in your setup by the way ;).
the Vector2Matrix node does nothing else than setting the 3 basisvectors defined by the position (with a adjustable direction function).

but still, nice workaround. just wanted to share some information...

07 July 2012, 04:03 PM
Alignment and Velocity aren't interchangable. For one, a particle can move in a totally different direction that where it points to. Secondly, the velocity vector does not give you a full matrix, one axis is undefined.

07 July 2012, 11:35 PM
This setup ( demonstrates the relationship between a particle's position and velocity.

07 July 2012, 03:06 PM
This is very kind of you, David.
Highly appreciated.

CGTalk Moderation
07 July 2012, 03:06 PM
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.