code wiki / _hdl_build / nx_skeleton_gate.nx
nx_skeleton_gate.nx
buildroot/runtime/_hdl_build/nx_skeleton_gate.nx
about
nx_skeleton_gate.nx -- gate for SKELETON + LBS SKINNING (the character-foundation rung; VAMX R3).
T1 hierarchy compose: a 2-bone arm posed at known angles -> child world position matches the HAND-COMPUTED
value (integer-trig tolerance)
T2 skin follows the pose: a vertex rigidly bound to the forearm lands exactly at its rotated position
T3 blend: a joint vertex weighted 128/128 lands midway between the two bones' rigid transforms
T4 determinism: pose->skin twice, outputs byte-identical
T5 PNG knowledge/nx_skeleton_arm.png: a skinned 2-bone tube STRAIGHT vs BENT 90deg -- smooth joint visible
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_png.nxnx_skeleton.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 13 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 14 | func pn(v: i64) -> i64 |
| 26 | func gabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } called by 1: main |
| 29 | func mk_arm(base: i64) -> i64 |
| 37 | func mk_tube(base: i64) -> i64 |
| 59 | func main() -> i64 |