code wiki / _hdl_build / nx_being_showcase.nx
nx_being_showcase.nx
buildroot/runtime/_hdl_build/nx_being_showcase.nx
about
nx_being_showcase.nx -- ★VISUAL-PARITY RUNG for /compare/koikatsu (operator 2026-08-04, frank feedback:
"we have no colors, we have a clay blob, no sense of human form"). The clay was the COARSE single-mesh export
rendered with every quality feature OFF. This organ renders the being the estate can already build: DENSE atlas
skin (GC=9, 2x the scene gate), per-part vertex colors (ba_part_color), Gouraud + Blinn-Phong specular +
baked sun shadows + multi-octave albedo, SSAA still, plus a TOON still (posterize + z-edge lines = the
cel-shade R rung, first bit native) and the lit turntable APNG. Writes STRAIGHT into the page dir (run from
~/nishihost). Composes nx_bodyatlas + nx_isosurf + nx_trimesh + nx_png + nx_apng_write -- zero foreign code.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_png.nxnx_trimesh.nxnx_isosurf.nxnx_bodyatlas.nxnx_apng_write.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
| 15 | const NB_MAGIC_1024: i64 = 1024 |
| 16 | const NB_MAGIC_2400: i64 = 2400 |
| 17 | const NB_MAGIC_1500: i64 = 1500 |
| 18 | const NB_MAGIC_2600: i64 = 2600 |
| 20 | const NB_W: i64 = 360 |
| 21 | const NB_H: i64 = 552 |
| 22 | const TT_W: i64 = 240 |
| 23 | const TT_H: i64 = 368 |
| 24 | const TT_FRAMES: i64 = 18 |
| 25 | const NB_BG: i64 = 24 + 26*256 + 34*65536 |
| 26 | const NB_MAGIC_65536: i64 = 65536 |
| 27 | const NB_ZFAR: i64 = 1999999999 |
| 28 | const NB_EDGE: i64 = 45 |
| 29 | const NB_LINE: i64 = 20 + 22*256 + 28*65536 |
| 30 | const NB_SKIN: i64 = 234 + 192*256 + 170*65536 |
| 31 | const NB_YAW: i64 = 450 |
| 32 | const NB_PITCH: i64 = 0-150 |
| 33 | const NB_CAMZ: i64 = 2600 |
| 34 | const NB_FOCAL: i64 = 780 |
| 35 | const NB_CIRCLE: i64 = 6283 |
| 37 | const GX: i64 = 64 |
| 38 | const GY: i64 = 220 |
| 39 | const GZ: i64 = 40 |
| 40 | const GC: i64 = 9 |
| 41 | const OX: i64 = 0-288 |
| 42 | const OY: i64 = 0-990 |
| 43 | const OZ: i64 = 0-180 |
functions
| 46 | func bs_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 47 | func bs_num(v: i64) -> i64 |
| 59 | func fill_grid(mask: i64) -> i64 |
| 68 | func bs_skin_paint() -> i64 |
| 82 | func bs_toon(fb: *i64, zb: *i64, W: i64, H: i64) -> i64 called by 1: main |
| 131 | func main() -> i64 |