Skip to content

appearance: add original opaque finish presets and native demo - #1366

Closed
selun3 wants to merge 3 commits into
tangency-labs:mainfrom
selun3:codex/material-finish-demo
Closed

selun3 wants to merge 3 commits into
tangency-labs:mainfrom
selun3:codex/material-finish-demo

Conversation

@selun3

@selun3 selun3 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Draft WIP updated on 17 October: the tested source is now published at 1cc46354. Full local CI remains failed; this is not ready for merge.

The normal fast-forward update preserves real parents 74089869 and pinned main 04b4381b. Its tree bf5fd78a0ee0e1532cc326def36c423e3196355b and all 1,574 source files match the reviewed candidate. The contribution remains seven files: 20 legacy appearances, six opaque PBR finishes and 43 strengthened regression lines. No starter pack, renderer, dependency or format change is included. Upstream main has advanced beyond the tested pin; latest-main integration is pending.

The actual local cargo xtask ci ended with exit 1. Both finish regressions, startup, strict workspace/all-target Clippy, wasm (11 crates), doctests and web pass. Engine: 1,472 passed/four failed/five existing ignored; kernel property binary: eight passed/one failed/three existing ignored. The failures remain the three golden groups, concurrent catalog-export Windows os error 5, and cylinder/sphere scale invariance.

A separately built pristine 04b4381b checkout reproduces all seven golden field lines exactly under the pinned Windows toolchain. This bounds their preexistence; it does not identify the numerical cause or make full CI green. One isolated catalog pass does not clear the concurrent failure, and the property case was not replayed. No assertions, expected geometry, tolerances or ignores changed; failed receipts and the test-generated seed were preserved.

Precommit CLI a721be6a34f164f3e85c49cef292afa71c237016c30ca442b26f2f9b261f4150 creates six specimens and two fresh processes reopen exact looks, densities and physical results. Native SHA-256 38c34f4eec277514f27865950b1788598d7c334f85870e050a4780bf64477f3b, inherited format solidcraft/26. The working-source bytes match the published tree; no new-commit binary or PNG is claimed. Older media below remains evidence for 74089869.

Remote checks for the new commit are pending. The PR stays draft while the remaining validation and integration issues are resolved.

Selecting an existing metal appearance currently selects only a scalar color. This adds six opt-in opaque finish presets to the existing Appearance library, with the complete PBR response carried through the command, UI swatches, render scene and native save. All 20 legacy scalar appearances keep their values. Physical material density stays independent.

Fixes #1357. Related to #813, #785 and #786; those broader tracks remain open.

  • Seven files relative to main 4dc6381, integrated without force-pushing; head 7408986. No PR dependencies, shader changes, dependencies, format bump or catalog migration. New finishes use the common Look constructor so later texture fields retain their defaults.
  • Original MIT OR Apache-2.0 presets and six-specimen recipe, with ATTRIBUTION.md entries.
  • New command regressions cover selection, scene response, mass, undo/redo, cold reopen, scalar-export refusal and atomic refusal of transparency.
  • The oak preset is explicitly Uniform PBR Preview, PLA is Smooth PBR. Grain, printed layers, directional brushing and HDRI are separate renderer work. Optical settings are illustrative, not measurements or certified grades.

Validation on published head 74089869: all enabled GitHub checks passed, including the four Linux shards, reference cases, Windows startup/shaders, Clippy and repository checks. Manual-only checks retain the repository's existing skip policy. Both focused finish regressions and strict all-target Doc/Engine Clippy pass. A new source-pinned acceptance run on 74089869 now reproduces the native fixture and after-render byte for byte, retaining exact properties and finish parameters after two independent cold opens. The earlier unpinned replay remains historical evidence.

Local full-gate result: failed; returned to draft. cargo xtask ci completed all 40 native binaries. Kernel: 587 passed / 0 failed / 29 ignored. UI library: 806 passed / 0 failed. Engine: 1250 passed / 5 failed / 6 ignored. Failures are crash::tests::startup_steps_survive_a_rebase_and_running_ends_startup (None vs first-frame phase) and the four tests::robustness_goldens::all_* groups (seeds 1, 23, 67, 92, 94 differ in topology and/or measured geometry). Format/assets/licenses/layers, workspace Clippy, WebAssembly (11 crates), doctests and the other completed native groups pass. No assertion, tolerance, golden or ignore was modified. These test files do not change here, but that does not establish baseline causality; comparison with the exact upstream base remains pending. The earlier run on the superseded base was interrupted and is not counted as a pass.

The actual CPU renders use identical geometry, physical materials, colors and camera. The scalar comparison explicitly uses pbr:null. Both measure 25130.958363247137 mm3 and 94.49240344580511 g, exactly unchanged after cold reopening. Analytic sphere totals are 25132.741228718343 mm3 and 94.49910701998097 g (about 0.0071% tessellation error).

