diff --git a/docs/parity-fixes.md b/docs/parity-fixes.md index 056ec94..7af83e8 100644 --- a/docs/parity-fixes.md +++ b/docs/parity-fixes.md @@ -209,6 +209,35 @@ The color and grayscale Crop roots each match **229,376/229,376** pixels across For the independent case, enable Show Crop Area, set Input Size to (64,128), Matrix to (.75,−.125,.375,1.25), Offset to (−.1875,.3125) and Filtering to 0. Use the original color or height field under [height distance, texture mapping and skew](#height-distance-texture-mapping-skew-and-weave) at the output dimensions. At 128² seed 71 F32 and 64² seed 137 in all four storage formats, each root’s Output matches 32,768/32,768 pixels. Area matches in U8, U16 and F32. At 64² F16, color Area matches 4,054/4,096 and grayscale Area matches 4,087/4,096. Both maxima are .00048828125. The last operation on both Area outputs is a blend. +### Tile edge masks and normalized spline distances + +| Root | First four captures | Four 64² parent formats, seed 42 | Independent 32², seed 113 | Seven new cases | Total exact / compared | +|---|---:|---:|---:|---:|---:| +| `smart_auto_tile.sbs/pattern_find_edges_step` | 3,146,752 | 4,096 | 1,024 | 34,048 | 3,185,920/3,185,920 | +| `spline_tools.sbs/internal_tools/normalize_spline_distance` | 1,024 | 16,384 | 1,024 | 34,048 | 52,480/52,480 | + +All 16 cases per root match at the stored precision, with maximum error zero. In the edge-mask root the default grid exponent is 10, so the first three results are each 1,024² at parent sizes 128² or 256² and seeds zero or 42. Setting the grid exponent to 5 produces a 32² result. The normalized distance root has a single grayscale input and no additional exposed settings. Its first four outputs are 16² LUM32F. The earlier precision and independent input definitions are in the [four-format inventory](#four-format-inventory-comparison). + +The seven new cases per root use 16² F32 at seed 17, 64² U8/U16/F16/F32 at seed 71, 128² F32 at seed 137 and 32² F32 at seed 211. Use integer coordinates starting at zero, with N equal to the requested side. Set the edge-mask grid exponent to log₂(N), blur and smoothness to .25, combined threshold to .375 and per-channel thresholds for base color, normal and height to .1875, .3125 and .125. Enable per-channel thresholds except at 32². Disable height at 16², base color at 32² and normal at 128². Bind linear byte fields using z=(13x+7y+3xy) mod 256. Base color is (z,19x+3y,7x−23y,255−z), normal is (127+2x,91+3y,255−floor(z/5),255) and height is 19x+23y+7xy, reducing all byte channels modulo 256. The mask alpha is 255. Its RGB channels are 255 where (floor(x/4)+2floor(y/5)) mod 3 is nonzero, x < N/2 and y mod 7 ≥ 3, respectively, and zero otherwise. The 64² F32 output contains ten distinct RGBA tuples. + +For normalized distance at 16² and 64² use a grayscale byte field (17x+7y+3xy) mod 256, with the rightmost column replaced by 13y mod 256. At 128² use 16-bit levels (311x+1861y+31xy) mod 65536 and zero the final column on rows y mod 3=0. At 32² store (((13x−31y+2xy) mod 253)−87)/32 in each RGB channel of a linear float image, alpha one, with the final column zero on rows y mod 4=0. The 64² F32 output has 3,330 distinct levels. + +The [wired bridge distance](#height-distance-texture-mapping-skew-and-weave) root was also retested. With count two, 32² and 64² now match 1,024/1,024 and 4,096/4,096. The 16² case matches 252/256 with maximum 5.96046448e−8. All three count-one cases remain exact. + +### Ridged noise octave isolation + +Use the position ramp and original 1024×16 lookup under [basic and ridged 3D Perlin](#basic-and-ridged-3d-perlin). Retain the 128² position input and cook 64² LUM32F at seed 42. Each cell gives exact pixels out of 4,096 and maximum absolute error. Roughness .5 with one or two active levels matches every pixel. Roughness .7 already differs with a single active level. + +| Minimum–maximum level | Roughness .5 | Roughness .7 | +|---|---:|---:| +| 1–1 | 4,096 · 0 | 1,847 · 2.38418579e−7 | +| 1–2 | 4,096 · 0 | 1,210 · 1.19209290e−7 | +| 1–3 | 3,704 · 5.96046448e−8 | 1,100 · 1.19209290e−7 | +| 1–4 | 3,331 · 1.19209290e−7 | 144 · 2.38418579e−7 | +| 1–7 | 3,004 · 1.19209290e−7 | 1,320 · 1.78813934e−7 | + +Selecting only level 2, 3 or 7 at roughness .7 gives 2,040, 1,871 and 1,841 exact pixels out of 4,096, each with maximum 2.38418579e−7. With the same lookup at 128² and roughness .7, U16, F16 and F32 still match 16,337, 16,380 and 5,160 of 16,384, respectively. + ### Runtime pixel sine, cosine and atlas rotation Sine and cosine match **1,443,840/1,443,840 LUM32F pixels** across 30 original Pixel Processor cases. Exactness includes signed zero and all 84 nonfinite output components. Maximum finite error is zero. Direct Cartesian coordinates and separately multiplying the radius by the cosine and sine match another **197,632/197,632 component pixels**. With radius −1.25 and angle float32(π/4), the two coordinate components have bits `bf62462e bf624630`. diff --git a/docs/sbs-root-nodes.md b/docs/sbs-root-nodes.md index 31a1689..d7144cf 100644 --- a/docs/sbs-root-nodes.md +++ b/docs/sbs-root-nodes.md @@ -35,7 +35,7 @@ A graph may accept input pins and still be a root under the dependency criterion Statuses: **Not checked**, **In progress**, **Parity** (exact pixels or typed values for the linked measured cases), or **Too hard** (reason recorded). Function calls do not count as regular graph dependencies. -The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard**. The current inventory has **200 Parity**, **25 In progress** and **321 Too hard**. The November 17 and 18 comparisons include raw counts, output formats and remaining differences. [November 17 measurements](parity-fixes.md#2026-11-17-root-comparisons) · [November 18 measurements](parity-fixes.md#2026-11-18-root-comparisons) +The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard**. The current inventory has **202 Parity**, **25 In progress** and **319 Too hard**. The November 17 and 18 comparisons include raw counts, output formats and remaining differences. [November 17 measurements](parity-fixes.md#2026-11-17-root-comparisons) · [November 18 measurements](parity-fixes.md#2026-11-18-root-comparisons) [Grayscale sampler measurements](parity-fixes.md#grayscale-sampling-of-color-inputs) · [Value sampling across 240 typed comparisons](parity-fixes.md#value-processor-texture-filtering) @@ -48,7 +48,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [3d_gradient.sbs/3d_linear_gradient](../assets/sbs/3d_gradient.sbs) | 1 | No | [Parity · 12 wired and 5 disconnected cases, four formats](parity-fixes.md#runtime-reciprocal-and-3d-gradient-contrast) | | [3d_perlin_noise.sbs/3D_perlin_noise](../assets/sbs/3d_perlin_noise.sbs) | 1 | No | [In progress · shared lookup exact across seven cases, stock lookup differs](parity-fixes.md#pixel-processor-products-and-sums) | | [3d_perlin_noise.sbs/3D_perlin_noise_fractal](../assets/sbs/3d_perlin_noise.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | -| [3d_perlin_noise.sbs/3D_ridged_noise_fractal](../assets/sbs/3d_perlin_noise.sbs) | 1 | No | [In progress · shared lookup exact in LUM8, higher precision differs](parity-fixes.md#basic-and-ridged-3d-perlin) | +| [3d_perlin_noise.sbs/3D_ridged_noise_fractal](../assets/sbs/3d_perlin_noise.sbs) | 1 | No | [In progress · 13 octave controls isolate a one-level roughness difference](parity-fixes.md#ridged-noise-octave-isolation) | | [3d_planar_projection.sbs/3d_planar_projection](../assets/sbs/3d_planar_projection.sbs) | 3 | No | [In progress · default exact, rotated samples differ](parity-fixes.md#grayscale-and-color-3d-planar-projection) | | [3d_planar_projection.sbs/3d_planar_projection_color](../assets/sbs/3d_planar_projection.sbs) | 3 | No | [In progress · default RGBA exact, rotated samples differ](parity-fixes.md#grayscale-and-color-3d-planar-projection) | | [3d_simplex_noise.sbs/3d_simplex_noise](../assets/sbs/3d_simplex_noise.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | @@ -532,7 +532,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [slope_blur.sbs/slope_blur](../assets/sbs/slope_blur.sbs) | 2 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [slope_blur.sbs/slope_blur_grayscale](../assets/sbs/slope_blur.sbs) | 2 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [slope_blur.sbs/slope_blur_grayscale_2](../assets/sbs/slope_blur.sbs) | 2 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | -| [smart_auto_tile.sbs/pattern_find_edges_step](../assets/sbs/smart_auto_tile.sbs) | 4 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | +| [smart_auto_tile.sbs/pattern_find_edges_step](../assets/sbs/smart_auto_tile.sbs) | 4 | Yes | [Parity · 16 cases, 3,185,920 exact pixels](parity-fixes.md#tile-edge-masks-and-normalized-spline-distances) | | [splatter.sbs/splatter](../assets/sbs/splatter.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [splatter_circular.sbs/splatter_circular](../assets/sbs/splatter_circular.sbs) | 2 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [splatter_circular.sbs/splatter_circular_color](../assets/sbs/splatter_circular.sbs) | 2 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | @@ -547,7 +547,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [spline_tools.sbs/internal_tools/compute_spline_tangents](../assets/sbs/spline_tools.sbs) | 3 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [spline_tools.sbs/internal_tools/get_spline_point_data](../assets/sbs/spline_tools.sbs) | 1 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [spline_tools.sbs/internal_tools/modify_spline_property_sub](../assets/sbs/spline_tools.sbs) | 4 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | -| [spline_tools.sbs/internal_tools/normalize_spline_distance](../assets/sbs/spline_tools.sbs) | 1 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | +| [spline_tools.sbs/internal_tools/normalize_spline_distance](../assets/sbs/spline_tools.sbs) | 1 | Yes | [Parity · 16 cases, 52,480 exact pixels](parity-fixes.md#tile-edge-masks-and-normalized-spline-distances) | | [spline_tools.sbs/internal_tools/points_preview](../assets/sbs/spline_tools.sbs) | 3 | Yes | [Too hard: value-input case not verified](parity-fixes.md#remaining-differences) | | [spline_tools.sbs/internal_tools/resample_spline_data](../assets/sbs/spline_tools.sbs) | 3 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [spline_tools.sbs/internal_tools/scatter_splines_on_splines_preprocess](../assets/sbs/spline_tools.sbs) | 5 | Yes | [In progress · nonzero counts and images exact, zero count timed out](parity-fixes.md#spline-preprocessing-with-wired-counts) |