code wiki / (root) / nx_assetvariant.nx

nx_assetvariant.nx

buildroot/runtime/nx_assetvariant.nx

6663 B135 linesdepth 3pulls 4 transitivereach 15 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_assetvariant.nx -- SWAP-AS-DATA v0 (swap+motion census SCOPE A, the DnD/game ask): reuse ONE synthetic base asset (person / wolf / goblin) and produce MANY variants by SWAPPING slots -- head (plain/horns/snout), ears (none/pointy), tail (none/tail), build (slim/normal/bulk radius scale). A VARIANT IS DATA: the tuple {species, head, ears, tail, build} fully determines the SDF part list, so a bestiary row = a tuple, and diversity = enumerating tuples -- no hand-crafted one-offs. Fills the nx_sdfrender base (parts/npart/kblend) exactly like sdf_body/t2mesh, so every variant renders on the SAME photoreal-path shader and can feed nx_meshgen -> STL for game assets. Neural face/clothes swap on IMAGES = the S5 rung; this is the parametric spine (like t2mesh before Shap-E). license_tier: ORIGINAL

dependencies 2 imports · 12 importers

nx_syscalls.nx nx_sdfrender.nx nx_assetvariant.nx nx_assetvariant_gate.nx nx_body_figure_gate.nx nx_char_asset.nx nx_char_custom_gate.nx nx_char_groom_gate.nx nx_char_layers_gate.nx nx_gltf_export_gate.nx nx_obj_export_gate.nx nx_outfit_gate.nx nx_recombine_novelty_gate.nx

diagram shows first 10 each side; +0 more imports, +2 more importers in the complete lists below.

imports: nx_syscalls.nxnx_sdfrender.nx

imported by: nx_assetvariant_gate.nxnx_body_figure_gate.nxnx_char_asset.nxnx_char_custom_gate.nxnx_char_groom_gate.nxnx_char_layers_gate.nxnx_gltf_export_gate.nxnx_obj_export_gate.nxnx_outfit_gate.nxnx_recombine_novelty_gate.nxnx_synth_serve.nxnx_variant_mesh_gate.nx

structs

none

consts

11const AV_MAGIC_1250: i64 = 1250
12const AV_MAGIC_1060: i64 = 1060
13const AV_MAGIC_1190: i64 = 1190
16const AV_HUMAN: i64 = 0
17const AV_WOLF: i64 = 1
18const AV_GOBLIN: i64 = 2

functions

20func av_p(base: i64, ip: *i64, cx: i64, cy: i64, cz: i64, rx: i64, ry: i64, rz: i64) -> i64
30func av_base_human(base: i64, ip: *i64) -> i64
called by 1: av_build calls 1: av_p
45func av_base_wolf(base: i64, ip: *i64) -> i64
called by 1: av_build calls 1: av_p
57func av_base_goblin(base: i64, ip: *i64) -> i64
called by 1: av_build calls 1: av_p
71func av_slot_head(base: i64, ip: *i64, sp: i64, hv: i64, heady: i64) -> i64
called by 1: av_build calls 1: av_p
84func av_slot_ears(base: i64, ip: *i64, sp: i64, ev: i64, heady: i64) -> i64
called by 1: av_build calls 1: av_p
94func av_slot_tail(base: i64, ip: *i64, sp: i64, tv: i64) -> i64
called by 1: av_build calls 1: av_p
109func av_build(base: i64, sp: i64, hv: i64, ev: i64, tv: i64, buildpct: i64) -> i64