Table of Contents
- Bake Substance Textures
- Bake Vertex Color Textures
- Paint ID Map
- Normal Texture Stamps
- Export to UE4
- Combine to Atlas
TODO:
- Bake normals, vertex colors and ambient occlusion in Blender
- Texture and paint in Quixel Mixer
Bake Substance Textures
To use Substance Painter's full potential of its generators and filters you first need to bake image textures:
- Create a new project: main menu bar -> File -> New...
- Template: Unreal Engine 4 ( allegorithmic )
- File -> Select... -> Stature_low.fbx
- Document Resolution: 2048
- main menu bar -> Edit -> Bake Mesh Maps
- Selection: Only objects with high-resolution, sculpted counterparts.
- Common
- Output Size -> 4096
- Dilation Width -> 16
- High poly parameters ->
- High Definition Meshes -> Stature_high.fbx
- Antialiasing -> Subersampling 8x8
- Match -> By Mesh Name
- Bakers:
- Enable
- Normal
- World space normal
- Position
- Disable
- ID
- Ambient Occlusion
- Curvature
- Thickness
- Enable
- Bake selected textures
- main menu bar -> Edit -> Bake Mesh Maps ( upper settings but )
- Selection: Only remaining objects without high-resolution counterparts.
- High poly parameters ->
- Use Low Poly Mesh as High Poly Mesh -> Enabled
- Bake selected textures
- main menu bar -> Edit -> Bake Mesh Maps ( upper settings but )
- Selection: All Objects
- Bakers:
- Enable
- Ambient Occlusion
- Curvature
- Thickness -> optional: This value can be customized for each object if you want to use for example surface scattering.
- Disable
- ID
- Normal
- World space normal
- Position
- Enable
- Bake selected textures
Bake Vertex Color Textures
To bake the image textures you need to use vertex colors painted in for example Medium:
- main menu bar -> Edit -> Bake Mesh Maps ( upper settings but )
- Selection: Only Objects with high-resolution vertex color counterparts.
- Common
- High poly parameters ->
- Use Low Poly Mesh as High Poly Mesh -> Disabled
- High Definition Meshes -> Stature_highWithVertexColors.fbx
- High poly parameters ->
- Bakers:
- Enable
- ID
- Disable
- all others
- Enable
- ID baker parameters
- Texture set -> select the object(s) to bake the vertex colors
- Color Source -> Vertex Color
- Optional: Apply to all
- Bake selected textures
- Use these image textures as Fill Layer -> Base Color -> Image
- Only turn on the color channel of this layer's material.
Paint ID Map
You can use an ID map image to easily swap the materials of an object's surface. This ID image can be used to create color selection masks on the fly.
- Paint the ID map image on a paint layer with a sharp-edged brush ( without semi-transparent pixels ) with only the Material -> Color channel enabled.
- Use the base colors blue, red, and green ( + their averages ) to paint the different areas with for example
- red for the eyes
- blue for the skin
- green for the teeth
- When you covered all areas of the model with ID colors main menu bar -> File -> Export Textures...
- Enable only the object with the ID color layer.
- Enable only Output maps -> XYZ_BaseColor
- Export
- Open output directory ( in the upper right corner )
- Close the Export window!
- Drag & drop the exported ID map image file to the SHELF -> Project section
- change the type undefined to texture
- Import your resource to: project 'projectName'
- Use it by selecting your model and then dragging & dropping the map image from the project shelf to TEXTURE SET SETTINGS -> MESH MAPS -> ID
- Now disable the ID map image color layer in LAYERS to hide the painted ID map image.
- Add a Fill Layer -> right-click context menu -> add mask with color selection
- COLOR SELECTION -> Pick color and choose the ID map image color you want to use.
Normal Texture Stamps
You can also add normal texture details that affect the generators and smart materials.
- Prepare the normal layer
- Add a paint layer for the normal details and call it the Normal_Details.
- Make sure it is the last layer in the layer stack (, right before the painted and disabled ID map image layer, if you have one ).
- Only enable nrm ( for Normal ) in the Material channels.
- Add anchor point to the Normal_Details layer.
- Drag & drop a normal stamp into the Normal ( uniform color ) slot.
- Connect the normal details to the ( not yet ) affected generators
- Select the generator.
- Set Parameters -> Micro Details -> Micro Normal -> True
- Set Image inputs -> Micro Normal ( uniform color ) -> ANCHOR POINTS tab -> select the anchor Normal_Details
- And set the Referenced channel -> Normal
- Now you can stamp / paint on the Normal_Details and the generators are affected.
Export to UE4
To export the image textures ( without emission ) and to display them in Unreal Engine 4 you need to prepare to combine the image textures to an atlas.
- Repeat the following steps with all the objects in the TEXTURE SET LIST:
- Add an opacity channel in the tab TEXTURE SET SETTINGS -> CHANNELS
- Add an empty FILL layer called Opacity in the tab LAYERS.
- Enable only op ( opacity ) of the Opacity layer’s Material.
- Copy TODO the files in this .ZIP-file to your Substance Painter Shelf -> export-presets folder. Normally located in your User -> Documents folder on your hard disk.
- Main menu bar -> File -> Export Textures…
- Tab OUTPUT TEMPLATE -> Check that the template Unreal Engine 4 (Custom) is available.
- Tab SETTINGS -> Global settings
- Choose an output directory.
- Choose the Unreal Engine 4 (Custom) as Output template
- File type -> png -> 8 bits + dithering
- Size -> 4096
- Padding -> Dilation + transparent -> 16
- Export
- Open output directory
- Save settings
Combine to Atlas
With Gimp you can combine the image textures exported from Substance Painter to an atlas.
Repeat the following for all three texture types:
- File -> Open... the first XYZ_BaseColor.png image texture.
- Open as Layers... the rest of the XYZ_BaseColor.png image textures with multi-select.
- Change the active background color in the upper left corner to
- BaseColor: some neutral / average color that fits the rest of the image texture.
- Normal: R: 50; G: 50; B: 100
- OcclusionRoughnessMetallic: gray
- In the Layers dock -> right-click context menu ->
- Merge Visible Layers... -> Merge
- Remove Alpha Channel
- File -> Export as... -> ObjectGroupName_BaseColor.png