nx_creaturegen.nx
buildroot/runtime/nx_creaturegen.nx
about
nx_creaturegen.nx -- ★SOVEREIGN INFINIGEN: procedural ANIMALS. Reuses the SAME layered-anatomy method as the
human head (nx_anatstack: skeleton -> muscle -> skin envelope), generalized to a seed-parametric QUADRUPED body
plan -- skull+snout, neck, spine, ribcage, pelvis, tail, four (upper+lower+foot) legs, + shoulder/haunch/belly
muscles. The skin EMERGES as the smooth-union envelope + dermal offset (not eyeballed). Seeded proportions
(body/leg/neck length, head/tail size, build) -> different creatures (dog-ish, deer-ish, ...). Renders via the
shared anatstack ray-marcher. No ML, no assets. license_tier: ORIGINAL
dependencies 1 imports · 6 importers
imports: nx_anatstack.nx
imported by: nx_articulate_gate.nxnx_creaturegen_gate.nxnx_diversity_gate.nxnx_diversity_veg_gate.nxnx_gt_annotations_gate.nxnx_livingworld_gate.nx
structs
| none |
consts
| 8 | const K_MAGIC_6364136223846793005: i64 = 6364136223846793005 |
| 9 | const K_MAGIC_1442695040888963407: i64 = 1442695040888963407 |
| 10 | const K_MAGIC_2147483647: i64 = 2147483647 |
| 11 | const K_MAGIC_4096: i64 = 4096 |
| 12 | const K_MAGIC_65536: i64 = 65536 |
| 13 | const K_MAGIC_2654435761: i64 = 2654435761 |
| 14 | const K_MAGIC_40503: i64 = 40503 |
| 15 | const K_MAGIC_90001: i64 = 90001 |
| 16 | const K_MAGIC_1013904223: i64 = 1013904223 |
functions
| 18 | func cg_next(st: *i64) -> i64 { var h: i64=st[0]; h=h*K_MAGIC_6364136223846793005+K_MAGIC_1442695040888963407; st[0]=h; return (h>>33)&K_MAGIC_2147483647 } |
| 19 | func cg_range(st: *i64, lo: i64, hi: i64) -> i64 { return lo + cg_next(st) % (hi-lo+1) } |
| 25 | func cg_fk_leg(hipx: i64, hipy: i64, hipz: i64, thigh: i64, shin: i64, L1: i64, L2: i64, out: *i64) -> i64 |
| 38 | func cg_leg_posed(P: *i64, i: i64, hipx: i64, hipy: i64, hipz: i64, thigh: i64, shin: i64, L1: i64, L2: i64, r: i64) -> i64 |
| 52 | func cg_leg(P: *i64, i: i64, lx: i64, lz: i64, topY: i64, footY: i64, r: i64) -> i64 |
| 64 | func creaturegen_build_plan(P: *i64, seed: i64, plan: i64) -> i64 |
| 71 | func cg_build_bird(P: *i64, seed: i64) -> i64 called by 1: creaturegen_build_plan calls 7: cg_nextcg_rangeas_ellipas_fuzz_lastas_capsas_feature_last+1 |
| 122 | func cg_build_fish(P: *i64, seed: i64) -> i64 |
| 156 | func creaturegen_build_posed(P: *i64, seed: i64, pose: *i64) -> i64 |
| 189 | func creaturegen_build(P: *i64, seed: i64) -> i64 called by 3: creaturegen_build_planmainmain calls 8: cg_nextcg_rangeas_ellipas_fuzz_lastas_capscg_leg+2 |