Jump to content

zones


Recommended Posts

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

 

289.jpg

paint_zones.hip

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by StepbyStepVFX
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...