View Full Version : maya 2008 particles stick on surface and don't move
07-28-2010, 04:59 PM
I'm trying to do what seems to be simple but I just can't!
In maya 2008 (so classic particles) I want some snow particles to fall on an character's animated mesh and stick were they fall without sliding on the mesh.
The only result I can get is particles colliding, then staying in space where they hit wihout following the mesh or kind of sliding randomly on the mesh....
07-28-2010, 09:50 PM
You could use an event to call closestPointOnMesh in runtime using goals.
Been a long time for me using it so no help with an actual expression but thats the workflow i believe. Maybe one of the technically gifted fx artists here could help you get farther.
07-28-2010, 10:23 PM
thanks i will try to look into that "closestPointOnMesh".
07-28-2010, 10:31 PM
your welcome! Baby Ironman was amazing...loved it!
07-28-2010, 10:37 PM
Thanks a lot!
There's some help here too:
07-28-2010, 11:51 PM
Yes thanks. I already tried that one, but with the goals, the particles still slide on the surface...
I'm starting to think it's just impossible to do this with Maya classic particles.
07-29-2010, 02:11 AM
I'm not in front of Maya right now but two things come to mind.
Create the collision event and if the collision has occurred set the particle velocity to <<0,0,0>>.
Or store the particle position when the collision occurs and reapply it.
07-29-2010, 02:45 AM
goalU, goalV, goalPP
and a float PP attribute called switch.
and a float PP attribute called event.
particleShape1.goalPP = 0;
particleShape1.switch = 0;
if(particleShape1.event == 1 && particleShape1.switch == 0)
particleShape1.goalPP = 1;
particleShape1.goalU = particleShape1.collisionU;
particleShape1.goalV = particleShape1.collisionV;
particleShape1.switch = 1;
07-29-2010, 12:49 PM
You're my man!!! That works like a charm! the switch was missing in my runtime expression!
If I understand correctly, without the switch, it's like if the particles keep generating new collisions and keep getting reassigned new UVs coordinates, hence the sliding.
Actually the particles keep colliding, unless you use particleShape1.traceDepthPP=0;
which was mentioned in the other thread I referred to... look at reply #4 by TheRispo.
You can verify the collision count by choosing to display the particles as numeric and type "event" (without "") in the Attribute Name to be displayed numerically.
But anyway... whatever works :D
07-29-2010, 01:48 PM
Yes I know about traceDepthPP, but it was not working in my case... the particle kept sliding event with tradepthPP set to zero afterfirst collision... It's like they kept being reassigned to new UVs coordinates.
Good to know about the collision count display.
07-29-2010, 05:32 PM
Glad to help.
It looks as though the frame during which the collision occurs is fine, and gives a useful UV value, but after the collision frame it will sometimes return a "-1" (since it was not colliding, but rather bouncing after the collision). This is my solution to ensure that the goalU and goalV are set only once, and will not change. It works, but I'm certain that there are other methods that will also work.
07-29-2010, 05:32 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.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.