PVok Posted December 6, 2022 Share Posted December 6, 2022 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. Quote Link to comment Share on other sites More sharing options...
hannes603 Posted December 7, 2022 Share Posted December 7, 2022 uvtest.hip maybe like that ? Quote Link to comment Share on other sites More sharing options...
PVok Posted December 9, 2022 Author Share Posted December 9, 2022 On 07.12.2022 at 18:10, hannes603 said: maybe like that ? Thanks, but not really. I would like to extract normals from the imported geometry without assigning them, and the chamfer only works well with simple geometry, with complex geometry it breaks. Quote Link to comment Share on other sites More sharing options...
hannes603 Posted December 9, 2022 Share Posted December 9, 2022 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.. Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted December 9, 2022 Share Posted December 9, 2022 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. Quote Link to comment Share on other sites More sharing options...
PVok Posted December 10, 2022 Author Share Posted December 10, 2022 (edited) On 09.12.2022 at 12:43 PM, 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. 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 09.12.2022 at 12:22 PM, 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.. Create a tool that generates a skew map, only not from the edges of the uv, but on the edges of the smoothing groups. Used for baking normals. Edited December 10, 2022 by PVok Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted December 12, 2022 Share Posted December 12, 2022 The normal vectors of vertices of a point, that located on a hard edge, are not coplanar, so this feature i used to find hard edges on a geometry. For visualization purpose i divided low poly geo. mask_hard_edges.hipnc 1 Quote Link to comment Share on other sites More sharing options...
PVok Posted December 12, 2022 Author Share Posted December 12, 2022 6 hours ago, vicvvsh said: The normal vectors of vertices of a point, that located on a hard edge, are not coplanar, so this feature i used to find hard edges on a geometry. For visualization purpose i divided low poly geo. Yes, that's what I need. Thank you very much! Quote Link to comment Share on other sites More sharing options...
hannes603 Posted December 12, 2022 Share Posted December 12, 2022 @ vicvvsh . why so compicated? just a group node with maximum angle does exactly the same ... but nice script.. Quote Link to comment Share on other sites More sharing options...
hannes603 Posted December 12, 2022 Share Posted December 12, 2022 mask_hard_edges_easygoing.hipnc 1 Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted December 13, 2022 Share Posted December 13, 2022 17 hours ago, hannes603 said: @ vicvvsh . why so compicated? just a group node with maximum angle does exactly the same ... but nice script.. 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 Quote Link to comment Share on other sites More sharing options...
hannes603 Posted December 13, 2022 Share Posted December 13, 2022 2 hours ago, 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.hipnc Thats true... your setup is runnig over normals, which is even better for more control... 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.