Jump to content

Creating a mask


PVok

Recommended Posts

Hello friends.

I wanted to ask you how you would approach solving such a task?

There is a model with uv, divided into hard/soft edge, smoothing groups.

It is necessary to make a mask on the hard edges of the normals. And output the mask via uv.

Uv should not change.

Any ideas on this? Thanks.

r1.png.c346f2f96b7980d7a501a0e5861500d5.png

r2.png.da2ffcad9045ba5162964a26ad00ee43.png

 

Link to comment
Share on other sites

  On 12/9/2022 at 9:43 AM, vicvvsh said:

Hi,

what attributes except uv imported model has? What mask do you want to get - color or just attribute 0-1. And it is not clear for me what "...output the mask via uv" mean.

Expand  

Uv and normals. The attribute would be enough. Ideally, a black and white mask. Output in the sense of rendering as a 2d mask.

  On 12/9/2022 at 9:22 AM, hannes603 said:

i guess you might provide more info to it , otherwise it ll be difficult to help.  First tell us what exactly you want to do. Sometimes people just use wrong aproach in the first place..

Expand  

Create a tool that generates a skew maponly not from the edges of the uv, but on the edges of the smoothing groups. Used for baking normals.

Edited by PVok
Link to comment
Share on other sites

  On 12/12/2022 at 1:03 PM, hannes603 said:

vicvvsh   . why so compicated? just a group node with maximum angle does exactly the same ... but nice script..

Expand  

Thanks. Yeah, complicated a little, but not the same really.  Try to choose universal value of that angle to use it in for loop, for example, or select all hard edges on a geometry in this attached file.

 

mask_hard_edges_easygoing_01.hipnc

Link to comment
Share on other sites

  On 12/13/2022 at 7:15 AM, vicvvsh said:

Thanks. Yeah, complicated a little, but not the same really.  Try to choose universal value of that angle to use it in for loop, for example, or select all hard edges on a geometry in this attached file.

 

mask_hard_edges_easygoing_01.hipncFetching info...

Expand  

Thats true... your setup is runnig over normals, which is even better for more control... :)

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.

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