Jump to content

Displace along normal until a volume is filled?


Recommended Posts

Still learning here but hang with me. I have a torus which I have thrown into a solver then into a point vop. Im using Cd to control the amount of displacement over time. It creates a cool growing effect but I don’t want this to grow infinitely larger; I want to control the growth by having it fill the volume of another torus. I tried setting the secondary torus to Cd = 0 and then transfering that attribute to the displacement channel but my attempts are failing. Does anybody have any idea how to use the secondary torus as a boundary? or even better have it eventually fill the torus? .hip file is attached

vornoi_growth.hiplc

Screen Shot 2016-10-25 at 8.32.25 PM.png

Link to comment
Share on other sites

you can test it against an sdf of the boundary each frame

if you've never used  an sdf before, it's a volume representation of a shape with negative values on the inside and positive outside within the narrow band.

there's built-in vex functions to sample volumes and in the file I use the border of the sdf  to control the displacement

vornoi_growth.hiplc

 

vornoi_growth.gif

Edited by dchow1992
  • Like 7
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...