Solarize Posted February 17, 2019 Share Posted February 17, 2019 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 Quote Link to comment Share on other sites More sharing options...
anim Posted February 17, 2019 Share Posted February 17, 2019 you can use group SOP to find the border points then Falloff SOP to get the distance and then remap as you need ts_dist_from_border.hip 1 Quote Link to comment Share on other sites More sharing options...
Solarize Posted February 17, 2019 Author Share Posted February 17, 2019 Awesome! Seems to be exactly what I'm looking for. Thank you. Another newbie question. How can I access that inside a pointvop VEX for example? Quote Link to comment Share on other sites More sharing options...
anim Posted February 17, 2019 Share Posted February 17, 2019 like any other attribute, use Bind VOP, specify name, in this case falloff, and keep type as float, then connect to whatever you want to drive with it Quote Link to comment Share on other sites More sharing options...
Solarize Posted February 18, 2019 Author Share Posted February 18, 2019 Perfect! That helped a lot. As I had it connected to the second input I had to use importpoint instead of bind. Initially I thought I had to access it through a code. Quote Link to comment Share on other sites More sharing options...
acey195 Posted February 18, 2019 Share Posted February 18, 2019 (edited) 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 February 18, 2019 by acey195 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.