mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-30 10:04:02 +01:00
Verify normal maps, panorama shapes and cube buffers
This commit is contained in:
1 parent
39b8546ad3
commit
67b6e3bacf
2 files changed
+45
-11
No files matched your search
@@ -253,6 +253,40 @@ 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).
|
||||
|
||||
### Normal maps, panoramas and primitive shapes
|
||||
|
||||
| Root | Renders | Exact pixels / compared | Maximum U8 / U16 levels | Maximum F16 / F32 error |
|
||||
|---|---:|---:|---:|---:|
|
||||
| Normalize normal map | 18 | 171,264/171,264 | 0 / 0 | 0 / 0 |
|
||||
| Transform normal map | 18 | 171,264/171,264 | 0 / 0 | 0 / 0 |
|
||||
| Panoramic 3D position | 18 | 171,264/171,264 | 0 / 0 | 0 / 0 |
|
||||
| Panorama line light | 18 | 171,207/171,264 | 0 / 0 | 2.38418579e-07 / 7.86781311e-06 |
|
||||
| Panorama shape | 18 | 171,264/171,264 | 0 / 0 | 0 / 0 |
|
||||
| Panorama shape 2 | 18 | 171,264/171,264 | 0 / 0 | 0 / 0 |
|
||||
| Straighten panorama horizon | 18 | 171,231/171,264 | 1 / 204 | 0.0029296875 / 0.00311285257 |
|
||||
| Cube | 18 | 171,264/171,264 | 0 / 0 | 0 / 0 |
|
||||
| Cube position, normal, depth and UV | 60 | 685,056/685,056 | 0 / 0 | 0 / 0 |
|
||||
| Hemisphere | 18 | 171,264/171,264 | 0 / 0 | 0 / 0 |
|
||||
|
||||
The totals include the original defaults, original changed settings, four requested output formats, the independent 32² screen and nine additional renders per output. For the new fields let u and v be texel-center coordinates. In each input, number pins j in identifier order and channels c from zero. Use H=((37x+41y+7xy+53j) mod 509)/508. For ordinary color inputs add 61c+5xc to the numerator before the modulus. Gray inputs use H. For normal inputs use (.5+.5a,.5+.5b,.5+.5√(1−a²−b²),.25+.75H), with a=.625(2u−1) and b=.625(2v−1). The transform's normal input uses j=−1. Position inputs use (u,v,.25+.5H,1).
|
||||
|
||||
Use F32 inputs and the following output settings. Use defaults at 16²/seed 43. Use A at 64²/157 in U8, U16, F16 and F32. Use B at 128² F32/293 and with 32×16 inputs at 32² F32/599. Use C at 32² F32/463 with every input value v replaced by 2.5v−.75. Repeat A at 64² F32/751. Generators use the same sizes and seeds. Let k equal 1, 2 and 3 for A, B and C.
|
||||
|
||||
| Control | A, B and C |
|
||||
|---|---|
|
||||
| Normalization | No exposed numeric control. |
|
||||
| Normal transform | Matrix (.8125,.34375,−.1875,1.125) for A/C and (0,−.75,1.25,0) for B. Offset (.1875,−.3125) for A/B and (−.5,.0625) for C. Normal format 1 only in B. Disable scale/skew compensation only in C. |
|
||||
| Panoramic position and line light | Up vector 1 only in B. For the light, position mode 1 only in B, grid enabled only in C, UV endpoints (.1875,.25) and (.71875,.4375), height .625, distance 1.375, color mode k mod 3, temperature 4375 and exposure 1.25. |
|
||||
| Panorama shape | Same matrices and offsets as the normal transform. Shape k mod 3, color (.75,.34375,.625), intensity 1.375, soft borders .1875, hotspot size .375 at (.25,.6875). Disable background only in C and texture only in B. |
|
||||
| Panorama shape 2 | Same matrices, offsets, shape and color. Use color mode k mod 3, temperature 4375, exposure 1.25 and hardness .6875. Use image gamma 1 only in B and disable background only in C. |
|
||||
| Straighten horizon | Points (.1875,.34375) and (.71875,.59375). Horizontal rotation .0625 in B and −.1875 in A/C. Disable horizon correction only in C. |
|
||||
| Cube and four cube buffers | Orientation (.0625k,−.1875), size (.625,.875,1.125). Scale .34375 in B and .5 in A/C. Disable non-square expansion only in C. |
|
||||
| Hemisphere | Scale .625 in B and .875 in A/C, size (.6875,1.125), rotation .09375k. Disable non-square expansion only in C. |
|
||||
|
||||
The four 64² F32 cube buffers contain 3,187 distinct position tuples, four normals, 2,969 depths and 3,187 UV tuples. The transformed normal map contains 4,094 distinct tuples. All four stored components count toward an RGBA pixel match.
|
||||
|
||||
The line-light differences begin in its pixel processor. On the signed field, pixel (6,2) stores 1.98653376 in the three color channels in the reference and 1.98652911 in MaterialCraft. For the horizon, the input matches. Its pixel processor differs at two texels in the 64² A case. Pixel (39,49) has reference red .756740689 and MaterialCraft red .753627837. Both roots remain in progress.
|
||||
|
||||
### Quarter-turn directional blur
|
||||
|
||||
Anisotropic noise matches **171,264/171,264 grayscale pixels in 18 renders**, maximum error zero. The [noise settings and seeds](#color-conversion-gradient-height-and-histogram-controls) include the rotated 128² and 32² cases. At 128² the directional stage improved from 15,226/16,384 to 16,384/16,384. Every sampled stage matches on the 64², 128² and rectangular-input controls. The final outputs comprise 122,880 U16 pixels, 32,000 F32 pixels and 8,192 each U8 and F16.
|
||||
|
||||
+11
-11
@@ -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 **276 Parity**, **34 In progress** and **236 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 **284 Parity**, **36 In progress** and **226 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)
|
||||
|
||||
@@ -369,12 +369,12 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard
|
||||
| [normal_intensity.sbs/normal_intensity](../assets/sbs/normal_intensity.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [normal_invert.sbs/normal_invert](../assets/sbs/normal_invert.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [normal_mapper.sbs/normal_mapper](../assets/sbs/normal_mapper.sbs) | 1 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [normal_normalise.sbs/normal_normalise](../assets/sbs/normal_normalise.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [normal_normalise.sbs/normal_normalise](../assets/sbs/normal_normalise.sbs) | 1 | No | [Parity · 18 renders, all 171,264 pixels exact](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [normal_sobel.sbs/normal_sobel](../assets/sbs/normal_sobel.sbs) | 1 | Yes | [In progress · 171,032/171,264 exact pixels](parity-fixes.md#segment-mapping-and-normal-graph-rechecks) |
|
||||
| [normal_sobel.sbs/normal_sobel_2](../assets/sbs/normal_sobel.sbs) | 1 | No | [Parity · 171,264 exact pixels in 18 renders](parity-fixes.md#segment-mapping-and-normal-graph-rechecks) |
|
||||
| [normal_to_height_2.sbs/normal_to_height](../assets/sbs/normal_to_height_2.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [normal_to_height_hq.sbs/base_algorithm_height_distance](../assets/sbs/normal_to_height_hq.sbs) | 1 | Yes | [Parity · 13 cases, 163,840 exact pixels](parity-fixes.md#height-distance-texture-mapping-skew-and-weave) |
|
||||
| [normal_transform.sbs/normal_transform](../assets/sbs/normal_transform.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [normal_transform.sbs/normal_transform](../assets/sbs/normal_transform.sbs) | 1 | No | [Parity · 18 renders, all 171,264 pixels exact](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [normal_uncombine.sbs/get_intensity_iteration](../assets/sbs/normal_uncombine.sbs) | 2 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [normal_vector_rotation.sbs/normal_vector_rotation](../assets/sbs/normal_vector_rotation.sbs) | 2 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [panorama_gradients.sbs/panorama_gradient_2_points](../assets/sbs/panorama_gradients.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
@@ -382,15 +382,15 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard
|
||||
| [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 | [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_position.sbs/panorama_3d_position](../assets/sbs/panorama_position.sbs) | 0 | No | [Parity · 18 renders, all 171,264 pixels exact](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [panorama_rotation.sbs/panorama_rotation](../assets/sbs/panorama_rotation.sbs) | 1 | No | [Parity · 206,336 exact pixels in 26 renders](parity-fixes.md#segment-mapping-and-normal-graph-rechecks) |
|
||||
| [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_line_light](../assets/sbs/panorama_shape.sbs) | 3 | No | [In progress · 171,207/171,264 pixels, first difference in the pixel processor](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [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) |
|
||||
| [panorama_shape.sbs/panorama_shape_2](../assets/sbs/panorama_shape.sbs) | 2 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [panorama_shape.sbs/panorama_shape](../assets/sbs/panorama_shape.sbs) | 1 | No | [Parity · 18 renders, all 171,264 pixels exact](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [panorama_shape.sbs/panorama_shape_2](../assets/sbs/panorama_shape.sbs) | 2 | No | [Parity · 18 renders, all 171,264 pixels exact](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [panorama_shape.sbs/panorama_sphere_light](../assets/sbs/panorama_shape.sbs) | 2 | No | [Parity · 171,264 exact pixels in 18 renders](parity-fixes.md#segment-mapping-and-normal-graph-rechecks) |
|
||||
| [panorama_shape.sbs/panorama_spot](../assets/sbs/panorama_shape.sbs) | 1 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [panorama_straighten_horizon.sbs/panorama_straighten_horizon](../assets/sbs/panorama_straighten_horizon.sbs) | 1 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [panorama_straighten_horizon.sbs/panorama_straighten_horizon](../assets/sbs/panorama_straighten_horizon.sbs) | 1 | No | [In progress · 171,231/171,264 pixels, first difference in the pixel processor](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [paper_path.sbs/paper_path](../assets/sbs/paper_path.sbs) | 0 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [parquet_1.sbs/parquet_1](../assets/sbs/parquet_1.sbs) | 0 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [paths_tools.sbs/Impl/compute_paths_lengths](../assets/sbs/paths_tools.sbs) | 1 | Yes | [In progress · 1,029 exact pixels, intermediate lengths reach the execution limit](parity-fixes.md#skipped-loops-and-path-buffers) |
|
||||
@@ -410,8 +410,8 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard
|
||||
| [pattern_brick_2.sbs/brick_2](../assets/sbs/pattern_brick_2.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_brick_generator.sbs/resources/Tile](../assets/sbs/pattern_brick_generator.sbs) | 1 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [pattern_checker_1.sbs/checker_1](../assets/sbs/pattern_checker_1.sbs) | 0 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) |
|
||||
| [pattern_cube_3d.sbs/cube_3d](../assets/sbs/pattern_cube_3d.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_cube_3d.sbs/cube_3d_gbuffers](../assets/sbs/pattern_cube_3d.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_cube_3d.sbs/cube_3d](../assets/sbs/pattern_cube_3d.sbs) | 0 | No | [Parity · 18 renders, all 171,264 pixels exact](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [pattern_cube_3d.sbs/cube_3d_gbuffers](../assets/sbs/pattern_cube_3d.sbs) | 0 | No | [Parity · 60 renders, all 685,056 pixels exact](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [pattern_fibers_1.sbs/fibers_1](../assets/sbs/pattern_fibers_1.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_fibers_2.sbs/fibers_2](../assets/sbs/pattern_fibers_2.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_gaussian_1.sbs/gaussian_1](../assets/sbs/pattern_gaussian_1.sbs) | 0 | No | [In progress · 168,522/171,264 pixels across 18 renders](parity-fixes.md#radial-stamp-profiles-and-pattern-generators) |
|
||||
@@ -419,7 +419,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard
|
||||
| [pattern_mesh_1.sbs/mesh_1](../assets/sbs/pattern_mesh_1.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_mesh_2.sbs/mesh_2](../assets/sbs/pattern_mesh_2.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_polygon_2.sbs/polygon_2](../assets/sbs/pattern_polygon_2.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_shape.sbs/hemisphere](../assets/sbs/pattern_shape.sbs) | 0 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_shape.sbs/hemisphere](../assets/sbs/pattern_shape.sbs) | 0 | No | [Parity · 18 renders, all 171,264 pixels exact](parity-fixes.md#normal-maps-panoramas-and-primitive-shapes) |
|
||||
| [pattern_shape.sbs/shape_base](../assets/sbs/pattern_shape.sbs) | 0 | Yes | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_splatter_circular.sbs/splatter_circular](../assets/sbs/pattern_splatter_circular.sbs) | 7 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
| [pattern_splatter_circular.sbs/splatter_circular_color](../assets/sbs/pattern_splatter_circular.sbs) | 7 | No | [Too hard: remaining pixel differences](parity-fixes.md#remaining-differences) |
|
||||
|
||||
Reference in new issue
Block a user