Wire solver attracting forces
7793 8 1- sabotage3d
- Member
- 28 posts
- Joined: July 2005
- Offline
- derrick
- Staff
- 328 posts
- Joined: July 2005
- Offline
sabotage3d
Hello guys I was wondering is there a way to control the wire object with custom forces in vopsop like SDF attraction. Like attracting curves to an goal object.
Custom forces can be specified by creating an attribute called “fexternal” on the Wire Object's “RestGeometry” subdata (described on the Wire Object DOP's help page). The force values could be updated at each time step using a SOP Solver. Attached is a simple working example.
- archie
- Member
- 71 posts
- Joined: June 2008
- Offline
- sabotage3d
- Member
- 28 posts
- Joined: July 2005
- Offline
- tamte
- Member
- 8551 posts
- Joined: July 2007
- Offline
you can define fexternal in source geo for some arbitrary forces, you can even animate it as well as source wire and it will affect the wiresim
however SOP solver method will give you the ability to calculate your fexternal force based on simulated wire from previous frame, which may be crucial if you want to match certain goal
however SOP solver method will give you the ability to calculate your fexternal force based on simulated wire from previous frame, which may be crucial if you want to match certain goal
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- MirHadi
- Member
- 143 posts
- Joined: July 2015
- Offline
hello
It seems like in H 15, fexternal is not taken into account by Wire solver. ( @derrick file doesn't work anymore)
in fact I need the wire solver respect the external force.
I have a piece of object and a simple wind force and I want it to rotate the object towards to moving direction.
I don't know hod to do it … ( does Orient attribute help?)
please let me know how to do it in H 15.
thank you in advance
It seems like in H 15, fexternal is not taken into account by Wire solver. ( @derrick file doesn't work anymore)
in fact I need the wire solver respect the external force.
I have a piece of object and a simple wind force and I want it to rotate the object towards to moving direction.
I don't know hod to do it … ( does Orient attribute help?)
please let me know how to do it in H 15.
thank you in advance
- MirHadi
- Member
- 143 posts
- Joined: July 2015
- Offline
- derrick
- Staff
- 328 posts
- Joined: July 2005
- Offline
Attached is an updated example that will work with Houdini 15.0. Basically, the Wire Object in Houdini 15.0 was updated to make some workflows easier and more consistent with other solvers. Instead of using the “fexternal” and “texternal” point attributes to apply forces and torques to Wire Objects, use “force” and “torque”. Also, the Wire Object now only has a single geometry subdata. The Wire Solver expects to find the attributes on this piece of subdata.
- MirHadi
- Member
- 143 posts
- Joined: July 2015
- Offline
-
- Quick Links