code wiki / (root) / nx_outfit.nx

nx_outfit.nx

buildroot/runtime/nx_outfit.nx

3198 B59 linesdepth 3pulls 4 transitivereach 10 importersview sourcekind librarytopic outfit
docsdependenciesstructsconstsfunctions

about

nx_outfit.nx -- OUTFIT SWAP (the operator's "outfit stuff"), sovereign PARAMETRIC path. The research put clothing swap in the GAP column = NEURAL virtual try-on (IDM-VTON/OOTDiffusion: warp a garment PHOTO onto a subject) = the trained-diffusion S5 image-swap frontier. THIS is the tractable sovereign version: clothing as GEOMETRY (a swap slot like head/ears/tail), added as ellipsoids over the body with the cloth MATERIALS 5-8 (nx_sdfrender), so a synthetic human/creature WEARS a tunic/robe/cloak/armor, rendered on the SAME photoreal shader + mesh-exportable. Apply AFTER av_build (which clears ops+mats); outfit sets only its own parts. license_tier: ORIGINAL

dependencies 2 imports · 4 importers

nx_syscalls.nx nx_sdfrender.nx nx_outfit.nx nx_char_asset.nx nx_char_layers.nx nx_outfit_gate.nx nx_synth_serve.nx

imports: nx_syscalls.nxnx_sdfrender.nx

imported by: nx_char_asset.nxnx_char_layers.nxnx_outfit_gate.nxnx_synth_serve.nx

structs

none

consts

12const OF_NONE: i64 = 0
13const OF_TUNIC: i64 = 1 // crimson (mat 5)
14const OF_ROBE: i64 = 2 // blue (mat 6), long skirt
15const OF_CLOAK: i64 = 3 // green (mat 7), back panel
16const OF_ARMOR: i64 = 4 // steel (mat 8), breastplate + pauldrons

functions

19func of_part(base: i64, idx: i64, cx: i64, cy: i64, cz: i64, rx: i64, ry: i64, rz: i64, mat: i64) -> i64
28func outfit_apply(base: i64, n0: i64, outfit: i64) -> i64
53func outfit_name(o: i64) -> *u8
called by 1: main