Demo and reproducible native download: https://github.com/0xlillith/solvecraft/releases/tag/material-finishes-demo-20261015

Before — scalar colors:
Scalar comparison

After — opaque finishes:
Opaque finish comparison

Independent review, 2026-10-15: source/tests/licensing review of the seven-file contribution on 740898698b601d2f627fb4ba07e96e5bdb7057cf found no P1/P2 issues in the six-preset scope. The reviewer inspected the actual before/after PNGs and parsed the native container: six exact opaque presets, separate physical assignments and original attribution metadata. PNG hashes match the published digests. The visual evidence shows uniform oak, smooth PLA and isotropic satin; the dark unlit metal hemispheres reflect the fixed direct-light preview, not environment illumination.

Pinned acceptance completed on 2026-10-15: head 740898698b601d2f627fb4ba07e96e5bdb7057cf, tree 3a223faa48d6d27c4653661dc79a65b92b912e26, Rust 1.99 / Windows / locked offline ci CLI build. Executable SHA-256: 132ea94381afed99b5452591a7b9e7192698a52ecc575a03980c1108b2c8e00c. A fresh recipe run generated native SHA-256 e165714eefcc755d6b1c76b3e3ebe50da20a38d4077c73cd5763f6a3ba93e7fb, identical to the published fixture. Separate processes reopened both native files with identical properties, six finish definitions, metadata and densities. The single new 1600 x 1000 CPU after-render has SHA-256 bf6f5a2a840e3c924736837ee3016abf9440e8e228a91ba4568fbac3c70f67a2, identical to the published after-image and independently viewed. All tracked source snapshots remained identical; all commands exited successfully, and owned processes/target were released. Independent read-only review verified the receipt, hashes and outputs. This closes the current-head demo provenance gap with a new record; historical receipts and assets remain unchanged. No before-render, desktop GPU/browser, texture, HDRI or current-main22 acceptance is implied. The PR remains draft because the full local gate above failed.

@selun3
selun3 marked this pull request as ready for review October 15, 2026 11:52
@selun3

selun3 commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

@bherbruck could you review this small, independent finish-preset change? All enabled GitHub checks are green on 74089869, based on current main 4dc63810, and GitHub reports no merge conflicts. The PR includes real before/after renders and an editable native demo with its licenses and attributions.

This uses the existing opaque PBR support and preserves all legacy scalar presets and physical densities. It has no integration dependencies on the texture/card PRs. Wood is explicitly a uniform preview and PLA a smooth finish; grain and printed layers remain separate work.

Focused regressions, strict Doc/Engine Clippy and native-demo verification pass. The full local CI attempt still has extended engine/kernel groups running, so I am not claiming a complete local pass; that status is explicit in the description.

@selun3
selun3 marked this pull request as draft October 15, 2026 12:37
@selun3

selun3 commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

The full local CI run has now completed and failed, so I have returned this PR to draft and updated the description. Kernel: 587 passed, 0 failed, 29 ignored; UI library: 806 passed, 0 failed; engine: 1250 passed, 5 failed, 6 ignored.

The failures are the startup-journal phase regression and all four robustness-golden groups (seeds 1, 23, 67, 92, 94). The changed finish tests pass, as do the enabled GitHub checks and the native-demo verification. I have not modified assertions, tolerances, expected geometry or ignores. The failed test sources are unchanged in this PR; an exact-base comparison is still needed before attributing the failures to upstream or to this change.

@selun3

selun3 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator Author

The current-head demo provenance gap is now closed by a new acceptance run on 74089869, independently reviewed against the receipt and actual outputs. A locked offline CLI build produced executable SHA-256 132ea94381afed99b5452591a7b9e7192698a52ecc575a03980c1108b2c8e00c. Replaying the recipe reproduces the published native file exactly; separate processes reopen both the published and generated files with identical six finish definitions, physical assignments, densities, metadata and measurements. The new 1600×1000 CPU after-render is also byte-identical to the published image. The description now includes the source, executable and output hashes.

Historical assets and receipts were preserved. This verifies the published head's native/CPU demo only; oak remains a uniform preview. The full local gate still failed as recorded above, so the PR remains draft. No assertions, tolerances, source, history or expected geometry were changed to obtain this acceptance result.

Current-main closeout (17 October)

The actual full local cargo xtask ci on the reviewed seven-file integration into fixed main 04b4381b has finished with exit1. Both finish regressions, the strengthened 20+six listing checks and the startup-journal test pass. Workspace strict Clippy, wasm and doctests pass. Engine completed1,472 passed/four failed/five existing ignored: three robustness-golden groups plus a catalog-export Windows access-denied error. A separate kernel property test also fails: scale invariance of a cylinder/sphere Union. The shrunk input and seed are preserved; neither cause is assigned to upstream or to this PR without an exact comparison.

