3D engine that AI agents drive
Lift ranked skinned parts in the path tracer and read flicker ids without MSAA (part of #751)
Nguyen Xuan An5501bb6c13e2
diff --git a/bench/flicker/ground-truth.js b/bench/flicker/ground-truth.jsindex b6f548a3..783a6f5d 100644--- a/bench/flicker/ground-truth.js+++ b/bench/flicker/ground-truth.js@@ -15,7 +15,7 @@ export { castPixelOwners, NO_TRIANGLE };const NORMAL_KEY_SCALE = 100;// Fine enough that triangle ids painted as 24-bit colours stay apart as keys, however a frame encodes them.-const COLOUR_KEY_SCALE = 1e7;+export const COLOUR_KEY_SCALE = 1e7;export const DEFAULT_COLOUR_THRESHOLD = 40;const MINIMUM_REFERENCE_PIXELS = 3;// A shown colour this close (largest channel, in bytes) to the one the ray cast expects is a rounding step of the frame, not another face.diff --git a/bench/flicker/results/README.md b/bench/flicker/results/README.mdindex 76bf4bba..06d4b82d 100644--- a/bench/flicker/results/README.md+++ b/bench/flicker/results/README.md@@ -20,3 +20,18 @@ for 18,367 of the 18,590 (`offRayNearColour` 8,261 within 2, `offRaySmallGap` 10consecutive colours, so a rounding step of the frame names an unrelated triangle. Only 215 interior pixels are further off(`offRayUnexplained`), so the true flips are at most `flipUpperBound` = 8 + 215 = 223 of 5.9 million contested pixels. With theflush pass off the same bound is 129,361. Reproduce with `probe.mjs --configs "reversed=1,facets=2,shadows=0,hits=6;reversed=1,facets=2,shadows=0,hits=32;reversed=1,facets=2,shadows=0,offset=0,hits=6"`.++`melbourne-drape-single-sample-1280x720.json` is the same 12 spots with 4 samples (`samples=4`) and with 1 sample (the default of `facets=2`+since #751), flush pass on, and 1 sample with the pass off (`offset=0`). The 18,590 `offRay` pixels of the 4-sample frame were the MSAA+resolve: a pixel shared by two faces resolves to the average of their ids, and ids of neighbouring triangles are neighbouring numbers, so+the average names a third, valid triangle (a pixel that the ray through its centre cannot match). `viewer.js` `colourStepDetails()` shows+it: the wrong pixels differ from the expected id in one or two channels, never three, by a few bytes, in runs along thin faces. With+1 sample the same frames hold 8 wrong pixels in 5.9 million contested ones, no swapped pixel and no true flip (`flipUpperBound` 1); the+8 "true flips" of the 4-sample frame were blends too. With the flush pass off the 1-sample frame still shows 119,404 flipped pixels, so the+probe still sees fighting. Reproduce with `probe.mjs --configs "reversed=1,facets=2,shadows=0,samples=4;reversed=1,facets=2,shadows=0;reversed=1,facets=2,shadows=0,offset=0"`.++`effects-melbourne-drape-1280x720.json` is `effects-probe.mjs` on the Melbourne drape at the same 12 spots (per-part colours, `ids=1`, shadows+off, reversed-Z float, 4 samples, D3D11): AO, line art and DOF through the stacked scene with the flush pass on, against the same scene with the+pass off. `spurious` counts the pixels an effect changes where the plain frame has no colour edge within 2 px. On a real city AO and DOF+change many such pixels by design (real occlusion, a blur of a shaded gradient), so the absolute counts say nothing; the two sides are+the comparison. Summed over 12 spots, flush on / off: AO 2,066,622 / 2,052,039, DOF 822,357 / 824,561, line art 44,654 / 50,794.diff --git a/bench/flicker/results/effects-melbourne-drape-1280x720.json b/bench/flicker/results/effects-melbourne-drape-1280x720.jsonnew file mode 100644index 00000000..21520860--- /dev/null+++ b/bench/flicker/results/effects-melbourne-drape-1280x720.json@@ -0,0 +1,902 @@+[+ {+ "trap": "roofs",+ "effect": "ao",+ "plain": {+ "small": 16000,+ "large": 13718,+ "maximum": 167,+ "firstX": null+ },+ "staged": {+ "small": 15965,+ "large": 13690,+ "maximum": 159,+ "firstX": null+ },+ "spurious": {+ "flushOn": 165267,+ "reference": 164643+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "roofs",+ "effect": "dof",+ "plain": {+ "small": 16000,+ "large": 13718,+ "maximum": 167,+ "firstX": null+ },+ "staged": {+ "small": 26487,+ "large": 16375,+ "maximum": 167,+ "firstX": null+ },+ "spurious": {+ "flushOn": 157834,+ "reference": 162950+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "roofs",+ "effect": "lines",+ "plain": {+ "small": 16000,+ "large": 13718,+ "maximum": 167,+ "firstX": null+ },+ "staged": {+ "small": 18174,+ "large": 14041,+ "maximum": 167,+ "firstX": null+ },+ "spurious": {+ "flushOn": 5547,+ "reference": 7427+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "bridge",+ "effect": "ao",+ "plain": {+ "small": 548,+ "large": 262,+ "maximum": 111,+ "firstX": null+ },+ "staged": {+ "small": 546,+ "large": 256,+ "maximum": 93,+ "firstX": null+ },+ "spurious": {+ "flushOn": 153955,+ "reference": 153424+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "bridge",+ "effect": "dof",+ "plain": {+ "small": 548,+ "large": 262,+ "maximum": 111,+ "firstX": null+ },+ "staged": {+ "small": 1067,+ "large": 0,+ "maximum": 26,+ "firstX": null+ },+ "spurious": {+ "flushOn": 68638,+ "reference": 68191+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "bridge",+ "effect": "lines",+ "plain": {+ "small": 548,+ "large": 262,+ "maximum": 111,+ "firstX": null+ },+ "staged": {+ "small": 504,+ "large": 169,+ "maximum": 111,+ "firstX": null+ },+ "spurious": {+ "flushOn": 1603,+ "reference": 1603+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "river",+ "effect": "ao",+ "plain": {+ "small": 15328,+ "large": 0,+ "maximum": 32,+ "firstX": null+ },+ "staged": {+ "small": 15079,+ "large": 0,+ "maximum": 32,+ "firstX": null+ },+ "spurious": {+ "flushOn": 98403,+ "reference": 98706+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "river",+ "effect": "dof",+ "plain": {+ "small": 15328,+ "large": 0,+ "maximum": 32,+ "firstX": null+ },+ "staged": {+ "small": 13255,+ "large": 0,+ "maximum": 24,+ "firstX": null+ },+ "spurious": {+ "flushOn": 58156,+ "reference": 57652+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "river",+ "effect": "lines",+ "plain": {+ "small": 15328,+ "large": 0,+ "maximum": 32,+ "firstX": null+ },+ "staged": {+ "small": 15123,+ "large": 1,+ "maximum": 34,+ "firstX": null+ },+ "spurious": {+ "flushOn": 1070,+ "reference": 1069+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "overview",+ "effect": "ao",+ "plain": {+ "small": 2978,+ "large": 1251,+ "maximum": 146,+ "firstX": null+ },+ "staged": {+ "small": 2959,+ "large": 1189,+ "maximum": 140,+ "firstX": null+ },+ "spurious": {+ "flushOn": 8025,+ "reference": 8021+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "overview",+ "effect": "dof",+ "plain": {+ "small": 2978,+ "large": 1251,+ "maximum": 146,+ "firstX": null+ },+ "staged": {+ "small": 2731,+ "large": 687,+ "maximum": 127,+ "firstX": null+ },+ "spurious": {+ "flushOn": 5590,+ "reference": 5599+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "overview",+ "effect": "lines",+ "plain": {+ "small": 2978,+ "large": 1251,+ "maximum": 146,+ "firstX": null+ },+ "staged": {+ "small": 2713,+ "large": 962,+ "maximum": 138,+ "firstX": null+ },+ "spurious": {+ "flushOn": 721,+ "reference": 721+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass0",+ "effect": "ao",+ "plain": {+ "small": 37614,+ "large": 36070,+ "maximum": 151,+ "firstX": null+ },+ "staged": {+ "small": 37571,+ "large": 35522,+ "maximum": 150,+ "firstX": null+ },+ "spurious": {+ "flushOn": 317606,+ "reference": 317558+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass0",+ "effect": "dof",+ "plain": {+ "small": 37614,+ "large": 36070,+ "maximum": 151,+ "firstX": null+ },+ "staged": {+ "small": 41357,+ "large": 34711,+ "maximum": 141,+ "firstX": null+ },+ "spurious": {+ "flushOn": 56202,+ "reference": 55910+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass0",+ "effect": "lines",+ "plain": {+ "small": 37614,+ "large": 36070,+ "maximum": 151,+ "firstX": null+ },+ "staged": {+ "small": 39790,+ "large": 36262,+ "maximum": 151,+ "firstX": null+ },+ "spurious": {+ "flushOn": 4105,+ "reference": 6958+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass1",+ "effect": "ao",+ "plain": {+ "small": 2725,+ "large": 1433,+ "maximum": 155,+ "firstX": null+ },+ "staged": {+ "small": 2714,+ "large": 1411,+ "maximum": 155,+ "firstX": null+ },+ "spurious": {+ "flushOn": 211960,+ "reference": 211733+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass1",+ "effect": "dof",+ "plain": {+ "small": 2725,+ "large": 1433,+ "maximum": 155,+ "firstX": null+ },+ "staged": {+ "small": 2163,+ "large": 801,+ "maximum": 99,+ "firstX": null+ },+ "spurious": {+ "flushOn": 42415,+ "reference": 42124+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass1",+ "effect": "lines",+ "plain": {+ "small": 2725,+ "large": 1433,+ "maximum": 155,+ "firstX": null+ },+ "staged": {+ "small": 2985,+ "large": 1664,+ "maximum": 155,+ "firstX": null+ },+ "spurious": {+ "flushOn": 5687,+ "reference": 5709+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass2",+ "effect": "ao",+ "plain": {+ "small": 20852,+ "large": 4683,+ "maximum": 172,+ "firstX": null+ },+ "staged": {+ "small": 18756,+ "large": 4391,+ "maximum": 160,+ "firstX": null+ },+ "spurious": {+ "flushOn": 257731,+ "reference": 254959+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass2",+ "effect": "dof",+ "plain": {+ "small": 20852,+ "large": 4683,+ "maximum": 172,+ "firstX": null+ },+ "staged": {+ "small": 21952,+ "large": 5310,+ "maximum": 172,+ "firstX": null+ },+ "spurious": {+ "flushOn": 29251,+ "reference": 28859+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass2",+ "effect": "lines",+ "plain": {+ "small": 20852,+ "large": 4683,+ "maximum": 172,+ "firstX": null+ },+ "staged": {+ "small": 20117,+ "large": 4865,+ "maximum": 172,+ "firstX": null+ },+ "spurious": {+ "flushOn": 6540,+ "reference": 6144+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass3",+ "effect": "ao",+ "plain": {+ "small": 16864,+ "large": 14428,+ "maximum": 126,+ "firstX": null+ },+ "staged": {+ "small": 16332,+ "large": 14413,+ "maximum": 126,+ "firstX": null+ },+ "spurious": {+ "flushOn": 113029,+ "reference": 110998+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass3",+ "effect": "dof",+ "plain": {+ "small": 16864,+ "large": 14428,+ "maximum": 126,+ "firstX": null+ },+ "staged": {+ "small": 18477,+ "large": 14664,+ "maximum": 126,+ "firstX": null+ },+ "spurious": {+ "flushOn": 16007,+ "reference": 16067+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass3",+ "effect": "lines",+ "plain": {+ "small": 16864,+ "large": 14428,+ "maximum": 126,+ "firstX": null+ },+ "staged": {+ "small": 16922,+ "large": 14408,+ "maximum": 126,+ "firstX": null+ },+ "spurious": {+ "flushOn": 2701,+ "reference": 4062+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass4",+ "effect": "ao",+ "plain": {+ "small": 8582,+ "large": 6985,+ "maximum": 174,+ "firstX": null+ },+ "staged": {+ "small": 8562,+ "large": 6938,+ "maximum": 170,+ "firstX": null+ },+ "spurious": {+ "flushOn": 125730,+ "reference": 125399+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass4",+ "effect": "dof",+ "plain": {+ "small": 8582,+ "large": 6985,+ "maximum": 174,+ "firstX": null+ },+ "staged": {+ "small": 11641,+ "large": 6523,+ "maximum": 73,+ "firstX": null+ },+ "spurious": {+ "flushOn": 72736,+ "reference": 72187+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass4",+ "effect": "lines",+ "plain": {+ "small": 8582,+ "large": 6985,+ "maximum": 174,+ "firstX": null+ },+ "staged": {+ "small": 9156,+ "large": 6613,+ "maximum": 162,+ "firstX": null+ },+ "spurious": {+ "flushOn": 4291,+ "reference": 4354+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass5",+ "effect": "ao",+ "plain": {+ "small": 4880,+ "large": 3667,+ "maximum": 161,+ "firstX": null+ },+ "staged": {+ "small": 4865,+ "large": 3650,+ "maximum": 154,+ "firstX": null+ },+ "spurious": {+ "flushOn": 129981,+ "reference": 130549+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass5",+ "effect": "dof",+ "plain": {+ "small": 4880,+ "large": 3667,+ "maximum": 161,+ "firstX": null+ },+ "staged": {+ "small": 7766,+ "large": 1878,+ "maximum": 110,+ "firstX": null+ },+ "spurious": {+ "flushOn": 126825,+ "reference": 126663+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass5",+ "effect": "lines",+ "plain": {+ "small": 4880,+ "large": 3667,+ "maximum": 161,+ "firstX": null+ },+ "staged": {+ "small": 5882,+ "large": 3886,+ "maximum": 159,+ "firstX": null+ },+ "spurious": {+ "flushOn": 5774,+ "reference": 6132+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass6",+ "effect": "ao",+ "plain": {+ "small": 778,+ "large": 655,+ "maximum": 73,+ "firstX": null+ },+ "staged": {+ "small": 779,+ "large": 653,+ "maximum": 72,+ "firstX": null+ },+ "spurious": {+ "flushOn": 308532,+ "reference": 308538+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass6",+ "effect": "dof",+ "plain": {+ "small": 778,+ "large": 655,+ "maximum": 73,+ "firstX": null+ },+ "staged": {+ "small": 1946,+ "large": 0,+ "maximum": 19,+ "firstX": null+ },+ "spurious": {+ "flushOn": 103874,+ "reference": 103356+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass6",+ "effect": "lines",+ "plain": {+ "small": 778,+ "large": 655,+ "maximum": 73,+ "firstX": null+ },+ "staged": {+ "small": 756,+ "large": 570,+ "maximum": 73,+ "firstX": null+ },+ "spurious": {+ "flushOn": 2950,+ "reference": 2950+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass7",+ "effect": "ao",+ "plain": {+ "small": 14765,+ "large": 11725,+ "maximum": 125,+ "firstX": null+ },+ "staged": {+ "small": 14622,+ "large": 137,+ "maximum": 119,+ "firstX": null+ },+ "spurious": {+ "flushOn": 176403,+ "reference": 167511+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass7",+ "effect": "dof",+ "plain": {+ "small": 14765,+ "large": 11725,+ "maximum": 125,+ "firstX": null+ },+ "staged": {+ "small": 20571,+ "large": 1,+ "maximum": 33,+ "firstX": null+ },+ "spurious": {+ "flushOn": 84829,+ "reference": 85003+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ },+ {+ "trap": "glass7",+ "effect": "lines",+ "plain": {+ "small": 14765,+ "large": 11725,+ "maximum": 125,+ "firstX": null+ },+ "staged": {+ "small": 14694,+ "large": 11639,+ "maximum": 125,+ "firstX": null+ },+ "spurious": {+ "flushOn": 3665,+ "reference": 3665+ },+ "flush": {+ "cutParts": 4,+ "ranked": 4,+ "leftovers": 0+ }+ }+]\ No newline at end of filediff --git a/bench/flicker/results/melbourne-drape-single-sample-1280x720.json b/bench/flicker/results/melbourne-drape-single-sample-1280x720.jsonnew file mode 100644index 00000000..445ea363--- /dev/null+++ b/bench/flicker/results/melbourne-drape-single-sample-1280x720.json@@ -0,0 +1,1190 @@+[+ {+ "spot": "roofs",+ "moved": 2032,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 455620,+ "wrong": 1053,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 102907,+ "flipped": 0,+ "ranked": 0,+ "offRay": 1052,+ "offRayEdge": 15,+ "offRayInterior": 1037,+ "offRayNearColour": 443,+ "offRaySmallGap": 587,+ "offRayUnexplained": 21,+ "blended": 1,+ "flipUpperBound": 21,+ "triangles": 266759,+ "castMilliseconds": 1557,+ "width": 1280,+ "height": 720+ },+ "clear": 8,+ "changed": 93,+ "fraction": 0.00010091145833333333,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "bridge",+ "moved": 554,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 193099,+ "wrong": 502,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 52279,+ "flipped": 0,+ "ranked": 0,+ "offRay": 502,+ "offRayEdge": 3,+ "offRayInterior": 499,+ "offRayNearColour": 250,+ "offRaySmallGap": 227,+ "offRayUnexplained": 25,+ "blended": 0,+ "flipUpperBound": 25,+ "triangles": 266759,+ "castMilliseconds": 1248,+ "width": 1280,+ "height": 720+ },+ "clear": 6,+ "changed": 26,+ "fraction": 0.000028211805555555554,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "river",+ "moved": 647,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 206138,+ "wrong": 1594,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 64496,+ "flipped": 0,+ "ranked": 0,+ "offRay": 1593,+ "offRayEdge": 6,+ "offRayInterior": 1587,+ "offRayNearColour": 467,+ "offRaySmallGap": 1110,+ "offRayUnexplained": 16,+ "blended": 1,+ "flipUpperBound": 16,+ "triangles": 266759,+ "castMilliseconds": 1321,+ "width": 1280,+ "height": 720+ },+ "clear": 1,+ "changed": 31,+ "fraction": 0.00003363715277777778,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "overview",+ "moved": 15118,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 24359,+ "wrong": 568,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 203448,+ "flipped": 0,+ "ranked": 0,+ "offRay": 568,+ "offRayEdge": 34,+ "offRayInterior": 534,+ "offRayNearColour": 237,+ "offRaySmallGap": 315,+ "offRayUnexplained": 16,+ "blended": 0,+ "flipUpperBound": 16,+ "triangles": 266759,+ "castMilliseconds": 1498,+ "width": 1280,+ "height": 720+ },+ "clear": 182,+ "changed": 2276,+ "fraction": 0.0024696180555555556,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass0",+ "moved": 969,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 632953,+ "wrong": 2441,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 136193,+ "flipped": 0,+ "ranked": 0,+ "offRay": 2441,+ "offRayEdge": 48,+ "offRayInterior": 2393,+ "offRayNearColour": 1155,+ "offRaySmallGap": 1265,+ "offRayUnexplained": 20,+ "blended": 0,+ "flipUpperBound": 20,+ "triangles": 266759,+ "castMilliseconds": 1960,+ "width": 1280,+ "height": 720+ },+ "clear": 24,+ "changed": 72,+ "fraction": 0.000078125,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass1",+ "moved": 2210,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 560703,+ "wrong": 2234,+ "swapped": 0,+ "tied": 16,+ "unjudged": 0,+ "edge": 169452,+ "flipped": 0,+ "ranked": 0,+ "offRay": 2233,+ "offRayEdge": 27,+ "offRayInterior": 2206,+ "offRayNearColour": 783,+ "offRaySmallGap": 1408,+ "offRayUnexplained": 40,+ "blended": 1,+ "flipUpperBound": 40,+ "triangles": 266759,+ "castMilliseconds": 1576,+ "width": 1280,+ "height": 720+ },+ "clear": 20,+ "changed": 144,+ "fraction": 0.00015625,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass2",+ "moved": 1613,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 518198,+ "wrong": 1982,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 130441,+ "flipped": 0,+ "ranked": 0,+ "offRay": 1982,+ "offRayEdge": 49,+ "offRayInterior": 1933,+ "offRayNearColour": 989,+ "offRaySmallGap": 973,+ "offRayUnexplained": 17,+ "blended": 0,+ "flipUpperBound": 17,+ "triangles": 266759,+ "castMilliseconds": 1313,+ "width": 1280,+ "height": 720+ },+ "clear": 41,+ "changed": 62,+ "fraction": 0.00006727430555555556,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass3",+ "moved": 1149,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 758799,+ "wrong": 1039,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 80628,+ "flipped": 0,+ "ranked": 0,+ "offRay": 1039,+ "offRayEdge": 26,+ "offRayInterior": 1013,+ "offRayNearColour": 494,+ "offRaySmallGap": 542,+ "offRayUnexplained": 3,+ "blended": 0,+ "flipUpperBound": 3,+ "triangles": 266759,+ "castMilliseconds": 1416,+ "width": 1280,+ "height": 720+ },+ "clear": 28,+ "changed": 55,+ "fraction": 0.00005967881944444444,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass4",+ "moved": 2760,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 491085,+ "wrong": 2921,+ "swapped": 1,+ "tied": 0,+ "unjudged": 0,+ "edge": 183662,+ "flipped": 1,+ "ranked": 0,+ "offRay": 2920,+ "offRayEdge": 79,+ "offRayInterior": 2841,+ "offRayNearColour": 1537,+ "offRaySmallGap": 1358,+ "offRayUnexplained": 25,+ "blended": 0,+ "flipUpperBound": 26,+ "triangles": 266759,+ "castMilliseconds": 1367,+ "width": 1280,+ "height": 720+ },+ "clear": 27,+ "changed": 177,+ "fraction": 0.00019205729166666666,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass5",+ "moved": 1922,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 498493,+ "wrong": 2156,+ "swapped": 0,+ "tied": 206,+ "unjudged": 0,+ "edge": 174956,+ "flipped": 0,+ "ranked": 0,+ "offRay": 2156,+ "offRayEdge": 57,+ "offRayInterior": 2099,+ "offRayNearColour": 1151,+ "offRaySmallGap": 978,+ "offRayUnexplained": 26,+ "blended": 0,+ "flipUpperBound": 26,+ "triangles": 266759,+ "castMilliseconds": 1477,+ "width": 1280,+ "height": 720+ },+ "clear": 17,+ "changed": 129,+ "fraction": 0.00013997395833333334,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass6",+ "moved": 316,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 776128,+ "wrong": 633,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 56585,+ "flipped": 0,+ "ranked": 0,+ "offRay": 633,+ "offRayEdge": 8,+ "offRayInterior": 625,+ "offRayNearColour": 304,+ "offRaySmallGap": 326,+ "offRayUnexplained": 3,+ "blended": 0,+ "flipUpperBound": 3,+ "triangles": 266759,+ "castMilliseconds": 1514,+ "width": 1280,+ "height": 720+ },+ "clear": 3,+ "changed": 27,+ "fraction": 0.000029296875,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass7",+ "moved": 324,+ "configuration": "reversed1-facets2-shadows0-samples4",+ "truth": {+ "contested": 802126,+ "wrong": 1479,+ "swapped": 7,+ "tied": 0,+ "unjudged": 0,+ "edge": 58318,+ "flipped": 7,+ "ranked": 0,+ "offRay": 1471,+ "offRayEdge": 11,+ "offRayInterior": 1460,+ "offRayNearColour": 451,+ "offRaySmallGap": 1017,+ "offRayUnexplained": 3,+ "blended": 1,+ "flipUpperBound": 10,+ "triangles": 266759,+ "castMilliseconds": 1440,+ "width": 1280,+ "height": 720+ },+ "clear": 5,+ "changed": 11,+ "fraction": 0.00001193576388888889,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "roofs",+ "moved": 2964,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 455620,+ "wrong": 1,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 102907,+ "flipped": 0,+ "ranked": 0,+ "offRay": 1,+ "offRayEdge": 1,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 1,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1066,+ "width": 1280,+ "height": 720+ },+ "clear": 272,+ "changed": 531,+ "fraction": 0.000576171875,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "bridge",+ "moved": 1066,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 193099,+ "wrong": 0,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 52279,+ "flipped": 0,+ "ranked": 0,+ "offRay": 0,+ "offRayEdge": 0,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1292,+ "width": 1280,+ "height": 720+ },+ "clear": 150,+ "changed": 255,+ "fraction": 0.0002766927083333333,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "river",+ "moved": 1607,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 206138,+ "wrong": 2,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 64496,+ "flipped": 0,+ "ranked": 0,+ "offRay": 2,+ "offRayEdge": 0,+ "offRayInterior": 2,+ "offRayNearColour": 0,+ "offRaySmallGap": 2,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1617,+ "width": 1280,+ "height": 720+ },+ "clear": 68,+ "changed": 155,+ "fraction": 0.0001681857638888889,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "overview",+ "moved": 25033,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 24359,+ "wrong": 0,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 203448,+ "flipped": 0,+ "ranked": 0,+ "offRay": 0,+ "offRayEdge": 0,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1290,+ "width": 1280,+ "height": 720+ },+ "clear": 471,+ "changed": 2972,+ "fraction": 0.003224826388888889,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass0",+ "moved": 2931,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 632953,+ "wrong": 0,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 136193,+ "flipped": 0,+ "ranked": 0,+ "offRay": 0,+ "offRayEdge": 0,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1525,+ "width": 1280,+ "height": 720+ },+ "clear": 116,+ "changed": 374,+ "fraction": 0.00040581597222222223,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass1",+ "moved": 5187,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 560703,+ "wrong": 0,+ "swapped": 0,+ "tied": 16,+ "unjudged": 0,+ "edge": 169452,+ "flipped": 0,+ "ranked": 0,+ "offRay": 0,+ "offRayEdge": 0,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1208,+ "width": 1280,+ "height": 720+ },+ "clear": 186,+ "changed": 533,+ "fraction": 0.0005783420138888889,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass2",+ "moved": 2729,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 518198,+ "wrong": 0,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 130441,+ "flipped": 0,+ "ranked": 0,+ "offRay": 0,+ "offRayEdge": 0,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1290,+ "width": 1280,+ "height": 720+ },+ "clear": 66,+ "changed": 199,+ "fraction": 0.00021592881944444445,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass3",+ "moved": 1685,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 758799,+ "wrong": 0,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 80628,+ "flipped": 0,+ "ranked": 0,+ "offRay": 0,+ "offRayEdge": 0,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1312,+ "width": 1280,+ "height": 720+ },+ "clear": 51,+ "changed": 115,+ "fraction": 0.0001247829861111111,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass4",+ "moved": 6181,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 491085,+ "wrong": 2,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 183662,+ "flipped": 0,+ "ranked": 0,+ "offRay": 2,+ "offRayEdge": 0,+ "offRayInterior": 2,+ "offRayNearColour": 0,+ "offRaySmallGap": 2,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1182,+ "width": 1280,+ "height": 720+ },+ "clear": 169,+ "changed": 567,+ "fraction": 0.000615234375,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass5",+ "moved": 4895,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 498493,+ "wrong": 3,+ "swapped": 0,+ "tied": 206,+ "unjudged": 0,+ "edge": 174956,+ "flipped": 0,+ "ranked": 0,+ "offRay": 3,+ "offRayEdge": 0,+ "offRayInterior": 3,+ "offRayNearColour": 0,+ "offRaySmallGap": 2,+ "offRayUnexplained": 1,+ "blended": 0,+ "flipUpperBound": 1,+ "triangles": 266759,+ "castMilliseconds": 1329,+ "width": 1280,+ "height": 720+ },+ "clear": 160,+ "changed": 571,+ "fraction": 0.0006195746527777778,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass6",+ "moved": 1110,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 776128,+ "wrong": 0,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 56585,+ "flipped": 0,+ "ranked": 0,+ "offRay": 0,+ "offRayEdge": 0,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1381,+ "width": 1280,+ "height": 720+ },+ "clear": 47,+ "changed": 99,+ "fraction": 0.000107421875,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass7",+ "moved": 1992,+ "configuration": "reversed1-facets2-shadows0",+ "truth": {+ "contested": 802126,+ "wrong": 0,+ "swapped": 0,+ "tied": 0,+ "unjudged": 0,+ "edge": 58318,+ "flipped": 0,+ "ranked": 0,+ "offRay": 0,+ "offRayEdge": 0,+ "offRayInterior": 0,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 0,+ "blended": 0,+ "flipUpperBound": 0,+ "triangles": 266759,+ "castMilliseconds": 1289,+ "width": 1280,+ "height": 720+ },+ "clear": 21,+ "changed": 83,+ "fraction": 0.00009006076388888889,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "roofs",+ "moved": 5821,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 471691,+ "wrong": 13460,+ "swapped": 13372,+ "tied": 1114,+ "unjudged": 0,+ "edge": 103741,+ "flipped": 13372,+ "ranked": 0,+ "offRay": 88,+ "offRayEdge": 0,+ "offRayInterior": 88,+ "offRayNearColour": 1,+ "offRaySmallGap": 22,+ "offRayUnexplained": 65,+ "blended": 0,+ "flipUpperBound": 13437,+ "triangles": 254107,+ "castMilliseconds": 918,+ "width": 1280,+ "height": 720+ },+ "clear": 318,+ "changed": 809,+ "fraction": 0.0008778211805555555,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "bridge",+ "moved": 1141,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 197221,+ "wrong": 3594,+ "swapped": 3588,+ "tied": 0,+ "unjudged": 0,+ "edge": 52822,+ "flipped": 3588,+ "ranked": 0,+ "offRay": 6,+ "offRayEdge": 0,+ "offRayInterior": 6,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 6,+ "blended": 0,+ "flipUpperBound": 3594,+ "triangles": 254107,+ "castMilliseconds": 928,+ "width": 1280,+ "height": 720+ },+ "clear": 156,+ "changed": 268,+ "fraction": 0.0002907986111111111,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "river",+ "moved": 1816,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 206112,+ "wrong": 3188,+ "swapped": 2270,+ "tied": 133,+ "unjudged": 0,+ "edge": 64882,+ "flipped": 2270,+ "ranked": 0,+ "offRay": 918,+ "offRayEdge": 0,+ "offRayInterior": 918,+ "offRayNearColour": 80,+ "offRaySmallGap": 222,+ "offRayUnexplained": 616,+ "blended": 0,+ "flipUpperBound": 2886,+ "triangles": 254107,+ "castMilliseconds": 1245,+ "width": 1280,+ "height": 720+ },+ "clear": 129,+ "changed": 247,+ "fraction": 0.00026801215277777777,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "overview",+ "moved": 25020,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 24441,+ "wrong": 138,+ "swapped": 81,+ "tied": 44,+ "unjudged": 0,+ "edge": 203366,+ "flipped": 81,+ "ranked": 0,+ "offRay": 57,+ "offRayEdge": 0,+ "offRayInterior": 57,+ "offRayNearColour": 0,+ "offRaySmallGap": 18,+ "offRayUnexplained": 39,+ "blended": 0,+ "flipUpperBound": 120,+ "triangles": 254107,+ "castMilliseconds": 1008,+ "width": 1280,+ "height": 720+ },+ "clear": 481,+ "changed": 2979,+ "fraction": 0.003232421875,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass0",+ "moved": 3081,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 655267,+ "wrong": 25795,+ "swapped": 24068,+ "tied": 119,+ "unjudged": 0,+ "edge": 135528,+ "flipped": 24068,+ "ranked": 0,+ "offRay": 1727,+ "offRayEdge": 0,+ "offRayInterior": 1727,+ "offRayNearColour": 12,+ "offRaySmallGap": 573,+ "offRayUnexplained": 1142,+ "blended": 0,+ "flipUpperBound": 25210,+ "triangles": 254107,+ "castMilliseconds": 1287,+ "width": 1280,+ "height": 720+ },+ "clear": 253,+ "changed": 525,+ "fraction": 0.0005696614583333334,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass1",+ "moved": 5217,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 562211,+ "wrong": 1763,+ "swapped": 1583,+ "tied": 16,+ "unjudged": 0,+ "edge": 170121,+ "flipped": 1583,+ "ranked": 0,+ "offRay": 180,+ "offRayEdge": 0,+ "offRayInterior": 180,+ "offRayNearColour": 0,+ "offRaySmallGap": 83,+ "offRayUnexplained": 97,+ "blended": 0,+ "flipUpperBound": 1680,+ "triangles": 254107,+ "castMilliseconds": 1200,+ "width": 1280,+ "height": 720+ },+ "clear": 189,+ "changed": 554,+ "fraction": 0.0006011284722222222,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass2",+ "moved": 5887,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 531304,+ "wrong": 46337,+ "swapped": 44532,+ "tied": 2477,+ "unjudged": 0,+ "edge": 124380,+ "flipped": 44532,+ "ranked": 0,+ "offRay": 1805,+ "offRayEdge": 0,+ "offRayInterior": 1805,+ "offRayNearColour": 29,+ "offRaySmallGap": 226,+ "offRayUnexplained": 1550,+ "blended": 0,+ "flipUpperBound": 46082,+ "triangles": 254107,+ "castMilliseconds": 1557,+ "width": 1280,+ "height": 720+ },+ "clear": 1523,+ "changed": 2321,+ "fraction": 0.0025184461805555555,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass3",+ "moved": 2542,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 765866,+ "wrong": 9331,+ "swapped": 8203,+ "tied": 128,+ "unjudged": 0,+ "edge": 80221,+ "flipped": 8203,+ "ranked": 0,+ "offRay": 1128,+ "offRayEdge": 0,+ "offRayInterior": 1128,+ "offRayNearColour": 4,+ "offRaySmallGap": 129,+ "offRayUnexplained": 995,+ "blended": 0,+ "flipUpperBound": 9198,+ "triangles": 254107,+ "castMilliseconds": 1735,+ "width": 1280,+ "height": 720+ },+ "clear": 120,+ "changed": 301,+ "fraction": 0.00032660590277777777,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass4",+ "moved": 6567,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 491348,+ "wrong": 6214,+ "swapped": 5417,+ "tied": 236,+ "unjudged": 0,+ "edge": 183406,+ "flipped": 5417,+ "ranked": 0,+ "offRay": 797,+ "offRayEdge": 0,+ "offRayInterior": 797,+ "offRayNearColour": 1,+ "offRaySmallGap": 151,+ "offRayUnexplained": 645,+ "blended": 0,+ "flipUpperBound": 6062,+ "triangles": 254107,+ "castMilliseconds": 1536,+ "width": 1280,+ "height": 720+ },+ "clear": 220,+ "changed": 644,+ "fraction": 0.0006987847222222222,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass5",+ "moved": 5215,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 500383,+ "wrong": 2373,+ "swapped": 1925,+ "tied": 318,+ "unjudged": 0,+ "edge": 174617,+ "flipped": 1925,+ "ranked": 0,+ "offRay": 448,+ "offRayEdge": 0,+ "offRayInterior": 448,+ "offRayNearColour": 7,+ "offRaySmallGap": 121,+ "offRayUnexplained": 320,+ "blended": 0,+ "flipUpperBound": 2245,+ "triangles": 254107,+ "castMilliseconds": 1616,+ "width": 1280,+ "height": 720+ },+ "clear": 182,+ "changed": 636,+ "fraction": 0.0006901041666666667,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass6",+ "moved": 1580,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 776279,+ "wrong": 245,+ "swapped": 241,+ "tied": 0,+ "unjudged": 0,+ "edge": 56783,+ "flipped": 241,+ "ranked": 0,+ "offRay": 4,+ "offRayEdge": 0,+ "offRayInterior": 4,+ "offRayNearColour": 0,+ "offRaySmallGap": 0,+ "offRayUnexplained": 4,+ "blended": 0,+ "flipUpperBound": 245,+ "triangles": 254107,+ "castMilliseconds": 1764,+ "width": 1280,+ "height": 720+ },+ "clear": 166,+ "changed": 390,+ "fraction": 0.00042317708333333335,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ },+ {+ "spot": "glass7",+ "moved": 2013,+ "configuration": "reversed1-facets2-shadows0-offset0",+ "truth": {+ "contested": 808367,+ "wrong": 14858,+ "swapped": 14124,+ "tied": 0,+ "unjudged": 0,+ "edge": 52861,+ "flipped": 14124,+ "ranked": 0,+ "offRay": 734,+ "offRayEdge": 0,+ "offRayInterior": 734,+ "offRayNearColour": 14,+ "offRaySmallGap": 123,+ "offRayUnexplained": 597,+ "blended": 0,+ "flipUpperBound": 14721,+ "triangles": 254107,+ "castMilliseconds": 1756,+ "width": 1280,+ "height": 720+ },+ "clear": 31,+ "changed": 88,+ "fraction": 0.00009548611111111112,+ "depth": "reversed-Z, 32-bit float",+ "near": 0.10000000596046163,+ "far": 209715.3125+ }+]\ No newline at end of filediff --git a/bench/flicker/viewer.js b/bench/flicker/viewer.jsindex b89af98c..9b0ef715 100644--- a/bench/flicker/viewer.js+++ b/bench/flicker/viewer.js@@ -10,7 +10,7 @@ import { installCameraEffects } from '../../src/camera-effects.js';import { installLineArt, resolveLineArt } from '../../src/line-art.js';import { resolveEffects } from '../../src/effects.js';import { TRAPS, TILED_TRAPS } from './traps.js';-import { collectWorldTriangles, castPixelOwners, compareWithGroundTruth } from './ground-truth.js';+import { collectWorldTriangles, castPixelOwners, compareWithGroundTruth, COLOUR_KEY_SCALE } from './ground-truth.js';import { DEFAULT_HITS_PER_PIXEL } from './pixel-cast.js';// One flat colour per part, no textures, so a pixel's colour says which part owns it and a changed colour is a changed owner.@@ -102,6 +102,9 @@ const options = {// facets=2: the colour of every triangle is its own number, drawn unlit, so the frame tells exactly which face is shown at a pixel.triangleIds: parameters.get('facets') === '2',// hits=N keeps the N nearest faces per ray in the ray cast (default 6, at most 64): a deeper stack than that shows up as offRay.+ // samples=N sets the MSAA sample count. A facets=2 frame defaults to 1: the resolve of 4 samples blends the ids of faces that share a pixel into+ // another valid id, which the ray through the pixel centre cannot match (see colourStepDetails); one sample shows the face under the centre.+ samples: Math.max(1, Math.floor(Number(parameters.get('samples')) || (parameters.get('facets') === '2' ? 1 : 4))),hitsPerPixel: Math.min(64, Math.max(1, Number(parameters.get('hits')) || DEFAULT_HITS_PER_PIXEL)),};// effect=ao|dof|lines|all draws the frame through that screen-space stage (issue #751, effects on cut geometry): the renderer gets a@@ -164,12 +167,15 @@ function markDirty() {context.clearRect(0, 0, overlay.width, overlay.height);}+// The largest ambient occlusion radius the effects accept (metres); a city-sized scene would ask for more.+const MAXIMUM_AO_RADIUS = 100;+// The stage settings of the effect= parameter: strong enough that a seam shows, and the focus at the pivot so depth of field blurs// the surfaces in front and behind it.function effectSettings() {const settings = {};const effects = {};- if (usesEffect('ao')) Object.assign(effects, { ambientOcclusion: 1, ambientOcclusionRadius: Math.max(extent / 40, 0.05) });+ if (usesEffect('ao')) Object.assign(effects, { ambientOcclusion: 1, ambientOcclusionRadius: Math.min(Math.max(extent / 40, 0.05), MAXIMUM_AO_RADIUS) });if (usesEffect('dof')) effects.depthOfField = { blur: 0.6, focusDistance: camera.distance };settings.effects = resolveEffects(effects);if (usesEffect('lines')) settings.lines = resolveLineArt({ width: 1.5, boundaries: true, creaseAngle: 30, depthJump: 0.08 });@@ -227,7 +233,7 @@ async function build() {const size = bounds.maximum.map((value, axis) => value - bounds.minimum[axis]);extent = Math.max(...size);renderer = new Renderer67(canvas, loaded.parts, {- ground: false, hdr: !options.triangleIds, samples: 4, pixelRatio: Math.min(devicePixelRatio, 1.5), memoryBudgetMiB: 1024,+ ground: false, hdr: !options.triangleIds, samples: options.samples, pixelRatio: Math.min(devicePixelRatio, 1.5), memoryBudgetMiB: 1024,reversedDepth: options.reversed ? 'auto' : false,resolveCoplanar: options.offset ? resolveAndReport : false,...(effectName ? { depth: true } : {}),@@ -381,6 +387,37 @@ function swapDetails(limit = 12) {}));}+// The wrong pixels of the current frame that show another face's id, with the bytes drawn and the bytes expected (exact frames only).+// Says how far apart they are per channel and where on the frame they sit, so a rounding step of the frame can be told from a+// face the ray cast misses: channels counts the pixels by how many of the three channels differ, largest by the largest channel gap.+function colourStepDetails(limit = 12) {+ const { width, height } = canvas;+ const scratch = document.createElement('canvas');+ scratch.width = width;+ scratch.height = height;+ const context = scratch.getContext('2d', { willReadFrequently: true });+ renderer.render(frameFor(0));+ const pixels = new Uint8ClampedArray(readFrame(context));+ const world = collectWorldTriangles(window.flickerParts, flushOrderOf);+ const cast = castPixelOwners(world, frameFor(0), width, height, options.hitsPerPixel);+ const { mismatchMask } = compareWithGroundTruth({ pixels, world, cast, width, height, exact: options.triangleIds ? shownByte : null });+ const channels = [0, 0, 0, 0];+ const largest = {};+ const samples = [];+ for (let pixel = 0; pixel < mismatchMask.length; pixel++) {+ if (mismatchMask[pixel] !== 1) continue;+ const expected = shownByte(world.keyColours[world.keyOf[cast.owner[pixel]]].map(channel => channel / COLOUR_KEY_SCALE));+ const shown = [pixels[pixel * 4], pixels[pixel * 4 + 1], pixels[pixel * 4 + 2]];+ const gaps = shown.map((byte, channel) => byte - expected[channel]);+ channels[gaps.filter(gap => gap !== 0).length]++;+ const gap = Math.max(...gaps.map(Math.abs));+ largest[gap] = (largest[gap] ?? 0) + 1;+ if (samples.length < limit && gap <= 16) samples.push({ x: pixel % width, y: Math.floor(pixel / width), expected, shown, alpha: pixels[pixel * 4 + 3] });+ }+ renderer.render(frameFor(0));+ return { channels, largest, samples };+}+async function probe() {if (!renderer) return null;if (!options.ids) {@@ -607,7 +644,7 @@ function frameBase64() {}window.flicker = {- frameBase64, setCamera, probe, truth, swapDetails, build, options, frameWholeScene,+ frameBase64, setCamera, probe, truth, swapDetails, colourStepDetails, colourStepDetails, build, options, frameWholeScene,get info() { return { depthMode: depthModeLabel(), ...(renderer ? nearAndFar() : {}), extent, bounds, canvas: [canvas.width, canvas.height], memory: renderer?.memoryReport?.(), flush: flushReport }; },render: () => { markDirty(); renderer?.render(frameFor(0)); },traps: Object.keys(TRAPS),diff --git a/changes/751-last-gaps.md b/changes/751-last-gaps.mdnew file mode 100644index 00000000..ba65c5a3--- /dev/null+++ b/changes/751-last-gaps.md@@ -0,0 +1 @@+- The path tracer lifts ranked faces of skinned parts at their pose too, and the flicker probe draws its face-id frame without MSAA, so ids round-trip exactly (#751)diff --git a/src/path-tracer-scene.js b/src/path-tracer-scene.jsindex 3271b331..66430114 100644--- a/src/path-tracer-scene.js+++ b/src/path-tracer-scene.js@@ -182,7 +182,8 @@ function validatePart(part, geometry) {function traceGeometry(part) {// Faces hidden under a face on the same plane are cut away for the rasteriser (flush-resolve.js); rays get the same// geometry, or the two faces would split the hits between them.- const geometry = part.skin ? skinnedGeometry(part) : liftRankedTriangles(part, flushOrderOf(part)?.geometry ?? part.geometry);+ const traced = part.skin ? skinnedGeometry(part) : flushOrderOf(part)?.geometry ?? part.geometry;+ const geometry = liftRankedTriangles(part, traced);const { boxMapScale = 0, boxMapAxis = 1 } = part.material ?? {};if (!(boxMapScale > 0)) return geometry;return boxProjectedGeometry(geometry, columnLengths(part.matrix ?? IDENTITY_MATRIX), boxMapScale, boxMapAxis);diff --git a/tests/flush-path-tracer.test.js b/tests/flush-path-tracer.test.jsindex 9b540ae5..be1ac6a0 100644--- a/tests/flush-path-tracer.test.js+++ b/tests/flush-path-tracer.test.js@@ -3,6 +3,7 @@ import assert from 'node:assert/strict';import { resolveFlushParts } from '../src/coplanar-overlap.js';import { renderPathTracedImage } from '../src/path-tracer.js';import { liftRankedTriangles } from '../src/flush-lift.js';+import { setFlushOrder } from '../src/depth-layer.js';// The path tracer draws the cut geometry of the flush pass (path-tracer-scene.js), but a rank is a rasteriser bias it cannot use.// Where the pass ranks two faces on one plane instead of cutting one away, the rays see both at the same distance and the@@ -66,3 +67,19 @@ test('a lift moves only ranked triangles, along their front normal, on copied vefor (let vertex = 4; vertex < 10; vertex++) assert.ok(Math.abs(lifted.positions[vertex * 3 + 2] - step) < 1e-9, 'lifted by one rank along +z');assert.equal(lifted.normals.length, lifted.positions.length);});++test('a skinned part with ranked triangles is lifted at its pose, so the ranked face is hit first', async () => {+ const skinned = (name, color) => {+ const part = quadPart(name, 1, color);+ part.geometry.skinIndices = new Uint16Array([0, 0, 0, 0]);+ part.geometry.skinWeights = new Float32Array([1, 1, 1, 1]);+ part.skin = { jointMatrices: new Float32Array(IDENTITY) };+ return part;+ };+ const lower = skinned('lower', RED);+ const upper = skinned('upper', GREEN);+ // The flush search leaves deforming parts out (flush-search.js), so no pass ranks a skinned part today; the order is set by hand.+ setFlushOrder(upper, { indices: upper.geometry.indices, ranges: [{ start: 0, count: 6, rank: 1 }], triangleRanks: new Uint8Array([1, 1]) });+ assert.deepEqual(await centreAlbedo([lower, upper]), GREEN);+ assert.deepEqual(await centreAlbedo([upper, lower]), GREEN, 'the rank wins in either part order');+});