Built by Best ROI Media · First-Party IntegrationMITWave 4 · LiveBestRoiMedia/bestroi-game-tools
Laigter CLI
Headless batch normal, specular, occlusion, and parallax map generator wrapping Laigter 1.15.1.
Wraps Laigter's headless CLI to batch-generate normal, specular, occlusion, and parallax maps for 2D sprites and tileables, preserving sprite alpha and validating normal-Z orientation and map contrast.
View on GitHub ↗
Quick clone
git clone https://github.com/BestRoiMedia/bestroi-game-tools.gitWhy we built it
Laigter's directory mode re-ingests its own output maps and its suffix flags have bugs in 1.15. This wrapper manages explicit file lists, temporary preset overrides, alpha copying, and automated map QA.
Architecture & how it works
Builds a temporary [Laigter Preset] INI file from --preset and --set key overrides, invokes Laigter with --no-gui on explicit sprite paths, copies source alpha onto each generated map, and checks output dimensions and normal-map flatness.
Key capabilities
- Batch generation of _n (normal), _s (specular), _o (occlusion), and _p (parallax) sprite maps
- Preset file loading plus inline --set parameter overrides (depth, bevel_depth, tileable)
- Automatic source-alpha preservation onto generated maps (--no-alpha to skip)
- Automated QA checks for missing outputs, size mismatches, invalid normal Z, and flat maps
Usage example
Generate normal and occlusion maps for a sprite folderPython
python3 laigter/laigter.py doctor
python3 laigter/laigter.py maps ./sprites --out ./sprites_maps --normal --occlusion --set depth=400 --set bevel_depth=60Run laigter.py keys to list all supported --set preset keys.