nx_manga_charsheet.nx
buildroot/runtime/nx_manga_charsheet.nx
about
nx_manga_charsheet.nx -- R4 of the mangagen lane (comparewatch- contract mangagen_mcs_sheet_emit):
a CHARACTER SHEET. Composes four incumbents by forking them, and writes no renderer, no compositor and
no judge of its own:
nx_anat_sov one view per row <mesh> <mode> <eye C|L|R> <W> <H> <out.png>
nx_contactsheet the grid <dir> <out.png> <tile> <cols>
nx_charjudge per-cell identity <cell.png> <label>
nx_headcrop (caller's choice) bands a mesh to the head before the sweep
THE DONE-RULE, pre-declared on /compare/mangagen before this organ existed:
"Legality-checked pose sweep, renders, sheet grid; identity judged per cell."
HONEST REPORTING: face_axis is PRINTED for every cell, never suppressed and never floored away.
⚠RENDER SIZE IS A JUDGE PARAMETER, MEASURED 2026-08-14, AND IT CORRECTED ME. I first saw face_axis 0
at 320x480, at skin 512x768 and on a head-cropped mesh, and concluded the model had no face. All three
shared a confound -- every one was at least 320 wide. At 256x384 the SAME mesh judges face_axis 1000
and CHARJUDGE 294. The face was there; the judge stops reporting it above roughly 320 px wide.
So MCS_RENDER_W/H sit inside the range where the judge actually measures, and that is a deliberate,
written-down choice rather than a lucky default. Filed as a judge-scale debt.
usage: nx_manga_charsheet <mesh.nxmesh> <sheet.conf> <outdir> <out.png> [tile] [cols]
sheet.conf rows: view|<mode>|<eye C|L|R>|<label>
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_str.nxnx_syscalls.nxnx_tool_run.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
| 23 | const MCS_MAGIC_1024: i64 = 1024 |
| 24 | const MCS_CAP: i64 = 65536 |
| 25 | const MCS_MAXVIEW: i64 = 32 |
| 26 | const MCS_RENDER_W: i64 = 256 |
| 27 | const MCS_RENDER_H: i64 = 384 |
| 28 | const MCS_TILE_DEFAULT: i64 = 192 |
| 29 | const MCS_COLS_DEFAULT: i64 = 4 |
| 30 | const MCS_ANAT: *u8 = "/volume1/homes/elderwesto/nishihost/nx_anat_sov.elf" |
| 31 | const MCS_SHEET: *u8 = "/volume1/homes/elderwesto/nishihost/nx_contactsheet.elf" |
| 32 | const MCS_JUDGE: *u8 = "/volume1/homes/elderwesto/nishihost/nx_charjudge.elf" |
functions
| 33 | func mcs_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 } |
| 34 | func mcs_pi(v: i64) -> i64 |
| 47 | func mcs_atoi(s: *u8) -> i64 called by 1: main |
| 57 | func mcs_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[off+i] = s[i]; i = i + 1 } return off + i } called by 1: mcs_sheet_emit |
| 58 | func mcs_num(dst: *u8, off: i64, v: i64) -> i64 |
| 73 | func mcs_mode_ok(m: *u8) -> i64 |
| 84 | func mcs_exists(p: *u8) -> i64 |
| 90 | func mcs_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 101 | func mcs_json_int(buf: *u8, n: i64, key: *u8, miss: i64) -> i64 |
| 137 | func mcs_sheet_emit(mesh: *u8, nviews: i64, modes: *i64, eyes: *i64, labels: *i64, dir: *u8, outp: *u8, tile: i64, cols: i64) -> i64 |
| 246 | func main(argc: i64, argv: *i64) -> i64 |