Jump to content
gestoryscht

Heightfield - Distance Mask

Recommended Posts

Hi guys,

I wonder, is it possible to generate distance fields out of heightfield masks?


I want to create an art directable island and whenever I blur the mask, obviously the the initial shape cannot be maintained.

It get's ...washed out. 


For big islands that's no problem I think, but small islands are tricky, because there is no island left after smoothing :D

So I wonder, is there an easy fix for this using distance fields (like in Substance)? :)

 

unknown.png

 

Share this post


Link to post
Share on other sites

That's the default blur, but as you can see, the blur enters also the inside of the selection. 

Think more of texture dilation. The original shape is untouched and the dilation gets added. 

Edited by gestoryscht

Share this post


Link to post
Share on other sites

float m = @mask;
m = m*10;
m = clamp(m,0,1);
@mask = m;

plus play with expand COp  I learned something :P

Ds.hiplc

DsExpand cop.hiplc

 

sdaaa6.jpg

Edited by Librarian
  • Like 1

Share this post


Link to post
Share on other sites

In your screenshot, it looks exactly like I need it, but when downloading your hip, the results are different.
First of all, I get an error. The wrangle nodes contains a:

#include <volume.vfl>

When I remove this line, the error disappears and it kind of works ... but it just get sharper.
Is this a kind of compatibility error? Do I miss something in Houdini?

Anyway - thanks for your help so far :)

Edited by gestoryscht

Share this post


Link to post
Share on other sites

I have that by Default ..strange 
Play with the file Have FUn  I can t find that results now ..its there just play

 

DsExpand copsrle.hiplc

Edited by Librarian
  • Thanks 1

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

×