Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Character + cloth
#3
(21-12-2021, 08:21 AM)josemendez Wrote: Mixing softbodies and cloth -as in a softbody simulation driving a cloth simulation- isn't trivial at all, but can be done. Ideally if you want the cloth simulation on top of the softbody simulation, you should skin the cloth (in this case the socks) to the same set of bones used by the softbody. So a separate mesh with the same bones. Then at runtime you will have to write some code that copies the extra bones generated by the ObiSoftbodySkinner to the cloth, and another script that updates softbody and cloth in that specific order: softbody first, cloth second.


There will be no update to add support for this, since blend shapes and softbodies (or any deformable physics, really) go basically against each other: blend shapes change the rest state of an object. Deformable physics precompute the rest state of an object to achieve realtime performance. So once you add blend shapes to cloth or softbody, you need to recalculate the rest state every frame and forgo any realtime simulation.

Edit: just realized that by "wait for the update" you didn't mean an asset update to support blend shapes, but that you didn't care if the blend shape update is slow. This is not just for performance reasons, it isn't doable without basically rewriting the entire engine.

When you change a blend shape, the volume/shape of the mesh changes, so does the amount of particles in the softbody and their connectivity. So in addition to resampling the mesh with particles and re-generating all connections (which in a nutshell is the blueprint's "rest shape" information) you would have to transfer motion from the pre-blend shape representation to the post-blend shape one.


Anyway: if you're not doing this in realtime, why not using an offline simulator and importing the results into Unity using Alembic? this is both much simpler and faster.

Thank you for the answers! So I painted the character in the ObiSoftbodySkinner to edit what parts are jiggling and I have the stockings that are using same bones that the character. I can use ObiSoftbodySkinner to attach them to the character's softbody, but it's almost impossible to paint stockings with the same values manually. Is there any method so I can copy ObiSoftbodySkinner "map" to the another object so the stockings will follow the character at the same jiggle zones?
Reply


Messages In This Thread
Character + cloth - by aqualonix - 20-12-2021, 05:08 PM
RE: Character + cloth - by josemendez - 21-12-2021, 08:21 AM
RE: Character + cloth - by aqualonix - 24-01-2022, 01:03 PM
RE: Character + cloth - by josemendez - 26-01-2022, 03:07 PM
RE: Character + cloth - by aqualonix - 29-01-2022, 07:10 AM
RE: Character + cloth - by josemendez - 30-01-2022, 05:37 PM
RE: Character + cloth - by aqualonix - 30-01-2022, 06:54 PM
RE: Character + cloth - by josemendez - 31-01-2022, 10:17 AM