View Full Version : nCloth simulation timing
03-05-2007, 01:07 PM
I have a little problem with nCloth simulations timing. When I render (tga's sequence) a simulation, and then I play it at 25fps, it moves really slow, so I have to increase the fps a lot (around 90fps to see it 'natural').
The items I'm using are not bigger than 100cm, I've tried with different working units (cm, meters, etc...), and playback speed is set at 'Play every frame'.
So, I guess I'm missing something but I'm not sure what it is. Sorry if this is a very stupid question, but I don't have much experience with Maya.
Here are two examples of what I'm talking about:
At 25fps (really slow). Mov file. 1.1Mb (http://www.jacobobarreiro.com/stuff/nCloth/test_nCloth_25fps.mov)
At 90fps (better) Mov file. 1.1Mb (http://www.jacobobarreiro.com/stuff/nCloth/test_nCloth_90fps.mov)
03-05-2007, 08:40 PM
Looks like you need to adjust your Scale Attributes on the Nucleus Solver
Determines the relative time nCloth is running with respect to the Dependency Graph time. For example, if you want the cloth to run through the simulation twice as fast, the Time Scale value should be set to 2. The longer the nCloth's simulation time is, the more force has an effect on the Cloth. For example, if the force is gravity, the nCloth will appear to be heavier as the Time Scale increases. The default value is 1.
Determines the relative space scale applied to this Maya Nucleus solver. The Maya Nucleus solver treats nCloth objects as a scale model and applies the specified forces internally to get the expected behavior for the actual nCloth object at its actual size. The default value is 1.
If you are modeling such that one unit is equal to one centimeter, the Space Scale value should be set to 0.01.
03-05-2007, 09:35 PM
Thank you so much for your response and help. That seemed to be exactly the problem. I've adjusted the time and space scale a lilttle bit, and it runs perfect! :)
03-06-2007, 08:07 PM
Avoid using the timeScale on nCloth for now. There is a bug where moving passive objects will not collide correctly if the timeScale is not exactly 1. The spaceScale is fine however. Note that gravity is the primary driver of this animation, so that the intensity of gravity will generally affect the overall speed. SpaceScale for the most part just adjusts gravity.
03-13-2007, 08:21 AM
Thanks for the advice, Duncan. I'll take that into account. :)
04-16-2007, 03:41 PM
I got a question about nCloth, and exporting geometry. I'm trying to get one frame of the whole deformation, and set it as initial state. So far so good. But then I want to remove nCloth and keep that deformation in the geometry permanetly, to export it as an object (OBJ, or so).
Is there any way to freeze? I'm sure there is, but I wasn't lucky looking for help in the manual...
04-16-2007, 04:57 PM
Set initial state sets an array attribute on the cloth node, which thus won't help you.
Instead simply delete all the nodes that are upstream(to the left in hypergraph:connections) of outputCloth mesh. The output cloth mesh is then the mesh you export.
04-16-2007, 09:47 PM
Just perfect!! Exactly what I needed!
Thanks a lot for your help Duncan! :)
04-16-2007, 09:47 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-2014, Jelsoft Enterprises Ltd.