Repository navigation
CLI Reference
Matthew Scott edited this page Nov 21, 2026
·
1 revision
usage: normalbake <high.obj|.glb|.fbx> <low.obj|.glb|.fbx> -o <out.png> [options]
The low-poly must already have UVs (produced by a separate UV-unwrap tool).
options:
-o, --output <path> output image (required)
--res <n> texture resolution (default 2048)
--samples <n> supersample grid N (NxN rays/texel, default 4)
--convention <gl|dx|unreal> green-channel convention (default OpenGl; unreal=dx, green-down)
--bitdepth <8|16> bits per channel for PNG (default 16)
--map <type> normal|height|position|ao|thickness|curvature|id|mask|coverage (default Normal)
--space <tangent|object> normal space (default Tangent)
--strength <f> tangent normal depth scale (1=as-baked, 2=2x depth; aka --depth)
--occ-samples <n> hemisphere rays for ao/thickness (default 32)
--blur <px> coverage-aware smoothing radius for ao/curvature (default 0)
--normalize height map: stretch lowest->black, highest->white (full contrast)
--threads <n> worker threads (-1 = all cores, default -1)
--tile-u/--tile-v <n> UDIM tile to bake (shift UVs into 0-1; default 0)
--part <i> bake only FBX low-poly part i against the full high (default all)
--low-filter <substr> merge only low-poly FBX parts whose name contains substr (e.g. LOD0)
--high-filter <substr> merge only high-poly FBX parts whose name contains substr
--list-parts print the FBX's part indices and mesh names, then exit
--frontal <d> outer cage distance (0 = auto from bounds)
--rear <d> inner cage distance (0 = auto from bounds)
--no-fallback don't fill cage misses from the nearest surface point
--lenient bake despite UV-contract errors (e.g. mirrored/stacked UVs)
--bc7 use BC7 instead of BC5 for .dds output
output format is chosen by extension: .png (default), .dds (BC5/BC7), .exr (float).
normalbake high.obj low.obj -o normal.png --res 2048 # 16-bit tangent-space normal map
normalbake high.obj low.obj -o ao.dds --map ao --occ-samples 64 # AO to BC5 DDS
normalbake high.fbx low.fbx -o normal.png --convention unreal # green-down, for Unreal Engine
normalbake high.fbx low.fbx -o height.exr --map height --normalize # full-contrast height map
normalbake high.fbx low.fbx --list-parts # inspect FBX part namesMIT licensed · Repository · Issues · Security
NormalBake
Pipeline