diff --git a/docs/parity-fixes.md b/docs/parity-fixes.md index b4a3b26e..89cc10f4 100644 --- a/docs/parity-fixes.md +++ b/docs/parity-fixes.md @@ -247,6 +247,27 @@ Literal-only pixel graphs at 16², seed 23, give 512/768 exact pixels for each l The shared-lookup ridged root still matches 5,160/16,384 at changed roughness in F32, maximum 1.78813934e−7. Its one-octave .7 control still matches 1,847/4,096, maximum 2.38418579e−7. For positive normal x on the signed field, the reference's general power agrees with exp(y×ln(x)) on all 32,614 pixels. On .7 with exponent 1 it returns `3f333334`. Further work on general power and natural exponential is tracked with the [octave controls](#ridged-noise-octave-isolation). +### Color temperature, range reductions, sky parameters and polygon paths + +The four roots below match every recorded case. Both the first-pass defaults and the [four-format and independent comparisons](#four-format-inventory-comparison) were replayed with their original procedural inputs. Typed results include a float32 bit comparison for every component. + +| Root | Cases | Exact / compared | Maximum absolute error | +|---|---:|---:|---:| +| Color temperature adjustment | 18 | 171,264/171,264 RGBA pixels | 0 | +| Min/max | 25 per output | 50/50 float outputs | 0 | +| Sky `Impl/GetOneParam` | 25 | 25/25 float3 outputs | 0 | +| Polygon paths | 19 | 5,120/5,120 RGBA buffer pixels | 0 | + +For **color temperature**, repeat the nine input sizes, seeds and output formats under [color burn and color dodge](#color-burn-and-color-dodge) using only the foreground input. The signed input uses the same RGB and alpha scaling. Use temperature −.5625, magenta/green .3125 and color space 1 in the 16², 128² and signed cases. Use .375, −.1875 and color space 0 in the others. The 32² byte endpoint field sets blue to 0 where `(x+3y) mod 4=0` and to 255 elsewhere. + +For **min/max and the sky parameter**, generate a byte field `V=(17x+37y+3xy+19) mod 256`. The scalar input takes V. For the sky parameter, set RGBA to `(V,(11x−13y+17) mod 256,(43x+5y+61) mod 256,42×((7x+11y+17) mod 7))`. Cook 16²/seed 59, four formats at 64²/73, 128²/211, 32×16 input at 32²/113, and a signed float input at 32²/237. Use F32 outside the four-format sweep. For the last field, divide byte channels by 79 and subtract .6875. Use three equal RGB channels and alpha one for the scalar float input. Sky controls use albedo .3125, elevation .1875 at 16² and .8125 elsewhere, turbidity 3.25 at 128² and 5.5 elsewhere, and parameter index 1 at 16² and 6 elsewhere. + +Eight additional byte ranges use `V=((7x+13y+3xy) mod (13+5j))+19j+11`, with `j=0..7`. Use sizes (16,32,64,64,64,128,32,16), seeds (97,127,211,317,41,53,181,149), and cycle the four output formats. For j=3 use the constant byte 83. For j=4 use 113 throughout with 49 in the upper-left corner and 171 in the lower-right corner. The constant's two reported values are .32549017667770386 and .32549020648002625 in both apps. For the sky lookup use RGBA `(V,(3x+11y+17j) mod 256,(27x+5y+19j) mod 256,255)`, with elevation `(j+1)/9`, turbidity `1.125+.875j`, albedo `j/8` and parameter index j. + +For **polygon paths**, vary the side count, requested parent size and seed as (3,16,73), (4,32,53), (5,128,317), (8,64,7), (11,128,211), (17,64,127). Use RGBA32F and compare the whole buffer. Seventeen sides produces a 32×16 buffer and the other five produce 16×16. Seven sides at 64²/seed 199 also matches at U8, U16, F16 and F32. + +The **nonuniform color rotation** and **panorama rotation** roots still differ on a new 128² input. Each passed the four original cases and five inventory comparisons. In the eight additional size/format cases above, color rotation matches 35,067/35,072 pixels, maximum .00257879496. Panorama rotation matches 35,070/35,072, maximum .00306707621. All seven smaller cases are exact. For color rotation use the same byte field and channel formulas with t=1,2,3 in place of the channel offsets' multipliers (19t,17t,61t,17t) for the rotation map, pivot map and input, respectively. Set angle multiplier to −.6875 at 16² and .78125 elsewhere, angle offset to .09375 at 128² and −.1875 elsewhere, and pivot to (.8125,.21875). For panorama use the sky color field, rotation .3125 at 16² and −.1875 elsewhere, direction −.34375 at 128² and .5625 elsewhere, and pre/post pole rotations .28125 and −.40625. + ### Color burn and color dodge Color burn and color dodge each match **171,264/171,264 RGBA pixels in 18 cases**, maximum error zero. Each root passed the four original 128²/256² cases (114,688 pixels), the [four-format and independent comparisons](#four-format-inventory-comparison) (17,408), and nine additional cases (39,168). In the independent 32² color-burn field, four pixels had blue foreground 0 and blue background 255. The divide stage differed by 255 levels at precisely those pixels. In color dodge the final switch previously matched 524/1,024 on that field with a maximum of 5.96046448e−8. diff --git a/docs/sbs-root-nodes.md b/docs/sbs-root-nodes.md index 044960dc..3f2419a8 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 **208 Parity**, **23 In progress** and **315 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 **212 Parity**, **25 In progress** and **309 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) @@ -133,7 +133,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [color_space_conversion.sbs/srgb_to_acescg](../assets/sbs/color_space_conversion.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [color_space_conversion.sbs/srgb_to_linear_srgb](../assets/sbs/color_space_conversion.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [color_space_conversion.sbs/srgb_to_linear_srgb_grayscale](../assets/sbs/color_space_conversion.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | -| [color_temperature_adjustment.sbs/color_temperature_adjustment](../assets/sbs/color_temperature_adjustment.sbs) | 1 | No | [Too hard: 2 pixels remain](parity-fixes.md#remaining-differences) | +| [color_temperature_adjustment.sbs/color_temperature_adjustment](../assets/sbs/color_temperature_adjustment.sbs) | 1 | No | [Parity · 18 cases, 171,264 exact RGBA pixels](parity-fixes.md#color-temperature-range-reductions-sky-parameters-and-polygon-paths) | | [color_to_mask.sbs/color_to_mask](../assets/sbs/color_to_mask.sbs) | 1 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [color_to_mask_v2.sbs/color_to_mask](../assets/sbs/color_to_mask_v2.sbs) | 2 | No | [Too hard: 1 pixel remains](parity-fixes.md#remaining-differences) | | [composite.sbs/composite/background/uniform_color_float3](../assets/sbs/composite.sbs) | 0 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) | @@ -270,7 +270,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [messy_fibers_3.sbs/messy_fibers_3](../assets/sbs/messy_fibers_3.sbs) | 0 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [messy_fibers_4.sbs/messy_fibers_4](../assets/sbs/messy_fibers_4.sbs) | 0 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [microscope_view.sbs/microscope_view](../assets/sbs/microscope_view.sbs) | 0 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | -| [min_max.sbs/min_max](../assets/sbs/min_max.sbs) | 1 | No | [Too hard: remaining typed-value difference](parity-fixes.md#remaining-differences) | +| [min_max.sbs/min_max](../assets/sbs/min_max.sbs) | 1 | No | [Parity · both scalar outputs exact in 25 cases](parity-fixes.md#color-temperature-range-reductions-sky-parameters-and-polygon-paths) | | [moisture_noise.sbs/moisture_noise](../assets/sbs/moisture_noise.sbs) | 0 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [mosaic.sbs/mosaic](../assets/sbs/mosaic.sbs) | 2 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [mosaic.sbs/mosaic_grayscale](../assets/sbs/mosaic.sbs) | 2 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | @@ -357,7 +357,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [non_square_transform.sbs/non_square_transform_greyscale](../assets/sbs/non_square_transform.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [non_uniform_blur.sbs/non_uniform_blur_grayscale_sample](../assets/sbs/non_uniform_blur.sbs) | 2 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [non_uniform_blur.sbs/non_uniform_blur_sample](../assets/sbs/non_uniform_blur.sbs) | 2 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | -| [non_uniform_rotation.sbs/non_uniform_rotation_color](../assets/sbs/non_uniform_rotation.sbs) | 3 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | +| [non_uniform_rotation.sbs/non_uniform_rotation_color](../assets/sbs/non_uniform_rotation.sbs) | 3 | No | [In progress · 5 RGBA32F pixels differ on the new 128² field](parity-fixes.md#color-temperature-range-reductions-sky-parameters-and-polygon-paths) | | [non_uniform_rotation.sbs/non_uniform_rotation_grayscale](../assets/sbs/non_uniform_rotation.sbs) | 3 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [normal_color.sbs/normal_color](../assets/sbs/normal_color.sbs) | 0 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [normal_intensity.sbs/normal_intensity](../assets/sbs/normal_intensity.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | @@ -375,9 +375,9 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [panorama_gradients.sbs/panorama_gradient_linear](../assets/sbs/panorama_gradients.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [panorama_nadir_extract.sbs/nadir_extract](../assets/sbs/panorama_nadir_extract.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [panorama_nadir_patch.sbs/panorama_nadir_patch](../assets/sbs/panorama_nadir_patch.sbs) | 2 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | -| [panorama_physical_sun_sky.sbs/Impl/GetOneParam](../assets/sbs/panorama_physical_sun_sky.sbs) | 1 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | +| [panorama_physical_sun_sky.sbs/Impl/GetOneParam](../assets/sbs/panorama_physical_sun_sky.sbs) | 1 | Yes | [Parity · 25 exact float3 outputs](parity-fixes.md#color-temperature-range-reductions-sky-parameters-and-polygon-paths) | | [panorama_position.sbs/panorama_3d_position](../assets/sbs/panorama_position.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | -| [panorama_rotation.sbs/panorama_rotation](../assets/sbs/panorama_rotation.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | +| [panorama_rotation.sbs/panorama_rotation](../assets/sbs/panorama_rotation.sbs) | 1 | No | [In progress · 2 RGBA32F pixels differ on the new 128² field](parity-fixes.md#color-temperature-range-reductions-sky-parameters-and-polygon-paths) | | [panorama_shape.sbs/panorama_line_light](../assets/sbs/panorama_shape.sbs) | 3 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [panorama_shape.sbs/panorama_plane_light](../assets/sbs/panorama_shape.sbs) | 3 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [panorama_shape.sbs/panorama_shape](../assets/sbs/panorama_shape.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | @@ -394,7 +394,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [paths_tools.sbs/Impl/mask_to_facets](../assets/sbs/paths_tools.sbs) | 1 | Yes | [Parity · 17 cases, 52,736 exact pixels](parity-fixes.md#facet-masks-and-stripe-boundaries) | | [paths_tools.sbs/Impl/sort_by_blue](../assets/sbs/paths_tools.sbs) | 1 | Yes | [Parity · 14 cases, 25,856 exact pixels](parity-fixes.md#skipped-loops-and-path-buffers) | | [paths_tools.sbs/Utils/RelativeToInputPP](../assets/sbs/paths_tools.sbs) | 1 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) | -| [paths_tools.sbs/paths_polygon](../assets/sbs/paths_tools.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | +| [paths_tools.sbs/paths_polygon](../assets/sbs/paths_tools.sbs) | 0 | No | [Parity · 19 polygon buffers, 5,120 exact pixels](parity-fixes.md#color-temperature-range-reductions-sky-parameters-and-polygon-paths) | | [paths_tools.sbs/paths_trace](../assets/sbs/paths_tools.sbs) | 2 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [paths_tools.sbs/vertex_processor](../assets/sbs/paths_tools.sbs) | 9 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) | | [paths_tools.sbs/vertex_processor_simple](../assets/sbs/paths_tools.sbs) | 5 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |