code wiki / _hdl_build / nx_wolf_walk_gate.nx

nx_wolf_walk_gate.nx

buildroot/runtime/_hdl_build/nx_wolf_walk_gate.nx

7192 B162 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_wolf_walk_gate.nx -- the ANIMAL moves: the bestiary wolf WALKS on a quadruped FK rig with a real diagonal gait, rendered on the production shader, shipped as sovereign video. Completes the operator's species span (person waves -> beastman looks around -> wolf walks). T1 valid APNG (acTL num_frames == N) T2 MOTION present (frame checksums differ) T3 DIAGONAL GAIT correct: at peak phase, FL and FR feet displace in OPPOSITE x directions (and FL matches HR) T4 wolf on screen (foreground coverage >= 5%) Writes knowledge/synth_wolfwalk.png (APNG) + knowledge/synth_wolfwalk_f0.png (still). license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_quadruped.nx nx_apng.nx nx_png.nx nx_wolf_walk_gate.nx

imports: nx_syscalls.nxnx_quadruped.nxnx_apng.nxnx_png.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main hw sys_write sys_mmap sdf_bytes sk_bytes quad_build sk_init sk_hdr sk_add_bone sk_hdr ↻ sk_bone quad_gait_pose it_sin4096 qdeg sk_pose sk_bone ↻ sk_update sk_hdr ↻ sk_vs sk_lr sk_bone ↻ sk_localrot it_cos4096 it_sin4096 ↻ it_sin4096 ↻ sk_matmul sk_matvec sk_bone ↻ pn sys_mmap ↻ sys_write ↻ apng_open sys_mmap ↻ ap_be32 ap_chunk ap_be32 ↻ ap_crc32 quadpose_fill sys_mmap ↻

structs

none

consts

48const RW: i64 = 144
49const RH: i64 = 96
50const RFOCAL: i64 = 164 // 586 * 144 / 512

functions

15func hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
16func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
27func cksum(fb: *i64, n: i64) -> i64
called by 1: main
33func find4(buf: *u8, n: i64, a: i64, b: i64, c: i64, d: i64) -> i64
called by 1: main
41func plcount(fb: *i64, n: i64) -> i64
called by 1: main
52func ww_render(base: i64, fb: *i64, yaw: i64) -> i64
83func main() -> i64