Jump to content

Mesh Border Mask


Solarize

Recommended Posts

Hello, 

I'm quite new to Houdini and I have a pretty simple question which I haven't been able to figure out. Suppose an open convex plane, how can I make a mask from border to center going from black to white? Attached example images. 

In my case, a height mask could do the trick too due to its convex shape, but ideally I prefer the border. 

Thank you

 

border_mask.jpg

Link to comment
Share on other sites

assuming the shape is flat (it has to have boundaries) you can also do the following:

Use a divide sop to remove shared edges (toggle at the bottom), though it looks like on the left image this may already be the case.
Put an "primitive" or "ends" SOP and set the mode to "unroll" (easier to find in the ends sop), you should now have the boundary line.

then you can do the rest in an attribute VOP or wrangle, for example: (input the main geo in the first input, and the boundary in the second)

f@falloff = xyzdist(1, v@P);
v@Cd = f@falloff;
 

 

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