Jump to content

getting distance between original, and eroded surface


Recommended Posts

Ive got two vdbs, and im using one to cut away from the other with the VDB combine node.

On the VDB that has been booleaned, i'd like to know how far the surface is from the original surface. Im not sure how best to get this info.

I guess one way to think about this is that im eroding away one volume, and id like to know how much it has eroded by comparing it to the original.

Heres my first attempt, converting back to polygons and using a ray SOP in minimum distance mode. Im hoping theres a better way using some volume tool I don't know about. Its just a test, I don't want to use circles for the final effect.

Thanks for any input!

vdb_colour_distance.hip

vdb_colour_distance.jpg

Edited by rich_lord
Link to comment
Share on other sites

Ok, my file above was right in theory, i'd just connected it up stupidly. Also, you can do this effect even easier by just samling the sdf volume. oops. 

Anyway, in case anyone else also cant remember these concepts, heres a file which works. It contains both the ray SOP method, and the better(I think) volume sample method.

 

erode_distance.jpg

ray_erode_distance.hip

  • Like 3
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...