code wiki / _hdl_build / nx_voxel_spec_gate.nx

nx_voxel_spec_gate.nx

buildroot/runtime/_hdl_build/nx_voxel_spec_gate.nx

2412 B53 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic voxel
docsdependenciesstructsconstsfunctions

about

nx_voxel_spec_gate.nx -- proves the ENGINE EMIT TARGET: a game-SPEC (DATA) -> a generated 3D voxel world, hands-off. Mirrors the dungeon path's "2 distinct specs -> 2 distinct playable games" but for 3D. Two specs (different seed/water/height/camera) -> render_world -> two BMPs. GREEN iff BOTH render a real world AND the two frames DIFFER (distinct data -> distinct world = real generation, not a baked scene). AUTHOR=ORGAN.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_voxel_world.nx nx_voxel_spec_gate.nx

imports: nx_syscalls.nxnx_voxel_world.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 world_fb_bytes make_spec sys_mmap ↻ render_world world_sky sys_mmap ↻ build_cam sys_mmap ↻ m4_roty m4_identity f32_of f32_neg fratio f32_div f32_of ↻ m4_rotx m4_identity ↻ f32_neg ↻ f32_neg ↻ m4_mul f32_of ↻ f32_add f32_mul draw_col terrain_h lat sys_mmap ↻ project sys_mmap ↻ f32_sub f32_neg ↻ f32_of ↻ fratio ↻ m4_vec4 f32_of ↻ f32_add ↻ f32_mul ↻ f32_add ↻

structs

none

consts

none

functions

9func make_spec(seed: i64, n: i64, water: i64, maxh: i64, latsp: i64,
called by 1: main calls 1: sys_mmap
17func frame_hash(fb: *i64) -> i64
called by 1: main calls 1: world_pixels
24func count_world(fb: *i64) -> i64
called by 1: main calls 2: world_skyworld_pixels
33func main() -> i64