ZBrushCentral

Creating a mask by layer difference

Hi,

I made an object with a layer that contains some details (in positive values) and I wanted to know if there’s a way to create a mask/texture that corresponds exactly to the layer’s details. That way, all the ornaments I added could easily be textured in a different color.

Thanks!

The only thing I can think of off hand would be to make a displacement map and then use that map to create a mask.

Someone else might have other ideas, though.

I’ve already tried something similar. I had created a displacement without the layer, and another disp with the layer on. I got those maps into photoshop and made a difference. It wasn’t as good as expected. I’m hoping someone knows a zbrush feature that would do it just right.

Do you have an image sample of what you’re trying to do? I have an idea that might work (as I’m doing something similar) but it depends on what you’re trying to achieve. If you’ve got a sample image it might help better to come up with something that works.

You could try this:

  1. At the highest subdiv and with the layer off, store a morph target.
  2. With the layer on, press Tool>Morph Target>CreateDiff Mesh.
  3. Append the MorphDiff mesh.
  4. Fill the MorphDiff mesh with black.
  5. Select the main Subtool and fill with white.
  6. Tool>SubTool>Project All.
  7. Tool>Masking>Mask By Color>Mask By Intensity.

Notes:

  • Obviously any existing polypaint will be destroyed so you may need to save to a texture map first.
  • At (6) make sure the layer is turned on so that the mesh is not deformed in the projection.
  • To see the mask turn off Tool>Polypaint>Colorize.

HTH,

1 Like

Thanks marcus_civis! Your idea makes a lot of sens! I’ll try it soon.

Excellent!
Work for me.
Thanks very much :wink: :+1: