gestoryscht Posted September 16, 2020 Share Posted September 16, 2020 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 So I wonder, is there an easy fix for this using distance fields (like in Substance)? Quote Link to comment Share on other sites More sharing options...
Librarian Posted September 16, 2020 Share Posted September 16, 2020 Quote Link to comment Share on other sites More sharing options...
gestoryscht Posted September 16, 2020 Author Share Posted September 16, 2020 (edited) 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 September 16, 2020 by gestoryscht Quote Link to comment Share on other sites More sharing options...
Librarian Posted September 16, 2020 Share Posted September 16, 2020 (edited) float m = @mask; m = m*10; m = clamp(m,0,1); @mask = m; plus play with expand COp I learned something Ds.hiplc DsExpand cop.hiplc Edited September 16, 2020 by Librarian 1 Quote Link to comment Share on other sites More sharing options...
gestoryscht Posted September 16, 2020 Author Share Posted September 16, 2020 (edited) 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 September 16, 2020 by gestoryscht Quote Link to comment Share on other sites More sharing options...
Librarian Posted September 16, 2020 Share Posted September 16, 2020 (edited) 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 September 16, 2020 by Librarian 1 Quote Link to comment Share on other sites More sharing options...
valdomat Posted April 9, 2021 Share Posted April 9, 2021 Responding for anyone else looking for this. Use heighfield(mask) as input in an COP network. Do stuff. Output. Use as input in an Heightfield File SOP. Profit. mask_df.hip 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.