code wiki / (root) / nx_uncanny_valley.nx

nx_uncanny_valley.nx

buildroot/runtime/nx_uncanny_valley.nx

4645 B99 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_uncanny_valley.nx -- composite "person doesn't belong in scene" detector. Image #58 failure class: subject feels SLIGHTLY pasted onto the scene. Multiple sub-signals contribute: 1. Lighting consistency (already shipped: nx_lighting_consistency) 2. Shadow integration — does subject cast shadows on environment? 3. Skin-too-perfect signal (mannequin index lookup) 4. Edge-seam / chroma-fringe artifact on subject silhouette 5. Subject-environment color cast match This composite takes the 5 sub-scores and emits one uncanny-valley verdict. High = compositing-seam visible / pasted. Low = subject belongs in scene. Output flat-array: result[0..4] = per-axis Q10 scores result[5] = composite_q10 result[6] = verdict result[7] = failing_axis

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_uncanny_valley.nx nx_award_axes_test.nx

imports: nx_syscalls.nx

imported by: nx_award_axes_test.nx

structs

none

consts

28const NX_MAGIC_2048: i64 = 2048
30const NX_UNCANNY_RES_LIGHTING: i64 = 0
31const NX_UNCANNY_RES_SHADOW: i64 = 1
32const NX_UNCANNY_RES_MANNEQUIN: i64 = 2
33const NX_UNCANNY_RES_EDGE_SEAM: i64 = 3
34const NX_UNCANNY_RES_COLOR_CAST: i64 = 4
35const NX_UNCANNY_RES_COMPOSITE: i64 = 5
36const NX_UNCANNY_RES_VERDICT: i64 = 6
37const NX_UNCANNY_RES_FAIL_AXIS: i64 = 7
38const NX_UNCANNY_RES_FIELDS: i64 = 8
40const NX_UNCANNY_V_PASTED_IN: i64 = 0
41const NX_UNCANNY_V_NOTICEABLE: i64 = 1
42const NX_UNCANNY_V_ACCEPTABLE: i64 = 2
43const NX_UNCANNY_V_BELONGS_IN_SCENE: i64 = 3
45const NX_UNCANNY_AXIS_LIGHTING: i64 = 0
46const NX_UNCANNY_AXIS_SHADOW: i64 = 1
47const NX_UNCANNY_AXIS_MANNEQUIN: i64 = 2
48const NX_UNCANNY_AXIS_EDGE_SEAM: i64 = 3
49const NX_UNCANNY_AXIS_COLOR_CAST: i64 = 4

functions

60func nx_uncanny_valley(lighting_q10: i64, shadow_q10: i64,
called by 1: main