Stopping Particles

Discussions about SOFTIMAGEs© Interactive Creative Environment©
User avatar
spurv
Posts: 92
Joined: 08 Jun 2009, 19:28
Skype: patodigital
Location: Portugal

Stopping Particles

Post by spurv » 03 Jul 2009, 18:16

Hi!

I'm using Leaf Falling Motion node in conjunction with Bounce Off surface node with .01 on Bounce Factor
for the leaves to stop when they hit the ground, they collide and don't pass the ground,but they keep moving and rotating,
I'v managed to stop their Vel. multiplying it by 1 when they hit the ground but now I can't stop the rotation.



Hope someone can help.
Tks
Eu é que tou com cenas? Tu é que tás com cenas!
http://lickingtheice.tumblr.com
http://www.mariodomingos.com

asche
Posts: 3
Joined: 08 Jun 2009, 11:57

Re: Stopping Particles

Post by asche » 04 Jul 2009, 01:17

why not set the velocity, rotation and whatever to 0 , based on an if (collision with surface) ?

User avatar
spurv
Posts: 92
Joined: 08 Jun 2009, 19:28
Skype: patodigital
Location: Portugal

Re: Stopping Particles

Post by spurv » 04 Jul 2009, 14:10

If I set Rotation to 0 they jump do 0 angle.
Eu é que tou com cenas? Tu é que tás com cenas!
http://lickingtheice.tumblr.com
http://www.mariodomingos.com

User avatar
origin
Posts: 619
Joined: 09 Jun 2009, 09:59
Location: warsaw

Re: Stopping Particles

Post by origin » 04 Jul 2009, 16:46

You can plug stick to surface after leaf motion, that will stop rotating particles.
You can also fade down Spin parameter of leaf motion to 0 when particles are near ground.
Or disable leaf motion when particle = hit ground surface.
I can attach a scene for you tomorrow if you want, with leafs falling down softly, aligned to surface, with rotation slowly coming down when near ground.
edit: attached a scene to study
You do not have the required permissions to view the files attached to this post.

User avatar
spurv
Posts: 92
Joined: 08 Jun 2009, 19:28
Skype: patodigital
Location: Portugal

Re: Stopping Particles

Post by spurv » 06 Jul 2009, 08:10

Thankyou origin, I will check this out.
Eu é que tou com cenas? Tu é que tás com cenas!
http://lickingtheice.tumblr.com
http://www.mariodomingos.com

Leo
Posts: 128
Joined: 04 Jun 2009, 15:06

Re: Stopping Particles

Post by Leo » 06 Jul 2009, 10:16

Assuming that you have no other nodes in the tree that update the orientationvalue, it sounds to me like the Leaf Falling Motion-Compound is the bad guy here.
And since you don't need the leaf falling motion anymore once the particles hit the ground there is an easy fix for your problem.
Just filter the execution per point by a distancecheck of some sort.
Something like in the attached image should do the trick.
You do not have the required permissions to view the files attached to this post.

User avatar
spurv
Posts: 92
Joined: 08 Jun 2009, 19:28
Skype: patodigital
Location: Portugal

Re: Stopping Particles

Post by spurv » 06 Jul 2009, 11:07

origin, I'v learned a lot with your scene ^:)^

the Stick to Surface stopped my particles from spinning. And the Rescale with the FCurve!! Very nice!

Leo

That's a great idea I'll try that too.
Eu é que tou com cenas? Tu é que tás com cenas!
http://lickingtheice.tumblr.com
http://www.mariodomingos.com

Matic
Posts: 70
Joined: 18 Jun 2009, 17:58

Re: Stopping Particles

Post by Matic » 08 Jul 2009, 21:53

This is also the kind of thing states are good for. You have two states here - falling and stuck to surface. Think of states as separate "ice nodes" you can switch between... in one state, the leaf sim executes every frame, and when a collision with your surface is detected (a conditional like the one illustrated above) then the switch to a second state is executed, which does nothing.

The nice thing about states is that they are easilly built on. For instance, you can introduce a third state, where the leaves are being blown along the ground, or where they age etc, and handle each part of your overall animation separately.

By the way, don't let the docs mislead you - you can use states without using the "state machine."

User avatar
spurv
Posts: 92
Joined: 08 Jun 2009, 19:28
Skype: patodigital
Location: Portugal

Re: Stopping Particles

Post by spurv » 09 Jul 2009, 08:42

Yesss off course, STATES. I have to try that!
Eu é que tou com cenas? Tu é que tás com cenas!
http://lickingtheice.tumblr.com
http://www.mariodomingos.com

Splin
Posts: 14
Joined: 07 Jul 2009, 09:17

Re: Stopping Particles

Post by Splin » 04 Jan 2012, 13:32

I wonder what would be the most efficient way to pile up leaves to themselves?
Riggid bodies are very slow.