Jump to content

2D vellum Simulation


lucaspedrajas

Recommended Posts

Hello guys , I cant find an attribute or something in vellum  to make it avoid movement in one particular angle or i'm missing it.

 

 I want to simulate a spring in a 2d domain I only want to run the simulation in Z and X   and avoid movement in Y axis 

Iwant to prevent this from happening:

image.thumb.png.11dfb35ea801c70e43ca985eae394236.png

image.thumb.png.3f2168589266a045e8a3775a9ef0c32d.png

Is it possible ? thank you all in advance for your help!!

Link to comment
Share on other sites

I'd use a popwrangle and set v@force.y = 0; and just in case aswell v@v.y = 0;

if it doesn't work, you might want to dive into the solver and do that stuff at the right position

Edited by 3dome
Link to comment
Share on other sites

If you use a sop solver to explicitly set the y point values of the cloth geo and an additional sop solver to do the same to the constraint geo, you can very effectively constrain your sim to just two axis. See attached for example.

BTW, it may seem that you only need to manipulate the "Geometry" data, and in the simple attached demo that seems to work fine, however I have found that with complex vellum sims you really need to run over the "ConstraintGeometry" data as well.

 

vallum_x_constraint.hip

  • Like 2
Link to comment
Share on other sites

Thanks for the setup, Karl, that works. After taking a look at your VOP network I managed to reduce it to a single line of VEX code.

v@P = set(@rest.x,@P.y, @P.z);

So you could swap the constraint to any axis, by shuffling the values.

Link to comment
Share on other sites

  • 2 years later...
On 5/6/2019 at 7:41 PM, KarlRichter said:

If you use a sop solver to explicitly set the y point values of the cloth geo and an additional sop solver to do the same to the constraint geo, you can very effectively constrain your sim to just two axis. See attached for example.

BTW, it may seem that you only need to manipulate the "Geometry" data, and in the simple attached demo that seems to work fine, however I have found that with complex vellum sims you really need to run over the "ConstraintGeometry" data as well.

 

vallum_x_constraint.hip

Hi Karl, I hope you don't mind me asking about this ancient thread, I downloaded your example file, but I can't see where exactly you set the Y point values? I see the two SOP solvers in the DOP network, but where in the sop Solvers are you setting the values? Incidentally, I am brand new to Houdini...so.. thank you in advance for your patient..ha!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...