gameforge_compile_sprite_atlas
Compile PNG sprite frames into aligned, palette-quantized diffuse, normal, and paper-doll overlay atlases plus JSON metadata for game engines. Strips AI alpha halos and locks feet to the Foot Pivot.
Instructions
Decode loose PNG frames natively in Node.js (zero external CLI required!), strip semi-transparent AI alpha halos, optionally quantize colors in perceptual CIE Lab* space to the Project Style Bible .gpl palette, auto-align lowest foot pixels to the locked Foot Pivot, and stitch real <char>_<clip>_atlas.png + <char>_<clip>_normal_atlas.png + Paper-Doll overlay atlases + <char>_<clip>_atlas.json!
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_name | Yes | ||
| frames_dir | No | ||
| project_id | Yes | ||
| character_id | Yes | ||
| auto_align_foot_pivot | No | Eliminate frame-to-frame vertical floating (default true) | |
| bayer_dither_strength | No | Optional 4x4 Bayer pixel dither 0..32 (default 0) | |
| quantize_to_style_palette | No | Snap colors in CIELAB space to Style Bible (default true) |