FEM and Vellum as mutual affectors?
1718 11 1- gordig
- Member
- 42 posts
- Joined: 9月 2019
- Offline
I've got a female figure that I've set up for FEM simulation so that her breasts move naturally. She's wearing a sports bra that I want to compress her breasts and restrict their motion. I have yet to figure out how to actually achieve that. I'm still fairly new at FEM, and also Vellum simulations at DOP rather than SOP level (which so far doesn't seem to work as well as SOP Vellum sims). The figure is set up in a FEM solid object that feeds a FEM solver, and that works just great on its own. The Vellum objects (I'm also simulating her pants in the DOP while I'm at it) are merged as mutual colliders and connected to a Vellum solver, which works on its own. The problem is that when I merge the two together, the behavior gets a little wonky. The merge is set to mutual collider, but when the FEM solver is the first input, the bra ends up being pushed above the breasts by the end of the simulation; with the FEM solver as the second input, the FEM and Vellum simulations just kind of...ignore each other. The FEM simulation starts walking, but the bra simulates as if it were stationary. I've also tried setting the merge to "constraint", and I don't remember what effect that had, but it didn't solve the problem. What am I missing?
- michiel
- スタッフ
- 429 posts
- Joined: 6月 2007
- Offline
To achieve the best possible results for a two-way interaction like this, I would recommend using only a single solver for the entire setup.
You could use either FEM or Vellum, whatever your preference is.
For the bra, I would recommend creating a tube-shaped polygon mesh around the body.
This tube could have collisions turned off and interact with the body using attach and/or slide constraints, which are available in some form on both solvers.
You could use either FEM or Vellum, whatever your preference is.
For the bra, I would recommend creating a tube-shaped polygon mesh around the body.
This tube could have collisions turned off and interact with the body using attach and/or slide constraints, which are available in some form on both solvers.
- gordig
- Member
- 42 posts
- Joined: 9月 2019
- Offline
- tamte
- Member
- 8784 posts
- Joined: 7月 2007
- Offline
gordigeach solver must be used only with compatible objects so you can use
So merge the Vellum object and the FEM solid object, then feed that merge into one of the solvers?
Cloth Object + Solid object and FEM Solver
or
Vellum Cloth + Vellum Tetrahedral Softbody and Vellum Solver
I'd personally go with Vellum
Edited by tamte - 2024年4月18日 17:47:52
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- gordig
- Member
- 42 posts
- Joined: 9月 2019
- Offline
- tamte
- Member
- 8784 posts
- Joined: 7月 2007
- Offline
definitely try vellum tetrahedral softbody since Muscle tools are also using those and 19.5 got a few updates that were getting the behavior closer to FEM
you can watch this https://vimeo.com/739693945 [vimeo.com] ideally from beginning, but at ~ 9:20 John compares it to FEM
you can watch this https://vimeo.com/739693945 [vimeo.com] ideally from beginning, but at ~ 9:20 John compares it to FEM
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- gordig
- Member
- 42 posts
- Joined: 9月 2019
- Offline
- gordig
- Member
- 42 posts
- Joined: 9月 2019
- Offline
I found some time to try out Vellum Tet sims, and I'm having three problems with it:
I've got the whole figure fed into a Tet Conform, with a created point attribute of "targetstrength" (carried over from FEM simulations, because I'm more used to those) set to 1e9. The breasts and butt are made out of primitive spheres booled away from the base figure, Tet Embeded and given their own attribute of targetstrength, which is currently set to 0, but neither of those values seem to matter much, whether they're scaling the stretch stiffness or the compression stiffness. It doesn't help that Vellum Tet sims don't have bend stiffness.
- I can't figure out how to set the strength high enough that the figure holds its shape well enough for my liking
- Because of #1, I also can't scale the stiffness with attributes such that the only parts that deform are the ones I want to deform.
- Regardless of #1 and #2, I can't figure out how to run the animated figure through the simulation. I'm guessing I'll have to simulate the figure in base pose, then drive the simulated figure through a point deform, much like with a FEM sim.
I've got the whole figure fed into a Tet Conform, with a created point attribute of "targetstrength" (carried over from FEM simulations, because I'm more used to those) set to 1e9. The breasts and butt are made out of primitive spheres booled away from the base figure, Tet Embeded and given their own attribute of targetstrength, which is currently set to 0, but neither of those values seem to matter much, whether they're scaling the stretch stiffness or the compression stiffness. It doesn't help that Vellum Tet sims don't have bend stiffness.
Edited by gordig - 2024年4月22日 19:48:58
- tamte
- Member
- 8784 posts
- Joined: 7月 2007
- Offline
gordig
I found some time to try out Vellum Tet sims, and I'm having three problems with it:
- I can't figure out how to set the strength high enough that the figure holds its shape well enough for my liking
- Because of #1, I also can't scale the stiffness with attributes such that the only parts that deform are the ones I want to deform.
- Regardless of #1 and #2, I can't figure out how to run the animated figure through the simulation. I'm guessing I'll have to simulate the figure in base pose, then drive the simulated figure through a point deform, much like with a FEM sim.
1. your figure seems pretty stiff, probably more than you need so I don;t think it needs to be stiffer
2. you don't need to vary the tet stiffness to get what you are after, what you want is to add Soft Pin Constraint with Match Animation checked and let that define what parts follow the animation of target geometry with full stiffness ( areas aroud "skeleton") and which are completely free, or anything inbetween
so if you use your "targetstrength" parameter for that make is 0-1 mask as stiffness scaling parameters are applied logarithmically
3. Pin To Target Constraint with Match Animation on and control the stiffness like mentioned in 2.
to optimize the setup you can also use Hard Pin constraint for points that you want to fully follow animation (like areas around "bones") instead of having those also be very stiff soft pin constraints, however you may run into some issues and jitter if you force hard constrained points into some impossible situations
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- gordig
- Member
- 42 posts
- Joined: 9月 2019
- Offline
Thanks to your help, I've been able to hammer this into a workable shape, so all that's left is fine-tuning, which brings me to probably the final question of this thread: is there any logic to how one balances things like stiffness, damping ratio and so on? Some kind of guide or rule of thumb? So far I've just been making incremental changes to different parameters and seeing what changes.
- gordig
- Member
- 42 posts
- Joined: 9月 2019
- Offline
After extensive experimentation, I've found settings that work well enough for now, but the problem I'm having now is that parts of the body that are supposed to be rigid are being impacted by the simulated parts, i.e. if a breast makes contact with an arm, the breast maintains its shape and volume, but the arm gets pressed in. Also, one of the fingers gets caught on her thigh in this animation and gets stretched unnaturally. Does it make more sense to have the Tet constraint before the Pin to Animation constraint? Right now I've got it the other way around.
Edited by gordig - 2024年5月9日 04:46:37
- gordig
- Member
- 42 posts
- Joined: 9月 2019
- Offline
I've made a fair bit of progress on softbody simulations, but I still haven't figured out what I wanted to do in the first place: make cloth and softbodies mutual effectors. It doesn't help that any time I DOP simulate cloth, it reacts violently to the figure.
The figure alone works just fine:
But if I add clothes, this starts happening:
I think I've got things set up the way I should:
The Vellum Object is not linked to mesh and constraints, but all of the Sources are linked to their respective mesh and constraints. The shoes are just there for the pants to collide against; it doesn't seem to matter whether the shoes run through a Static Solver, or whether they're merged before or after the Vellum Solver. It also doesn't seem to matter whether I'm simulating the figure and cloth together in a DOP or a Vellum Solver SOP, so I just don't know what I should be doing differently. I know you can't see all of my settings on every node, but hopefully someone at least has a good guess about what might be going wrong.
The figure alone works just fine:
But if I add clothes, this starts happening:
I think I've got things set up the way I should:
The Vellum Object is not linked to mesh and constraints, but all of the Sources are linked to their respective mesh and constraints. The shoes are just there for the pants to collide against; it doesn't seem to matter whether the shoes run through a Static Solver, or whether they're merged before or after the Vellum Solver. It also doesn't seem to matter whether I'm simulating the figure and cloth together in a DOP or a Vellum Solver SOP, so I just don't know what I should be doing differently. I know you can't see all of my settings on every node, but hopefully someone at least has a good guess about what might be going wrong.
-
- Quick Links