Jump to content

Edge Gradient

Recommended Posts



I have come up against this problem a few times but never really been able to solve it satisfactorily.


I want to be able to create a gradient which goes from the borders of any object towards the centre of that surface similar to a soft selection visualisation. The soft selection visualisation from the Soft Transform SOP (or Soft Peak SOP) can actually be "burnt in" by using the Keep Visualisation in Geometry option so that gets me almost there but not quite. This is because the Soft Radius used in both these SOPs is in world space so it is not proportional to the connected group of primitives it is applied to.


I have attached a file to illustrate the issue. So my question is, how can I go about achieving the same result but proportionally for each primitive group?


Link to comment
Share on other sites

Thanks Dmitry. That's exactly it! 


From what I see, you're calculating the area for each piece and then using that as a multiplier for the edge width. That will most certainly do the job. I'll add this to my useful hips folder!

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.

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...