WoLD Archives Search About Contact

World of Level Design

Tutorials to Becoming the Best Level Designer and Game Environment Artist (since 2008)

Substance Sampler: Convert/Create Masks from Existing Textures (Base Color and Normal Maps)

Category: Substance Sampler
November 21, 2024

Learn how to convert existing textures such as Base Color or Normal Map into Texture Masks.

I have a brick base material I am using from Adobe Marketplace. It doesn't have any layers and no option to extract a Mask from it.

But I need a mask. This mask will help to control color of the bricks or mortar in UE5. The mask will help to separate what gets adjusted and what doesn't.

In this post I will show you multiple options of creating texture masks using Base Color or Normal Maps.

This tutorial contains following 2 methods:

  • Creating Masks from Base Color Texture
  • Creating Masks from a Normal Map (or Convert Normal Map to Height and AO)

Black and White Mask Values

Both in Substance 3D and in UE5, black and white values work the same way.

  • Black = Invisible (hides)
  • White = Visible (reveals)

You can always invert these values at any time using Photoshop, UE5 1-x material node or in Substance.

Video Tutorial 1/2: Creating Masks from Base Color Texture

From Base Color to a Texture Mask

Have a texture you want to get a mask for. It should have a clear separation of color that can be replaced. It shouldn't be uniform.

Here is the one I'm using for this example. You can see there is clear red and gray.

Go to File > New Project.

Drag and drop Base Color texture into Substance Sampler. When menu pops up, choose Texture Import:

Go to Layers > Color Replace:

You will see a small circle in the middle of an image. Drag this small circle over the color you want to replace. It will begin to automatically fill the selected color with its own.

Go to properties and set the following:

  • Replace in: Base Color
  • Target Color: change to White or Black
  • Enable Dual/Color Value
  • Target Color 2: Black change to White or Black
  • Adjust Luminosity
  • Adjust Mask Blur, Smoothness, Expand

Once you like how the final mask looks, save it. Right Click on the image and Save Bitmap as PNG.

Now you have a mask from Base Color.

Video Tutorial 2/2: Creating Masks from a Normal Map

Manual Method Normal Map to Mask in Photoshop

You can do this process manually in Photoshop.

Open the Normal Map in Photoshop and use one of the RGB channels. Adjust it using Levels. Then use that as your Mask.

But using Substance Sampler will give you faster and better results.

Convert Normal Map to Mask in Substance Sampler

Drag and drop an existing Normal Map into layers tab or into empty canvas:

Choose Texture Import and use default settings:

Change viewport to Layer Outputs:

Add Normal to Height Filter into the layer stack. You now have a Height Map:

You could also add Normal/Height Adjustment filter to make additional Height Map adjustments.

Now, add Height to AO filter and make adjustments. You now have Ambient Occlusion:

Add another filter Brightness/Contrast to make final adjustments to your Mask:

Make sure to change Input Channel to AO for Brightness/Contrast layer then increase the Contrast and lower the Brightness:

Add Blur filter to soften the edges of your Mask:

You now have a mask texture to use:

Saving the Texture

Right-Click on the viewport image and choose Save Bitmap:

Set the following:

  • Bitmap Name: name the texture
  • Format: PNG
  • Destination Path: where the texture will be saved

SUBSCRIBE & GET FREE, UPDATED PDF GUIDE

Subscribe to receive FREE & Updated "Maya 3D Primer" PDF Guide (200+ pages).

Subscribe and Get a Free Maya 3D Primer PDF Guide

See more about this Free PDF Guides and what you are subscribing to.


Follow WoLD



SUBSTANCE PAINTER ESSENTIALS


MAYA FOUNDATION COURSE


ABOUT WoLD & ALEXG

About World of Level Design

My name is AlexG. I am self-taught level designer, game environment artist and the creator of World of Level Design.com. I've learned everything I know from personal experimentation and decades of being around various online communities of fellow environment artist and level designers. On World of Level Design you will find tutorials to make you become the best level designer and game environment artist.

Read More »


Home Terms of Use/Trademarks/Disclaimers Privacy Policy Donate About Contact

All content on this website is copyrighted ©2008-2024 World of Level Design LLC. All rights reserved.
Duplication and distribution is illegal and strictly prohibited.

World of Level Design LLC is an independent company. World of Level Design website, its tutorials and products are not endorsed, sponsored or approved by any mentioned companies on this website in any way. All content is based on my own personal experimentation, experience and opinion. World of Level Design™ and 11 Day Level Design™ are trademarks of AlexG.

Template powered by w3.css