code wiki / _hdl_build / nx_genloop_gate.nx

nx_genloop_gate.nx

buildroot/runtime/_hdl_build/nx_genloop_gate.nx

11360 B227 linesdepth 4pulls 11 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_genloop_gate.nx -- R6: CLOSE THE LOOP. One circuit, all our code, no hand-crafting: GENERATE (t2mesh prompt -> field) -> MESH (surface nets) -> RENDER the EMITTED mesh (existing sovereign nx_meshrender/nx_render_core pipeline, per-vertex lit -- composed, not duplicated) -> PHYSICS step driven by the EMITTED rig (nx_autorig masses/bones -> spring-damper jiggle; mass has consequence) -> CRITIC score (nx_critic_axes, the same rulers as the critic). T1 the emitted-person render has content + structure. T2 the loop generalizes (dumbbell renders differently). T3 critic scores it -- and honestly LOW (CLAY expected; a high score here would smell rubber-stamp). T4 physics from the emitted rig: it MOVES, SETTLES, and MASS matters (light hand swings >> heavy chest). T5 sim deterministic. T6 PNG knowledge/nx_genloop.png (eyeball the loop's own output). Lighting = per-vertex Gouraud baked in model space (v0, disclosed). license_tier: ORIGINAL expect_exit: 0

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_sdfrender.nx nx_t2mesh.nx nx_meshgen.nx nx_autorig.nx nx_meshtex.nx nx_critic_axes.nx nx_png.nx nx_genloop_gate.nx

imports: nx_syscalls.nxnx_sdfrender.nxnx_t2mesh.nxnx_meshgen.nxnx_autorig.nxnx_meshtex.nxnx_critic_axes.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 sys_mmap sdf_bytes hw sys_write t2m_prompt t2m_gen t2m_set t2m_conf sdf_clear_ops sdf_body sdf_clear_ops ↻ sdf_set_floor sdf_set_mtx_amp sdf_set_kb t2m_id_of t2m_has mg_build mg_sample_sdf mg_fi sdf_eval sdf_ellip sdf_isqrt sdf_ellip_rot sdf_isqrt ↻ sdf_smax sdf_smin sdf_abs sdf_min sdf_smin ↻ mg_wc mg_step mg_extract mg_step ↻ mg_fi ↻ mg_wc ↻ mg_ci pn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

20func 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
21func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
36func gl_normals(vb: *i64, tb: *i64, nv: i64, nf: i64, nbuf: *i64) -> i64
calls 1: ar_isqrt
82func gl_sim(p: *i64, bones: *i64, masses: *i64, np: i64, nb: i64, root: i64, ox: *i64, vx: *i64, pk: *i64, steps: i64, J: i64) -> i64
called by 1: main
118func main() -> i64