nx_assetvariant.nx
buildroot/runtime/nx_assetvariant.nx
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
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
| 11 | const AV_MAGIC_1250: i64 = 1250 |
| 12 | const AV_MAGIC_1060: i64 = 1060 |
| 13 | const AV_MAGIC_1190: i64 = 1190 |
| 16 | const AV_HUMAN: i64 = 0 |
| 17 | const AV_WOLF: i64 = 1 |
| 18 | const AV_GOBLIN: i64 = 2 |
functions
| 20 | func av_p(base: i64, ip: *i64, cx: i64, cy: i64, cz: i64, rx: i64, ry: i64, rz: i64) -> i64 |
| 30 | func av_base_human(base: i64, ip: *i64) -> i64 |
| 45 | func av_base_wolf(base: i64, ip: *i64) -> i64 |
| 57 | func av_base_goblin(base: i64, ip: *i64) -> i64 |
| 71 | func av_slot_head(base: i64, ip: *i64, sp: i64, hv: i64, heady: i64) -> i64 |
| 84 | func av_slot_ears(base: i64, ip: *i64, sp: i64, ev: i64, heady: i64) -> i64 |
| 94 | func av_slot_tail(base: i64, ip: *i64, sp: i64, tv: i64) -> i64 |
| 109 | func av_build(base: i64, sp: i64, hv: i64, ev: i64, tv: i64, buildpct: i64) -> i64 called by 12: mainmainchar_buildmaing_buildmain+6 calls 8: sys_mmapav_base_humanav_base_wolfav_base_goblinav_slot_headav_slot_ears+2 |