Studio Yotsuba
Back to Node List

Surface Maps

surface_maps

Extracts albedo, normal, height, AO, and emission maps from a Surface as images, for exporting to game engines with realtime lighting (Unity, BAKIN, ...).

Reviewed
Guide available

Input Ports

NameTypeDescription
Surface
surface
Surface
Required
Surface to extract maps from.

Output Ports

NameTypeDescription
Albedo
albedo
Image
Unlit base color of the surface.
Normal
normal
Image
Tangent-space normal map (0.5-centered RGB). Derived from the final height map unless the surface carries an explicit one.
Height
height
Image
Final height map as grayscale (parallax etc.).
AO
ao
Image
Ambient occlusion map. White means no occlusion.
Emission
emission
Image
Emission map. Transparent where nothing glows.

Parameters

NameTypeDefaultRangeDescription / Options
Normal Strength
normal_strength
Float
20.1–8 / step 0.1

Gradient scale when deriving normals from the height map. Higher values make the lighting response steeper. Guide: 1-3 for soft shapes, 4+ for crisp bevels. Ignored when the surface carries an explicit normal map.

Flip Green (DirectX)
flip_green
Bool
false—

Flips the normal map's green channel. OpenGL-style engines (Unity default) and DirectX-style engines (BAKIN etc.) use opposite Y conventions - if lighting looks inverted (bumps read as dents), toggle this.

Overview

Splits a Surface containing height, AO, and emission into texture maps for real-time lighting in engines such as Unity or RPG Developer BAKIN. Height authored through sculpting, cylinder profiles, and slopes is converted into a normal map, enabling pixel-art assets whose shading responds to engine lights.

Usage tips

  • A common chain is layers_to_surface or surface_sculpt → surface_maps → batch_export. Export albedo, normal, and emission as separate PNG files and assign them to the engine material.
  • Normals are regenerated from the final height map, including sculpt, profile, and slope results. Normal Strength 1–3 gives softer relief; 4 or more gives a sharper bevel.
  • Keep Flip Green off for Unity's OpenGL-style convention. Enable it for DirectX-style tools such as BAKIN. If a bump looks recessed in-engine, this convention is probably reversed.
  • Normal-map alpha copies albedo alpha, allowing the engine to mask transparent sprite areas.
  • For animation, apply the same route to every animation_render frame so the normal sheet contains the matching frame count.

Common mistakes

  • Engine shading differs from the PixPipeline preview: the stepped tone grades in surface_light_preview are not part of ordinary engine lighting. Add a posterization or quantization shader in the engine when stepped pixel shading is required.
  • Relief appears inverted: toggle Flip Green to match the engine convention.
  • Emission is empty: the Surface must contain emission information, for example from an Emission layer in layers_to_surface; otherwise the map is transparent.

Related nodes

  • layers_to_surface — assemble the usual Surface input from layers
  • surface_sculpt — edit height and AO before normal generation
  • surface_light_preview — preview a completed, baked appearance inside PixPipeline
  • batch_export — write all maps as PNG files
Back to Node List