MustardUI icon indicating copy to clipboard operation
MustardUI copied to clipboard

Physics Improvements

Open Mustard2 opened this issue 1 year ago • 15 comments

Features

  • [ ] Improve Soft Body support #220
  • [ ] Presets
  • [x] Tool to add Surface Deform to Outfits affected by Caged Physics Items (#250)
  • [x] Cache tools to also work on Outfit and Hair physics (#243)
  • [x] Possibility to add or detect physics on the Outfits, Hair etc.. (#243)
  • [x] Add support for Hair particles and Hair geonodes, with additional settings
  • [x] Binding operator #216 (#241)
  • [x] Simplify the UI (#241)
  • [x] Influence sliders for Surface/Mesh deform modifiers (2025.3.1)
  • [x] Multi-chain for Bone Physics #227 (2025.3.1)
  • [X] Items summary (2025.3.0)
  • [X] Edit button for quick enable/disable of collisions (2025.3.0)
  • [X] Add Pinning Strength for Cloth Physics (2025.3.0)
  • [X] Setting the name of a Smooth Modifier to the name of the physics item, this will be disabled when physics is disabled (globally) (2025.3.0)

Bugs

  • [x] Physics creator tools can not be used with Viewport Model Selection on (added a check in 2025.3.5 #241)
  • [x] Begin and end frame in Global Cache seems not to work always (2025.3.3 #234)
  • [x] Mirror function is not always working (maybe it's just missing some properties?) (2025.3.3 #234)
  • [x] Changing the global frames gives an error (2025.3.0)
  • [x] Summary panel is not disabled when Physics is False
  • [x] Hair were not influenced by enable/disable physics (2025.3.2 #233)

Mustard2 avatar Feb 03 '25 22:02 Mustard2

It might be annoying to have to use the dropdown menu just to enable/disable physics on single items. I'm adding an overview list panel to simplify this.

Image

Mustard2 avatar Feb 06 '25 00:02 Mustard2

Fantastic implementation of physics on the menu, this is game changing stuff for animators. I appreciate the bone physics inclusion like shown in #222 very useful for hair and rigged clothing, just a nitpick for bone collisions, is there a way to implement multiple bone selection at once instead of a root selection one by one (like multiple hair strain bones instead of just one bone line of, dunno how to specifically say it)? I notice it automatically produces the bones constraints, which is similar to how it's done in this add-on (https://www.youtube.com/watch?v=8rlhOAh5CiU) , but in this one we can produce more than one, and I feel the way you use a plane is more effective than the way this add-on uses cages.

mokujinh avatar Feb 13 '25 08:02 mokujinh

Fantastic implementation of physics on the menu, this is game changing stuff for animators. I appreciate the bone physics inclusion like shown in #222 very useful for hair and rigged clothing, just a nitpick for bone collisions, is there a way to implement multiple bone selection at once instead of a root selection one by one (like multiple hair strain bones instead of just one bone line of, dunno how to specifically say it)? I notice it automatically produces the bones constraints, which is similar to how it's done in this add-on (https://www.youtube.com/watch?v=8rlhOAh5CiU) , but in this one we can produce more than one, and I feel the way you use a plane is more effective than the way this add-on uses cages.

Thanks, also for the suggestion! I opened a new issue to keep track of that.

Mustard2 avatar Feb 13 '25 17:02 Mustard2

Influence sliders are introduced in 2025.3.1 #224

Mustard2 avatar Feb 17 '25 19:02 Mustard2

I may be going crazy, but I'm pretty sure there was a choice to modify the width of the plane mesh generated for bone physics in an early version? It's not possible anymore before generating it?

Image

mokujinh avatar Feb 21 '25 22:02 mokujinh

Also getting this error after generating a few cages and using the menu tool to delete others

Python: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\extensions\blender_org\MustardUI\menu\menu_physics.py", line 196, in draw pi = physics_settings.items[int(physics_settings.items_ui_list)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''

mokujinh avatar Feb 21 '25 22:02 mokujinh

I may be going crazy, but I'm pretty sure there was a choice to modify the width of the plane mesh generated for bone physics in an early version? It's not possible anymore before generating it?

Image

It's in the advanced settings :)

Mustard2 avatar Feb 23 '25 19:02 Mustard2

Also getting this error after generating a few cages and using the menu tool to delete others

Python: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\extensions\blender_org\MustardUI\menu\menu_physics.py", line 196, in draw pi = physics_settings.items[int(physics_settings.items_ui_list)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''

Strange bug, let me investigate it

Mustard2 avatar Feb 23 '25 19:02 Mustard2

Also getting this error after generating a few cages and using the menu tool to delete others

Python: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\extensions\blender_org\MustardUI\menu\menu_physics.py", line 196, in draw pi = physics_settings.items[int(physics_settings.items_ui_list)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''

Can you send me the blend that's giving you the error? Can not replicate it on my side :(

Mustard2 avatar Feb 23 '25 20:02 Mustard2

Also getting this error after generating a few cages and using the menu tool to delete others

Python: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\extensions\blender_org\MustardUI\menu\menu_physics.py", line 196, in draw pi = physics_settings.items[int(physics_settings.items_ui_list)] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''

Can you send me the blend that's giving you the error? Can not replicate it on my side :(

this issue seems to be gone with the latest version update! Dunno what happened but if I come through the same problem again I'll make a new post about it :)

mokujinh avatar Mar 07 '25 22:03 mokujinh

@mokujinh Ok, please let me know in case it reappears! :)

Mustard2 avatar Mar 08 '25 13:03 Mustard2

I'm not completely satisfied with the UI at the moment. It seems unnecessary complicated to have two distinct panels maybe.

Still thinking on how to make it better..

Mustard2 avatar Mar 25 '25 20:03 Mustard2

Image

I changed a bit the Physics Panel look. Instead of having two separate windows, now we have just one panel and a UIList that will load the corresponding settings for the specific item.

Mustard2 avatar Mar 30 '25 15:03 Mustard2

Making the presets is proven to be more difficult than expected. Maybe I'll have to create a custom implementation.

For the moment that feature is on pause.

Mustard2 avatar Apr 22 '25 19:04 Mustard2

#250

Added tool to add Surface Deform modifiers to outfits automatically. The modifiers will be switched on/off automatically depending if their Object is in the list of Outfits affected by Physics Item in the configuration settings.

Image

Mustard2 avatar Apr 22 '25 22:04 Mustard2