Jump to content
Sign in to follow this  
nuki

Smooth Groups

Recommended Posts

I was wondering how one could smooth out group assignments after subdividing a mesh. Since the assignment is binary I thought subsequent erosion/dilation would do the trick, but it doesnt really work that well altogether.group_blur.JPG.ffcac2c792452b249ee0cd7f12079f81.JPG

group_blur.hip

Share this post


Link to post
Share on other sites

hey if you up the Blur Iterations in attribblur to 2 or 3, it gets very interesting...

Share this post


Link to post
Share on other sites

what I would usually do is cast it to an integer attribute and then use an iterative (feedback) loop;
with 2 attribute promote nodes in there:

  • one to convert from primitive to point, using mode (try different modes if you like)
  • the other to convert back from point to primitive using mode

and then just set it to use the amount of iterations about equal to the amount of subdivisions you use.

edit: and finally of course cast it back to your group if you need.

 

Edited by acey195

Share this post


Link to post
Share on other sites

I ended up mixing both of your suggestions...with a solution that seemed really obvious once I figured out I can just cast the group to an attribute. So now, I cast it to float, blur the attribute, then threshold it again. The cool thing is that I now also have control about expanding/shrinking the group, where a threshold of 0.5 will keep the bounds of the original group. And taking this further I could also keep the float attribute to control eg. fur length etc.

group_blur_2.JPG.c097fc38e40024c3571e23f0f2befbdc.JPG

Thanks for your help guys!

group_blur.hip

Edited by nuki

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×