PDA

View Full Version : Maya Hair weight Dynamics


CoolmoeDee
04-10-2009, 09:39 PM
Hi all,

I'm trying to get a pony tail that is rigged with maya hair, to move around like it's really heavy and has alot of weight to it. At the moment it's moving around fine but it's lacking weight in the movements, it's feels really light and doesn't have much weight. I've tried messing around the mass, gravity, drag and dynamics weight but I haven't been able to add more weight to the simulation.

I was wondering if anyone had any ideas in getting more weight in Hair simulations?

Cheers.

Duncan
04-14-2009, 07:29 PM
First off the gravity needs to be set to the right value( typically it is too low.. the default setting assumes units are meters for smaller sized units increase the gravity proportionately).
If the added gravity causes too much stretching increase the iterations. (lower the stiffness if needed to compensate for the increased iterations)

For heavy objects the air provides little resistance( because the objects are heavier than the air) thus lower the drag(perhaps to zero). You may also be OK with little or no damp.

Duncan

Duncan
04-14-2009, 07:36 PM
Actually just doing a quick test I think you probably would want some damp... otherwise it will be too springy for a pony tail. At any rate use damp, but keep the drag at zero. One other point is to have high iterations but make the stiffness scale ramp quickly drop to a low value so that the base of the ponytail is relatively rigid and locked but the end is free to swing.

Duncan

CoolmoeDee
04-15-2009, 02:46 AM
Thanks Duncan.

Dropping the drag down to zero did the trick.

I've run into a another problem concerning the Hair "createHairConstraint 5" command. I've been trying to automate the creation of the collision sphere constraints by a script, but everytime I run the script, the hair dynamics break. however if i create the collision spheres by hand everything stills works.

Basically having the same problems as this

http://forums.cgsociety.org/showthread.php?f=89&t=349950&highlight=createHairConstraint

Cheers.

Duncan
04-15-2009, 05:29 PM
Before any call to createHairConstaint you need to select any follicles to constrain (or the entire hair system). I think the creation of the constraint will change the selection, so if one does it in a loop then one must reselect the follicles or hair system each time before calling createHairConstraint.

Also it might be cleaner to simply parent the constraint nodes to the objects you wish to follow, rather than connecting the translate attrtibutes. This way you can also more easily position the constraint relative to the object.

Duncan

CoolmoeDee
04-15-2009, 10:12 PM
Thanks Duncan.

got the script to work now. To get it to work I had to force maya to refresh through the script via the refresh command.

CGTalk Moderation
04-15-2009, 10:12 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.