Isolate retained input filtering after live pattern edits

This commit is contained in:
chasse20 committed 2026-11-27 07:29:59 -05:00
1 parent f4a23f3b19
commit febbfc28f3
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -114,6 +114,14 @@ For the outstanding live edit, keep the 128² pattern connected while removing t
For a standalone reproduction, generate 128² byte fields `(13x + 7y + 3xy) mod 253` and `(31x + 19y + 5xy) mod 251`. Connect the first to a centered half-size image stamp, with unit opacity and a black background. At 32² F32, adding the second field as background while retaining the pattern gives 833/1,024 exact pixels with automatic filtering, maximum .001968503. Removing it gives 833/1,024, maximum .001968443. Rebinding the pattern or changing to 16² and back restores all 1,024. Explicit bilinear matches 12,544/12,544 across the 13 settings on one processor, eight and after ordinary reopen. Both tile roots retain their open live-edit comparison.
### Sampling a retained input after an editor change
Use the two 128² procedural byte fields and half-size image stamp above. Give the image input an absolute 32² or 32 × 64 output. Compare the direct connection with an identity Levels node that inherits the input dimensions and stores U8. For each bridge, set the stamp output to 32², 32 × 64, 64 × 32 and 64² in turn. At each size render F32, change only the stamp precision to U16, then return to F32. Keep the graph extent and binding in place during both precision changes.
The direct reference result agrees with the base-level sample on the first render at each new extent and with the full mip chain after each precision change. Across 24 comparisons, these two paths account for **36,864/36,864 F32 pixels** and **18,432/18,432 U16 pixels**, maximum zero on one and eight processors. With the 32 × 64 bridge and 64 × 32 output, continuing to sample the base level on the second render gives 1,538/2,048 U16 pixels, maximum 23,644 levels. Temporarily setting a rectangular output to a square and back during a precision change starts a new extent and changes the result. Reapplying the same precision at the same extent before any other edit retained the initial 32² F32 output in the square control.
Selecting between the two sampling paths offline also reproduces all 484,864 pixels of the earlier 221 sequential root settings. MaterialCraft's ordinary editor preview still uses the fresh-render path for both live background edits. The two roots remain in progress.
### Integer assignments read by pattern seeds
The two roots in `tile_random.sbs` each match **142,592/142,592 pixels in all 19 established settings** on one reference processor, on eight and after reopening an ordinary MaterialCraft save. The previous grayscale and color totals were 111,207 and 111,194. The same 1,702,705-byte save was reproduced with the tested build. Both roots also match at 32² with a freshly connected image in the edit-order control described below. [Previous comparison](#returned-vectors-in-pattern-properties)
+1 -1
View File
@@ -43,7 +43,7 @@ Six upstream filters now match 27,648/27,648 original and 27,648/27,648 reopened
At least **50 of the 54 open roots** have two different reference outputs for the same graph settings on one and eight processors. This includes the first eleven open roots, 31 later noise roots and eight moisture, caustic, scratch and fiber roots. Two 64² settings also varied across repeated eight-processor reads at the same seed. MaterialCraft still misses one invariant pixel in that moisture setting and two in the fiber setting. [31-root comparison by format](parity-fixes.md#reference-repeatability-across-31-open-noise-roots) · [Eight further roots and fixed-processor repeats](parity-fixes.md#reference-variation-in-eight-further-roots)
The two roots in `tile_random.sbs` match all 484,864 pixels across 221 freshly bound settings. All 32 configured files reopened directly with 106,496/106,496 pixels exact on one and eight reference processors. Four editor-bound gray and color inputs also survive a file handoff with 1,024/1,024 U8 pixels exact. Keeping the pattern connected while changing the background still gives a different result in one setting per root. [Per-format counts, filter controls and exact edit sequence](parity-fixes.md#saved-image-inputs-and-automatic-filtering-in-tile-random)
The two roots in `tile_random.sbs` match all 484,864 pixels across 221 freshly bound settings. All 32 configured files reopened directly with 106,496/106,496 pixels exact on one and eight reference processors. Four editor-bound gray and color inputs also survive a file handoff with 1,024/1,024 U8 pixels exact. Keeping the pattern connected while changing the background still gives a different result in one setting per root. At fixed stamp and bridge dimensions, 24 comparisons isolate when the reference preview starts using the retained input’s full mip chain. [Retained input comparisons](parity-fixes.md#sampling-a-retained-input-after-an-editor-change) [Per-format counts, filter controls and exact edit sequence](parity-fixes.md#saved-image-inputs-and-automatic-filtering-in-tile-random)
The two roots in `pattern_tile_random.sbs` match all 425,216 grayscale pixels in 104 settings and all 728,832 color pixels in 179 settings. Each output format matched on one processor, eight processors and ordinary reopen. [Whole-root settings and the shared pattern property correction](parity-fixes.md#returned-vectors-in-pattern-properties)