code wiki / (root) / nx_persongen.nx

nx_persongen.nx

buildroot/runtime/nx_persongen.nx

3792 B68 linesdepth 4pulls 5 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_persongen.nx -- ★GENERATIVE PERSON FACTORY (operator north star 2026-07-08: "generate a model from the bones up ... a daz-like photoreal model WITHOUT a photo reference as a NEW generative person"). A SEED grows a UNIQUE novel human FACE, built bones-up (nx_faceanat = skull landmarks + tissue-depth), by driving the anatomical morphs + skin tone from a deterministic PRNG. NO photo input -- a person who never existed. Same seed -> same person (a reproducible identity); different seed -> a different person. This is the DAZ-equivalent GENERATION (parametric identity), sovereign. (Photoreal skin micro-detail = the texture-synthesis rung on top; this rung owns the IDENTITY generation bones-up.) license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_faceanat.nx nx_persongen.nx nx_persongen_gate.nx nx_persongen_render_gate.nx

imports: nx_faceanat.nx

imported by: nx_persongen_gate.nxnx_persongen_render_gate.nx

structs

none

consts

9const K_MAGIC_6364136223846793005: i64 = 6364136223846793005
10const K_MAGIC_1442695040888963407: i64 = 1442695040888963407
11const K_MAGIC_2147483647: i64 = 2147483647
12const K_MAGIC_2654435761: i64 = 2654435761
13const K_MAGIC_1013904223: i64 = 1013904223

functions

16func pg_next(st: *i64) -> i64
called by 2: pg_seedpg_range
22func pg_seed(st: *i64, seed: i64) -> i64
called by 1: persongen_build calls 1: pg_next
27func pg_range(st: *i64, lo: i64, hi: i64) -> i64 { return lo + pg_next(st) % (hi - lo + 1) }
called by 1: persongen_build calls 1: pg_next
28func pg_clamp(v: i64, lo: i64, hi: i64) -> i64 { if v < lo { return lo } if v > hi { return hi } return v }
called by 1: persongen_build
32func persongen_build(base: i64, seed: i64, skinout: *i64, idout: *i64) -> i64