Jump to content

Baking Normal Distance to Zero Thickness


Tooloohoohoo

Recommended Posts

Hi!  Can anyone point me in the right direction for how to determine on air-tight geometry the distance it would take to push each point inward along the normal (like the Peak nodes does, if you give it negative numbers) until it hits the other side, getting pushed in at the same rate?

Right now if you use the Peak node with negative numbers of increasing magnitude on a mesh that has parts of variable thickness, the thinner parts will eventually start turning inside-out. What I want is for them to stop right before that happens and stay at a thickness of zero, so they squeeze down to invisibility, while the thicker parts of the mesh continue to push inward.

Specifically what I need is a value that is that distance, which I can transfer over to vertex colors, because this is for a game asset where the actual squeeze along the normal direction will take place in the game engine, not in Houdini, and I need a value to clamp the push distance for, on a per-vertex basis.

Thanks!

Link to comment
Share on other sites

I think its not so easy to do, since you'd have to find the mean surface first. Then project your mesh onto that which might not yield any hits along the normal. I tried hacking something together, maybe it helps you out a bit. Its far from perfect but might be a starting point.

I'd really love to see how a pro would approach this.

displace.hipnc

Edited by nuki
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...