Slow physics

Have you come up with a good Moho trick? Need help solving an animation problem? Come on in.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
slowtiger
Posts: 6067
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Slow physics

Post by slowtiger »

Just a gentle reminder: if you use physics in your rigs, the project will render on 1 core only, thus extending rendering time a lot.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
User avatar
Greenlaw
Posts: 9192
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Slow physics

Post by Greenlaw »

Just curious but is that still the case when you enable Use Baked Physics?

To me, enabling this option should suspend physics processing so Moho can use all processors for normal keyframed animation and rendering. I haven't actually checked for this though. If it still renders on only one core, this might be a bug.
User avatar
slowtiger
Posts: 6067
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Slow physics

Post by slowtiger »

Good point. Can physics be baked in v11?
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
User avatar
Lukas
Posts: 1295
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: Slow physics

Post by Lukas »

If you bake physics and let it play out it will create a lot of keyframes. If you then turn physics off, I assume you can render on all cores again.
User avatar
Greenlaw
Posts: 9192
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Slow physics

Post by Greenlaw »

slowtiger wrote:Good point. Can physics be baked in v11?
I'm not sure. I don't have 11 on my laptop or at work, just 12. I'll check on my workstation at home when I get a chance.

In 12, the option is here:

Image

For bone physics, you'll need to bake the bone channels with a script. (IMO, this really should be a native feature though.)
User avatar
slowtiger
Posts: 6067
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Slow physics

Post by slowtiger »

It was, in fact, bone physics. (Result here: viewtopic.php?f=8&t=32856)
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Slow physics

Post by synthsin75 »

Yep, you can bake the physics in v11.2.
User avatar
Greenlaw
Posts: 9192
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Slow physics

Post by Greenlaw »

Just a little more info for anybody who can use it:

For the bones stuff, the bones animation will need to be baked and then bone dynamics switched off. Naturally, this should be done to a copy of the scene in case you need to re-calc with different sim settings.

IMO, it's probably not worth the trouble unless you're seeing a significant hit in render times. Or if you're using network rendering, in which case baking dynamics may be the only way to get correct results when rendering across multiple computers. (This is the case when I'm using dynamics for 3D animation and VFX work in other packages anyway.)

Here's a forum thread for a Moho bone baking script:

https://www.lostmarble.com/forum/viewto ... 32#p173732

(Note to the Moho Developers: baking tools like this really should be native.)
User avatar
slowtiger
Posts: 6067
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Slow physics

Post by slowtiger »

Greenlaw wrote:For the bones stuff, the bones animation will need to be baked and then bone dynamics switched off.
Whoah. I've got a character rig with 9 bones all doing physics, multiplied by 6; that's 54 bones - do I have to select each and every single bone after baking and switch physics off? Wouldn't it be possible to use a script, point it to a folder and say "switch off physics on all bones inside"?

The more I work with stuff like this (and not only in Moho), the more I feel the need for filtered selections.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
User avatar
Greenlaw
Posts: 9192
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Slow physics

Post by Greenlaw »

You should be able to globally disable bone physics from here:

Image

I recall having some issues with it back in 9.5 or 10 which I think got fixed, but should probably check it in a later versions.

Hmm. The big question I have at the moment is: does this switch disable bone physics for rendering? How about when I'm using Moho Exporter?
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Slow physics

Post by synthsin75 »

Greenlaw wrote:You should be able to globally disable bone physics from here:

Image
Like frame skipping, that's only a workspace setting.
User avatar
Greenlaw
Posts: 9192
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: Slow physics

Post by Greenlaw »

Ugh...I was afraid of that.

Does selecting all bones and then checking off bone physics in the Bone Constraints panel do the trick?

I could check myself but a bit busy at the moment.
User avatar
synthsin75
Posts: 9935
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Slow physics

Post by synthsin75 »

Greenlaw wrote:Ugh...I was afraid of that.

Does selecting all bones and then checking off bone physics in the Bone Constraints panel do the trick?

I could check myself but a bit busy at the moment.
Yes, except that it would also make all other constraint properties the same.

Turning off dynamics for all bones on a layer or the whole project sounds like a task for scripting.
Post Reply