From 464eba254d31f79cbd8261999663ec8b93f09bb7 Mon Sep 17 00:00:00 2001 From: chasse20 Date: Sat, 28 Nov 2026 01:35:04 -0500 Subject: [PATCH] Isolate an additive wave crossing a 16-bit storage boundary --- docs/parity-fixes.md | 29 +++++++++++++++++++++++++++++ docs/sbs-root-nodes.md | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/parity-fixes.md b/docs/parity-fixes.md index 91c31147..dd690f68 100644 --- a/docs/parity-fixes.md +++ b/docs/parity-fixes.md @@ -139,6 +139,35 @@ On a separate copy of the configured 64 × 16 graph, add output bridges to the t For the 8 × 2 and 16 × 4 sources, the listed values come from the pixel containing the same normalized position, (2,1) and (4,3) respectively. +### An additive wave at a 16-bit storage boundary + +Use the 64 × 16 Directional Noise 3 setting with seed 42 and the 64 × 32 setting with seed 195031. For each selected format, collect four original renders on one processor and four on eight, then reopen an ordinary save on each processor count. At 64 × 32 every local U16 and F32 word occurs in at least one of the ten corresponding reference returns. At 64 × 16 in F32, one local value falls outside all ten returns. At (19, 14) MaterialCraft gives .5435512066 and all ten reference returns give .5435265899. [Full settings and file routes](#seeded-placement-in-the-remaining-directional-noise-3-rectangles) + +Add outputs to the three wave patterns and the two blends in the configured 64 × 16 graph. Keep the original normalization and storage. The first two patterns match all 16 and 64 U16 pixels, and the first blend matches all 1,024. The third pattern gives 20,789 at (19, 14) in MaterialCraft and 20,788 in both reference captures. The second blend carries that difference to 39,704 and 39,703. The final Levels output retains the measured F32 difference. + +Set only the third pattern to F32 and read the draws before integer storage. Compare the original additive setting with maximum blending on its wave quadrants. Both processor counts give the following whole-image comparisons. + +| Output at 64 × 16 | Additive exact · max | Maximum blending exact · max | +|---|---:|---:| +| Third pattern | 326/1,024 · 1.78813934e-07 | 1,024/1,024 · 0 | +| Following blend | 627/1,024 · 1.78813934e-07 | 1,024/1,024 · 0 | +| Levels | 637/1,024 · 3.57627869e-07 | 1,024/1,024 · 0 | + +At (19, 14) the additive pattern gives .317213088274 in MaterialCraft and .317212998867 in both reference captures. Flooring these values at 20 fractional bits gives 332,622 and 332,621. Converting each application’s F32 values through the normalized U16 store reproduces its own **1,024/1,024** original U16 words. The difference is already present in the floating-point sum. + +Connect the third pattern directly to the output, keeping its graph settings, and cap only the outer iteration count. Both reference processor counts agree on every pixel of each reduced case. + +| Emitted trees | F32 exact · maximum | +|---:|---:| +| 1 | 959/1,024 · 1.1920929e-07 | +| 2 | 952/1,024 · 1.1920929e-07 | +| 4 | 911/1,024 · 2.68220901e-07 | +| 8 | 764/1,024 · 1.78813934e-07 | + +Keep one emitted tree and follow quadrant slots 1, 0, 1 to the next fork. All four child subtrees measured individually match 1,024/1,024. All sixteen grandchildren also match individually, **16,384/16,384**. With two child slots connected, the six pairs together give **6,137/6,144 · 3.7252903e-09**. With three connected, the four combinations give **4,089/4,096 · 7.4505806e-09**. Both processor counts give these results. + +Replaying each child’s measured contributions as a contiguous group fails to reproduce the reference in four of six pairs and three of four triples, even after trying every child order. The same individual stamp contributions, grouped one level deeper, admit six possible relative orders that reproduce all 16 affected positions in every pair. These settings narrow the draw-order discrepancy. Directional Noise 3 remains in progress. + ### Three larger rectangles in Directional Noise 3 v2 The 512 × 128, 128 × 512 and 128 × 64 settings that hit the earlier work limit now render in U16 and F32. The 512 × 128 F32 output already matches both reference captures in revision `65998c9`. Each local file reopened after an ordinary save reproduces its original pixels. [Earlier precision settings and file routes](#seven-tiled-half-precision-settings-in-directional-noise-3-v2) diff --git a/docs/sbs-root-nodes.md b/docs/sbs-root-nodes.md index 0739f094..b1111b18 100644 --- a/docs/sbs-root-nodes.md +++ b/docs/sbs-root-nodes.md @@ -496,7 +496,7 @@ Creased matches 10,947,840/10,947,840 pixels across 100 distinct settings throug | [noise_directional_noise_1_v2.sbs/directional_noise_1](../assets/sbs/noise_directional_noise_1_v2.sbs) | 0 | No | [In progress · earlier stages and maximum-blend control exact at 16² and 32², additive differences remain](parity-fixes.md#addition-and-maximum-blending-in-directional-noise-1-v2) · [Earlier comparison · 60/60 originals and 12/12 saves render, 626,333/734,464 original pixels on one processor and 633,052 on eight](parity-fixes.md#complete-render-coverage-in-the-second-version-of-directional-noise-1) · [Earlier comparison · 56/60 whole settings rendered, 618,970/726,272 pixels on one processor, 625,683 on eight](parity-fixes.md#sixty-whole-settings-for-three-directional-and-dirt-noise-packages) · [Earlier comparison · 133,251/142,592 pixels in 18 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [6/6 tiled settings render, 3 exact on one processor](parity-fixes.md#tiled-outputs-of-ten-noise-roots-and-the-full-wood-fibers-2-series) · [8/8 untiled settings render](parity-fixes.md#untiled-spots-clouds-directional-noise-and-dirt-at-two-rectangular-sizes) · [Untiled F32 original and ordinary save](parity-fixes.md#seeded-quadrant-properties-with-a-live-tint-multiplier) · [Five F32 returns per processor count at 16²](parity-fixes.md#repeated-f32-captures-of-28-noise-roots) | | [noise_directional_noise_2.sbs/directional_noise_2](../assets/sbs/noise_directional_noise_2.sbs) | 0 | Yes | [In progress · 60/60 original settings and 12/12 archived reopens rendered](parity-fixes.md#all-sixty-original-directional-noise-2-settings) · [Additive wave overlap controls](parity-fixes.md#additive-wave-overlaps-in-directional-noise-2) · [Two-branch F32 words and configured saves](parity-fixes.md#a-second-branch-beside-a-wrapped-wave) · [Earlier comparison · 103,497/107,776 pixels in 11 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [Five F32 returns per processor count at 16²](parity-fixes.md#repeated-f32-captures-of-28-noise-roots) · [Single-tree fork order and six exact 16² sibling pairs](parity-fixes.md#drawing-a-shared-quadrant-path-with-its-last-child) · [Nine repeated trees and the draw batch boundary](parity-fixes.md#an-unfinished-draw-batch-across-repeated-quadrant-pairs) | | [noise_directional_noise_2_v2.sbs/directional_noise_2](../assets/sbs/noise_directional_noise_2_v2.sbs) | 0 | No | [In progress · 60/60 original settings and 12/12 archived reopens rendered](parity-fixes.md#whole-images-for-sixty-directional-noise-2-v2-settings) · [Earlier comparison · 64² across four formats and configured saves](parity-fixes.md#a-tiled-square-in-directional-noise-2-v2) · [Earlier comparison · all four tiled 64 × 32 formats and saves render, F32 differences measured](parity-fixes.md#floored-modulo-in-seeded-drawing-properties) · [Earlier comparison · 105,116/107,776 pixels in 11 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [2/6 tiled settings render, 0 exact on one processor](parity-fixes.md#tiled-outputs-of-ten-noise-roots-and-the-full-wood-fibers-2-series) · [8/8 untiled settings render](parity-fixes.md#untiled-spots-clouds-directional-noise-and-dirt-at-two-rectangular-sizes) · [Untiled original and ordinary save, remaining tiled F32 limit](parity-fixes.md#seeded-quadrant-properties-with-a-live-tint-multiplier) · [Five F32 returns per processor count at 16²](parity-fixes.md#repeated-f32-captures-of-28-noise-roots) · [Two individual waves fixed by shared floating-point modulo](parity-fixes.md#floating-point-modulo-at-a-rounded-period) · [All 60 originals and 12 archived reopens after the modulo correction](parity-fixes.md#all-directional-noise-2-v2-settings-after-the-modulo-correction) | -| [noise_directional_noise_3.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3.sbs) | 0 | Yes | [In progress · 60/60 originals and 12/12 archived ordinary saves rendered](parity-fixes.md#seeded-placement-in-the-remaining-directional-noise-3-rectangles) · [Earlier 52 originals and ten archived reopens](parity-fixes.md#drawing-parents-and-terminal-children-in-directional-noise-3) · [Earlier 44/60 settings and four ordinary saves](parity-fixes.md#accounting-for-a-streamed-draw-and-its-tile-copies) · [Earlier comparison · 40/60 settings rendered, 407,151/407,808 exact pixels on one and 407,274 on eight](parity-fixes.md#rectangular-and-additional-seed-coverage-in-directional-noise-3) · [First 19 settings · 17/19 established originals render, 141,209/141,568 pixels on one and 141,288 on eight](parity-fixes.md#streaming-equal-ranked-analytic-stamps-through-one-output-image) · [Earlier comparison · 15/19 original settings have rendered, eight additional settings and three ordinary saves compared](parity-fixes.md#reused-properties-across-adjacent-groups-of-terminal-quadrants) · [Earlier comparison · 7/19 whole renders completed, 7,168/7,424 exact pixels](parity-fixes.md#discarding-pattern-stamps-that-miss-every-output-sample) · [Original stage comparisons](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [Five F32 returns per processor count at 32²](parity-fixes.md#repeated-f32-captures-of-28-noise-roots) | +| [noise_directional_noise_3.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3.sbs) | 0 | Yes | [In progress · 60/60 originals and 12/12 archived ordinary saves rendered](parity-fixes.md#seeded-placement-in-the-remaining-directional-noise-3-rectangles) · [Earlier 52 originals and ten archived reopens](parity-fixes.md#drawing-parents-and-terminal-children-in-directional-noise-3) · [Earlier 44/60 settings and four ordinary saves](parity-fixes.md#accounting-for-a-streamed-draw-and-its-tile-copies) · [Earlier comparison · 40/60 settings rendered, 407,151/407,808 exact pixels on one and 407,274 on eight](parity-fixes.md#rectangular-and-additional-seed-coverage-in-directional-noise-3) · [First 19 settings · 17/19 established originals render, 141,209/141,568 pixels on one and 141,288 on eight](parity-fixes.md#streaming-equal-ranked-analytic-stamps-through-one-output-image) · [Earlier comparison · 15/19 original settings have rendered, eight additional settings and three ordinary saves compared](parity-fixes.md#reused-properties-across-adjacent-groups-of-terminal-quadrants) · [Earlier comparison · 7/19 whole renders completed, 7,168/7,424 exact pixels](parity-fixes.md#discarding-pattern-stamps-that-miss-every-output-sample) · [Original stage comparisons](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [Five F32 returns per processor count at 32²](parity-fixes.md#repeated-f32-captures-of-28-noise-roots) · [16-bit storage boundary and sixteen isolated wave branches](parity-fixes.md#an-additive-wave-at-a-16-bit-storage-boundary) | | [noise_directional_noise_3_v2.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3_v2.sbs) | 0 | No | [In progress · three larger F32 rectangles exact on both processor counts](parity-fixes.md#three-larger-rectangles-in-directional-noise-3-v2) · [Seven tiled F16 settings and 14,592/14,592 on ordinary reopens](parity-fixes.md#seven-tiled-half-precision-settings-in-directional-noise-3-v2) · [Earlier comparison · 64 × 16 at seed 42 exact in four formats on both file routes](parity-fixes.md#rectangular-clouds-and-directional-noise-graphs-with-seeded-quadrant-offsets) · [Earlier comparison · untiled rectangle exact in four formats, four tiled F16 saves 7,424/7,424, three settings reach the work limit](parity-fixes.md#half-precision-inputs-to-levels) · [Earlier rectangle and tiled stage comparisons](parity-fixes.md#a-recovered-rectangle-and-repeated-outputs-in-directional-noise-3-v2) · [Earlier 19-setting panel](parity-fixes.md#discarding-pattern-stamps-that-miss-every-output-sample) · [Original stage comparisons](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [2/6 tiled settings render, 2 exact on one processor](parity-fixes.md#tiled-outputs-of-ten-noise-roots-and-the-full-wood-fibers-2-series) · [0/8 untiled settings render](parity-fixes.md#untiled-spots-clouds-directional-noise-and-dirt-at-two-rectangular-sizes) · [Untiled F32 limits at both rectangles](parity-fixes.md#seeded-quadrant-properties-with-a-live-tint-multiplier) | | [noise_directional_noise_4.sbs/directional_noise_4](../assets/sbs/noise_directional_noise_4.sbs) | 0 | Yes | [In progress · 134,015/144,640 pixels in 19 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [Five F32 returns per processor count at 16²](parity-fixes.md#repeated-f32-captures-of-28-noise-roots) | | [noise_directional_noise_4_v2.sbs/directional_noise_4](../assets/sbs/noise_directional_noise_4_v2.sbs) | 0 | No | [In progress · 134,664/144,640 pixels in 19 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) · [Five F32 returns per processor count at 16²](parity-fixes.md#repeated-f32-captures-of-28-noise-roots) |