2011 Software releases
Learn about the 2011 versions of some of Autodesk’s Digital Entertainment Creation tools.
Theme color:
  • 1/2
You are here: Homepage /  Blogs /  Duncan's Blog / Nucleus and nCloth in Maya8.5
Nucleus and nCloth in Maya8.5
Posted: Jan 25, 2007
Category: nCloth
Social Media:
Bookmark and Share
 
Now that Maya 8.5 is out I finally have an opportunity to update this blog. I have been working on the nCloth feature and now that it is in user hands I hope people will have fun with it. NCloth is the first thing in Maya to use our new Nucleus solver framework. Over the next few weeks I hope to populate this blog with several tutorials on nCloth. To start the ball rolling we've put some some attribute presets for the nCloth node on the bonus tools page:

bonus tools

To use first unzip this file and place the folder "nCloth" inside the folder "presets" in your maya install location.

In Maya select a mesh and do "nCloth: Create nCloth". In attribute editor for the nClothShape when you click on the button "Presets" the new presets should appear. Simply select a preset to apply it to that cloth. Note that these preset files do not set all attributes on the cloth node, but just a relevant subset. Thickness and self collide settings are generally not affected, for example. Also all these presets set the scalingRelation attribute to "object space". This allows the stretch to be more or less constant when applied to meshes of different resolutions.

Note that it is usually important to get the sense of gravity right for the scale of your objects. By default things are set up with the assumption that units are meters ( the actual Maya unit setting, which defaults to centimeters, is ignored by Maya dynamics). If your object is modeled with the sense of units being centimeters then the gravity will be off by a factor of 100. To compensate set the spaceScale to 0.01 on the nucleus node. This will make the gravity much stronger, and one may need both higher stretchResistance, constraint strength levels and subSteps as a result. In general high gravity is harder to simulate with, especially with detailed cloth meshes. Also note that if one is putting clothing on a mouse then the effective gravity is even higher due to the small scale( a piece of cloth will fall from head to foot of a mouse in the blink of an eye ). In such situations it might make more sense to work with lower gravity, simulating more of a human scale and making solving easier. Also note that lowering gravity is also roughly equivalent to slow motion. In some cases low gravity can provide more interesting, flowing results.
In order to post any comments, you must be logged in!
Newest users comments View All 12 Comments
Posted by Vista on Jan 16, 2009 at 04:50 PM
thank you so much , I try to find out this tutorial for many time.
Posted by StefanAlbertz on Feb 09, 2008 at 01:03 AM
thanks for your response. Lowering the mass would also mean more flap and more tiny wrinkles, or am i wrong? In my "experiments" (i still have to call it that way, i´m not intuitive here yet) i raised the mass up, to "calm" the tiny and small wrinkles down, it´s at about 3.5. If this unit is kg it´s a quite heavy flag, for sure (is it kg?).

The resolution is already quite high (above 7000 quads), sized 2.0 * 0.8 units (so, 2m times 0.8m). If i now lower the mass again, and reduce some amount of wind, how can i prevent those tiny wrinkles happening, if the cloth is very thin? And last question: don´t i have to also tweak the other resistances, compression, bend - and the damping?

Thanks for your help! I
Stefan
Posted by Duncan Brinsmead on Feb 08, 2008 at 11:06 PM
I can't upload that example at the moment, however some things to try:
*lower the mass of the cloth (will have more drag and lift) instead of increasing the windspeed.. too much flapping is a sign of heavy cloth in a hurricane
*increase the resolution of the mesh and increase the substeps and stretch resistance to better handle the detail mesh. Lower the thickness and use full surface self collisions.
*if you want a huge rolling flag then gravity should be relatively low... or simply model at a larger scale, which will have the same effect.
Posted by StefanAlbertz on Feb 06, 2008 at 08:03 PM
Hello Duncan,

could you please post this flag example? I´m tweaking a flag-demo here for some hours now, but i can´t get the same nice effect. most of the time, my flag "flaps" to much, i don´t get the nice ripples by the wind flowing through the cloth.

thanks in advance
Stefan
Posted by Duncan Brinsmead on Nov 05, 2007 at 11:02 PM
The workflow is outlined in this blog entry:
area.autodesk.com/index.php/blogs_duncan/blog_detail/a_very_simple_ncloth_flag/
I used a higher resolution mesh than in that example and had higher stretch resistance. The drag, lift, and windspeed are key attributes to adjust for the desired effect. For example one could have lower windspeed with more drag or visa-versa depending on the weight and size of the cloth.

Duncan