gerardocastellanos Posted September 29, 2019 Share Posted September 29, 2019 Hello everybody I am trying to create a tool to paint zones in primitives. I am relative new in houdini. I need to paint zone index in mesh, I mean, I want to split my mesh in differents zones (zone 1, zone 2, zone 3, etc), and I would like to do it using a brush and paint directly on the mesh. the problem I have is when I paint it, it interpolate the index values at the edges of my strokes, so it blends the values, and I don't want that. If I paint the value 6, under a zone with values 0, I got primitives with values 5,4,3,2 and 1. any idea how to solve it? Thanks you paint_zones.hip Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted September 29, 2019 Share Posted September 29, 2019 Have you tried to change the promotion method to Maximum or Minimum in your attribute promote node ? I changed it the attached file, hope this helps paint_zones_v2.hip Quote Link to comment Share on other sites More sharing options...
gerardocastellanos Posted September 30, 2019 Author Share Posted September 30, 2019 I did not see your scene. but the problem does not come from the attribute promote, my problem comes from avoid interpolation between values when I do strokes, the paint tools always interpolate values around the brush. I would paint with an specific values and no other ones in the edge. thanks Quote Link to comment Share on other sites More sharing options...
StepbyStepVFX Posted September 30, 2019 Share Posted September 30, 2019 (edited) You paint on points, and then you promote these values to primitive. By doing so you used the "average" method : so for primitives on which there was intermediate values on the points, you still have an intermediate value on the prim. By changing the promotion method to max or min, you retain only one value for your prim, and it gets rid of the intermediate values you had when painting on points. Of course, the accuracy is not perfect, but at least you have clean zone borders without intermediate values. Check the file and see it that's what you need. Other option could be to play with a ramp or a fit function and "saturate" the zones after you paint... Edited September 30, 2019 by StepbyStepVFX Quote Link to comment Share on other sites More sharing options...
gerardocastellanos Posted October 2, 2019 Author Share Posted October 2, 2019 I just open th scene... and thanks you so much it works perfectly! 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.