mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-28 17:19:17 +01:00
Measure tiled directional noise on original and reopened files
This commit is contained in:
1 parent
2a8f4ec8fa
commit
d6f8fa995f
2 files changed
+17
-3
No files matched your search
+16
-2
@@ -61,13 +61,27 @@ The first pass classifies all 546 roots: 166 Parity and 380 Too hard. These meas
|
||||
|
||||
### Half-precision inputs to Levels
|
||||
|
||||
Levels now converts a normalized integer image to half precision before applying the curve when the input and output have equal pixel dimensions and only one size is parameter-controlled. The curve runs in F32 and the output uses its declared storage precision. The untiled 16 × 32 Directional Noise 3 v2 graph at seed 731257 now matches **512/512 F16 pixels**, up from 99/512. The ordinary F16 save also improves from 99/512 to 512/512. Maximum error falls from .0009765625 to zero on one and eight reference processors. All four original storage formats match **2,048/2,048** at this setting. [Graph parameters and intermediate sizes](#a-recovered-rectangle-and-repeated-outputs-in-directional-noise-3-v2)
|
||||
Levels now converts a normalized integer image to half precision before applying the curve when the input and output have equal pixel dimensions and only one size is parameter-controlled. The curve runs in F32 and the output uses its declared storage precision. The untiled 16 × 32 Directional Noise 3 v2 graph at seed 731257 now matches **512/512 F16 pixels**, up from 99/512. The ordinary F16 save also improves from 99/512 to 512/512. Maximum error falls from .0009765625 to zero on one and eight reference processors. All four storage formats match **2,048/2,048** on the original and another **2,048/2,048** after opening the four normally saved files. [Graph parameters and intermediate sizes](#a-recovered-rectangle-and-repeated-outputs-in-directional-noise-3-v2)
|
||||
|
||||
To reproduce the precision change in isolation, fill a 16² U8 input with 58/255. Set input low to 7/32, mid to .5 and high to 15/32. On the input or on Levels, read an exposed float of .375 in the relative size function, then return the original exponent offset (0,0). The stored F16 output is .03466796875 when exactly one node reads the parameter and .0347900390625 when both or neither read it. The regression checks all four combinations using a shared cook cache.
|
||||
|
||||
The raw grayscale and RGBA comparisons cover U8, U16, F16 and F32 input storage, the original root curve, a linear curve, the default Levels curve and a clamped curve with different endpoints per channel. For the nonuniform inputs use channel c at (x,y) equal to (((73 + 4c)x + 29y + 13xy + 37j + 47c) mod 997)/996. Use j = 1 at 32 × 16, j = 2 at 16 × 32, and j = 3 for the 16 × 32 source at a 32² parent. Use seed 843173 + 19j. The 154 settings improved from **54,099/66,560** to **66,560/66,560** on each reference processor count. The largest channel error fell from .001953125 to zero. Eight ordinary saves across all four output formats match another **4,096/4,096** per processor count.
|
||||
|
||||
With the original tiling, the F16 Directional Noise 3 v2 graph matches 256/256 at 16² seed zero with default parameters. It also matches 2,048/2,048 at 32 × 64 seed 195109 with scale 1, disorder, disorder speed, anisotropy and angle random .1875, angle and anisotropy angle −.0625, tile offset (−.15625,.2421875) and non-square expansion enabled. At 32² seed 103867, the one- and eight-processor reference originals return .428466796875 at (18,16). Both ordinary reference reopens return .435302734375 there. The MaterialCraft original matches the latter file throughout and gives 1,023/1,024 against each original, maximum .0068359375. The 64 × 16 F16 setting at seed 42 and the 64 × 32 setting at seed 195062 still reach the pattern evaluator's work limit.
|
||||
The original tiling gives the following seven F16 comparisons. The two reference processor counts agree on each file. Each table cell gives whole pixels exact and maximum absolute error. The four completed originals improved from **1,407/7,424** to **7,423/7,424**. All four ordinary saves match **7,424/7,424**, maximum zero.
|
||||
|
||||
| Size · seed | Original before | Original after | Ordinary save after |
|
||||
|---|---:|---:|---:|
|
||||
| 16² · 0 | 56/256 · .0009765625 | 256/256 · 0 | 256/256 · 0 |
|
||||
| 64 × 16 · 42 | Work limit | Work limit | Work limit |
|
||||
| 32² · 103867 | 204/1,024 · .007080078125 | 1,023/1,024 · .0068359375 | 1,024/1,024 · 0 |
|
||||
| 64 × 32 · 195062 | Work limit | Work limit | Work limit |
|
||||
| 32 × 64 · 195109 | 354/2,048 · .0009765625 | 2,048/2,048 · 0 | 2,048/2,048 · 0 |
|
||||
| 64² · 411704 | Work limit | Work limit | Work limit |
|
||||
| 64² · 42 | 793/4,096 · .0009765625 | 4,096/4,096 · 0 | 4,096/4,096 · 0 |
|
||||
|
||||
Use defaults at 16² and the [recorded directional parameters](#reference-repeatability-across-31-open-noise-roots) at 32². The original reference returns .428466796875 at (18,16) there. Both reference reopens and both MaterialCraft file routes return .435302734375. For the other non-square settings and the 64² seed 411704 case, enable non-square expansion and set disorder, disorder speed, anisotropy and angle randomness to the same value. At 64 × 16 use scale 2, common value .03125, angle and anisotropy angle −.21875 and tile offset (−.3125,.37890625). At 64 × 32 and 64² seed 411704 use scale 3, common value .34375, both angles .09375 and tile offset (0,.10546875). At 32 × 64 use scale 1, common value .1875, both angles −.0625 and tile offset (−.15625,.2421875). At 64² seed 42 leave non-square expansion at default and use scale 2, disorder .37, speed .6, anisotropy .3, both angles .125, angle randomness .2 and tile offset (.17,.29).
|
||||
|
||||
Six F16 controls in Noise Clouds 2, Directional Noise 3, Dirt 2 and Dirt 5 match another 3,072/3,072 pixels against each processor count.
|
||||
|
||||
Histogram Select matches **5,120/5,120** across three input fields and all four output formats at both processor counts. Use the constant gray field at 16² with defaults. At 32 × 16 use position .71875, range .3125 and contrast .6875. At 16 × 32 use .375, .625 and .125. The ten recorded F16 Perlin Noise originals match **100,352/100,352** at both processor counts. Its previously configured 64 × 32 F16 save matches **2,048/2,048** on the recorded saved-file comparison. [Perlin Noise settings](#perlin-noise-and-plasma-across-rectangular-projections)
|
||||
|
||||
|
||||
@@ -491,7 +491,7 @@ Creased matches 10,947,840/10,947,840 pixels across 100 distinct settings throug
|
||||
| [noise_directional_noise_2.sbs/directional_noise_2](../assets/sbs/noise_directional_noise_2.sbs) | 0 | Yes | [In progress · 103,497/107,776 pixels in 11 comparable renders](parity-fixes.md#directional-noise-and-scratch-pattern-sources) |
|
||||
| [noise_directional_noise_2_v2.sbs/directional_noise_2](../assets/sbs/noise_directional_noise_2_v2.sbs) | 0 | No | [In progress · 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) |
|
||||
| [noise_directional_noise_3.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3.sbs) | 0 | Yes | [In progress · 52/60 originals and 10/12 archived ordinary saves rendered](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) |
|
||||
| [noise_directional_noise_3_v2.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3_v2.sbs) | 0 | No | [In progress · untiled rectangle exact in four formats, F16 fixed on original and ordinary save](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_3_v2.sbs/directional_noise_3](../assets/sbs/noise_directional_noise_3_v2.sbs) | 0 | No | [In progress · 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) |
|
||||
| [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) |
|
||||
| [noise_directional_scratches.sbs/directional_scratches](../assets/sbs/noise_directional_scratches.sbs) | 0 | Yes | [Parity · 86/86 settings and 2,571,520/2,571,520 pixels on each processor count, 64 exact saves](parity-fixes.md#directional-scratches-across-scaled-projection-windows) · [Earlier scaled generator comparisons](parity-fixes.md#scaled-scratch-and-gaussian-noise-and-spot-generators) |
|
||||
|
||||
Reference in new issue
Block a user