The property test appended its reproduction seed to a tracked file. That generated evidence and the failed/incomplete original audit were preserved. After terminal cleanup only that file was restored from exact raw source backup; no expectation, tolerance or ignore changed, and no suite was repeated to hide the failure. The remaining web-offline/production CLI checks and six-specimen native acceptance have now passed: two separate fresh processes retain exact PBR looks, densities and physical results in actual solidcraft/26. Native SHA-256 38c34f4eec277514f27865950b1788598d7c334f85870e050a4780bf64477f3b, produced by CLI a721be6a34f164f3e85c49cef292afa71c237016c30ca442b26f2f9b261f4150. Engineer verified the output bytes/contract and all 1,574 frozen source files; the allocation returned its target with no remaining processes. No new PNG or full-CI pass is claimed.

The description now records the new integrated results. Published head 74089869 is still unchanged and this PR remains draft, with no merge-readiness claim. Independent source review and older remote successes do not substitute for the unresolved full-gate failures.

Draft source update now published

The existing PR branch now contains 1cc46354, a normal fast-forward update with real740+04b parents and the exact tested tree/source. The seven-file implementation and 43 strengthened test lines are now on GitHub. The pristine 04b4381b comparison reproduces all seven golden field lines exactly; isolated catalog pass is not a clearance of the earlier concurrent failure, and the property failure remains open. Full local CI is still failed, so this remains draft WIP. New remote checks are pending. No source assertions, tolerances or ignores were relaxed and no history was force-pushed. See the updated description for exact validation scope and remaining limits.

Remote PR CI is now confirmed completed/success for published head 1cc46354: actual run. Existing PR-policy skips remain, so this does not reproduce the complete local Windows workspace run. The local engine run remains failed (1,472 passed / 4 failed / 5 ignored), including the concurrent Windows catalog error; the separate property failure is also retained. This PR remains DRAFT, with no local-full-CI waiver, readiness or merge claim.

…abs#1357)

Preserve the 20 legacy appearances and all six finish definitions. Strengthen
the existing listing regression with independent legacy tuples and distinct
finish checks while retaining the real main04b merge and published history.

Draft WIP: cargo xtask ci completed and failed. Seven golden field differences
were also reproduced on pristine main04b with the matched Windows toolchain.
The concurrent catalog access-denied and kernel property failures remain open;
no full-CI success, current-main readiness or merge approval is claimed.
@jyviko jyviko added area:render GPU, viewport drawing, materials and the renderer enhancement New feature or request priority:P3 needs rework, very large, draft claim, or blocked on a decision labels Oct 17, 2026
@selun3

selun3 commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

Resuming this existing PR rather than opening a competing finish implementation. The isolated candidate is reconciled against main 953fd7d5f8fed25d2fcda2d2ad1130c377ddf768; original six finish definitions, 20 scalar entries and the original public-safe demo are preserved. Current UI parsing already carries the optional PBR record, so no parallel appearance editor is needed.

One additional integration fix is included in the candidate: both appearance.assign and a physical material's default appearance must reject an inherited opaque preset with opacity below one, even when pbr is omitted. Otherwise the latter can save an invalid look which the normal reader rejects. Shared admission now covers both paths; a regression checks create/edit atomicity and explicit pbr:null scalar reopening.

Validation status: source reconciliation, standalone Rust formatting and git diff --check completed; runtime tests, full cargo xtask ci, native images and current-head publication remain pending. The shared host is currently reserved for another active validation, so no competing heavy process has been started. Older CI/images are not relabelled as evidence for this candidate, and this draft remains unready.

The wider phased continuation is recorded on #922, with the shared procedural-pattern proposal discussed on #2163. This slice does not deliver grain, anisotropy, refraction or an engineering material dataset.

@selun3

selun3 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

Closing this owned legacy PR as superseded, without merging its old branch. The renderer functionality is now incorporated in main through #5494/#6050 (9e6e0b8d, current source 69cfd89ae883a4aa4de2accd2216980da482128d). A concrete current source/test witness is crates/engine/src/cmd/pbr_appearance_tests.rs, containing named_opaque_finishes_reach_the_scene_and_survive_undo_and_reopen_without_changing_mass.

The original head 1cc46354a469fc6f160c8dd69aef3247fdb88761 and branch 0xlillith/solidcraft:codex/material-finish-demo are retained, as are the original authorship, review discussion, fixtures and historical failed/passed receipts. This is not a new successful CI run on the old PR and does not imply every UX or cross-platform acceptance item is complete. Remaining product/acceptance work is tracked in #6201 and #5493; linked feature issues are not silently closed by this housekeeping. Keeping another stale integration merge open would duplicate code already in main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:render GPU, viewport drawing, materials and the renderer enhancement New feature or request priority:P3 needs rework, very large, draft claim, or blocked on a decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Original opaque material finish presets and reproducible demo

2 participants