Hi all,
I've mixed a SOP solver with an FEM solver. I have four spheres and the SOP solver moves them towards a certain point, but I want the FEM solver to make them squish up against each other when they do, but currently, they just pop inside of each other.
I've tried upping the dopnetwork's sub-steps, but it doesn't seem to help for some reason
The ‘force’ with which the SOP solver will try to move the spheres towards the point is controlled by a parameter called ‘amp’ located in:
AutoDopNetwork > sopsolver1 >foreach > calcs
The target point is defined in there too.
Way to stop FEM simulation inter-penetrating?
3411 7 1- Anti-Distinctlyminty
- Member
- 271 posts
- Joined: 3月 2012
- Offline
- tamte
- Member
- 8555 posts
- Joined: 7月 2007
- Offline
- Anti-Distinctlyminty
- Member
- 271 posts
- Joined: 3月 2012
- Offline
Ok that pretty interesting, thank you tamte.
So if I apply a force attribute to points, it will be read by any solver?
Is there a reason why applying a transform in the SOP solver doesn't work? The reason I tried it is because I have a tutorial series from Digital Tutors
http://www.digitaltutors.com/tutorial/535-Combining-Procedural-Animation-and-Rigid-Body-Dynamics-in-Houdini [digitaltutors.com]
..and this is the method used in there.
So if I apply a force attribute to points, it will be read by any solver?
Is there a reason why applying a transform in the SOP solver doesn't work? The reason I tried it is because I have a tutorial series from Digital Tutors
http://www.digitaltutors.com/tutorial/535-Combining-Procedural-Animation-and-Rigid-Body-Dynamics-in-Houdini [digitaltutors.com]
..and this is the method used in there.
- tamte
- Member
- 8555 posts
- Joined: 7月 2007
- Offline
yes, force is pretty unified in H13 so it works for particles, FLIP, wires, cloth, FEM, RBD
in earlier versions you could add some value to v for FLIP or use fexternal for cloth, VOP Force for RBDs… to control your sim besides the DOP Forces
transforming points directly is usually a bad idea since solver then needs to solve interpenetrations that you may cause that way which may be much more trickier(and many times too late) than letting the solver prevent interpenetration in the first place by solving the positions internally by integrating forces and velocities
in earlier versions you could add some value to v for FLIP or use fexternal for cloth, VOP Force for RBDs… to control your sim besides the DOP Forces
transforming points directly is usually a bad idea since solver then needs to solve interpenetrations that you may cause that way which may be much more trickier(and many times too late) than letting the solver prevent interpenetration in the first place by solving the positions internally by integrating forces and velocities
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Anti-Distinctlyminty
- Member
- 271 posts
- Joined: 3月 2012
- Offline
That's very useful to know, thanks.
Also, while you're here, I keep having issues with visualizing attributes. I want to know what the force is on each of my spheres. I open up the display options, add a custom variable with
Name: force
Label: force
Attribute: FORCE
I activate it and it doesn't show up. I've always had issues with getting Houdini to show attributes in the viewport, but now it never, ever works.
Also, while you're here, I keep having issues with visualizing attributes. I want to know what the force is on each of my spheres. I open up the display options, add a custom variable with
Name: force
Label: force
Attribute: FORCE
I activate it and it doesn't show up. I've always had issues with getting Houdini to show attributes in the viewport, but now it never, ever works.
- tamte
- Member
- 8555 posts
- Joined: 7月 2007
- Offline
- Anti-Distinctlyminty
- Member
- 271 posts
- Joined: 3月 2012
- Offline
- animatrix_
- Member
- 4516 posts
- Joined: 2月 2012
- Offline
No all caps would only work if the attribute name was in all caps. You have to use the same casing as your attribute name. By convention, all caps are reserved for variable names.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
-
- Quick Links