Commit Graph
106 Commits
Author SHA1 Message Date
chasse20 b5d9abbb91 Auto: Fix texture set resize ownership and reduce memory peaks
Reject resize results from another project. Release stale pixels and caches before retrying a resize within the original project, preserving intervening edits and one-step undo.

Fix rectangular height sampling, seam-boundary coverage, malformed set selectors and saved channel ordering. Reduce temporary composite and mesh-partition storage, and pack mixed-aspect trace textures without changing their samples.

Keep channel actions reachable in short windows, strengthen export and modal regressions, document the control commands and remove unrelated formatting changes.
2026-11-29 08:04:24 +00:00
Rebornim 41b8a69818 Merge upstream main into the texture sets pass
# Conflicts:
#	crates/formats/src/mesh_import/external.rs
#	crates/ui-egui/build.rs
#	crates/ui-egui/i18n_build.rs
#	crates/ui-egui/src/lib.rs
#	crates/ui-egui/src/menus.rs
#	crates/ui-egui/src/shelf.rs
#	crates/ui-egui/src/shelf_updates.rs
#	crates/ui-egui/tests/i18n_build.rs
#	crates/ui-egui/tests/it/shelf_updates.rs
2026-11-29 06:30:40 +00:00
SteamSmithandClaude Sonnet 5.5 b6dbef1b34 test(192): the no-compute test also checks the GPU baker refuses with a reason
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:41:25 -05:00
SteamSmithandClaude Sonnet 5.5 45ea33d09d fix(render): size-limit tests no longer assume wgpu's default 256 MiB buffer limit
The headless device now asks for the adapter's own limits, so on a desktop GPU the 8192x8192
reset in failed_reset_retains_the_active_render succeeds and the test failed. The test now uses a
device capped at 256 MiB (Headless::with_buffer_cap, test only). Also: ImageRes fields are private
on main, so the environment-usage test builds its image with ImageRes::new.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:21:36 -05:00
SteamSmithandClaude Sonnet 5.5 12632c3652 merge: origin/main into fix/headless-render-without-compute
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 19:21:36 -05:00
SteamSmithandClaude Sonnet 5.5 5ebe488019 test(render): an adapter without compute shaders gets a tracer error, not a panic
Builds a no-op adapter with WebGL2-class limits: the viewport renderer still builds and the GPU
path tracer refuses with a message naming compute shaders.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 12:51:39 -05:00
chasse20 c6a8a86247 Merge reviewed target into TextureCraft rectangular textures 2026-11-28 08:38:21 +00:00
Rebornim 138b4da099 Texture set size: width and height, so a set can be non-square, set by command and followed by the viewport, filters and export
textureSet.resolution takes an optional height (default: square). Old projects open
square as before; sets whose UV tiles have their own sizes stay square.
2026-11-27 06:14:29 +00:00
Rebornim 40830d0128 Texture set height to normal method: Sharp or Smooth (Sobel), set by command and followed by export, viewport and path tracers
textureSet.settings takes heightToNormal (sharp or smooth) as one undo step and
textureSet.inspect reports it. Smooth is the 3x3 Sobel filter export already used;
Sharp takes the two neighbours across, which the viewport and both path tracers
used until now. All four now read the set's method from one rule
(HeightToNormalMethod::slope, mirrored in mesh.wgsl and trace.wgsl). Projects
without the field stay Smooth, so their exports are unchanged; their viewport
normal now matches the export.
2026-11-27 05:10:45 +00:00
chasse20 d9926733a9 Auto: Preserve IOR edits across background saves
Track IOR-related display changes in the save revision and preserve the exact legacy reflectance scale at IOR 1.5. Improve the shader checkbox outline and cover its contrast and keyboard behavior.

Reuse wrapped CPU trace coordinates, shorten tracer staging lifetimes, and avoid per-set template channel ID allocations. Document the separate glass-interface Fresnel calculation.

Verified with local workspace gate coverage, affected release suites, software rendering, and the shader rail snapshot.
2026-11-27 04:53:09 +00:00
Rebornim 19d8ecf79c Texture set ambient occlusion mixing: set it by command, and None keeps the baked map out of the viewport
textureSet.settings takes aoMixing (multiply or none) and textureSet.inspect reports it.
The viewport's occlusion texture multiplied the baked ambient occlusion in whatever the
setting said, while export already followed it; display tiles now take the set's mixing,
and changing it (or undoing the change) resends that set's textures.
2026-11-26 21:53:48 +00:00
Rebornim e237eae4cb Texture set normal mixing: set it by command, and Replace keeps height out of the viewport normal
textureSet.settings takes normalMixing (combine or replace) as one undo step and
textureSet.inspect reports it. Replace already left the height slope out of exported
normals; the viewport, the normal view and both path tracers now follow it too, while
height still displaces. Projects without the field stay Combine.
2026-11-26 21:53:41 +00:00
vangel76 da7dab8118 Merge storytold main (1f77416a) into feat/749-ior-specular-f0 2026-11-26 21:55:19 +01:00
autocraft-bot[bot] 3e879cbc0d Apply review fixes
- crates/render/src/headless.rs
- docs/control-protocol.md
2026-11-26 15:46:39 +00:00
FredApps 2cbbebfd3f Preserve texture set hover in the IOR branch merge 2026-11-26 08:27:47 +01:00
chasse20 fd39434e6c Auto: Integrate main and fix Settings and shortcut validation
Preserve the Nightly data root, viewport resolution and saved key bindings when applying Settings. Restore the system language on Reset UI, use the persistent preview-cache default, and release automatic bake previews when disabled.

Check the adapter selected by the baker against its shader requirements. Show reference keys in both shortcut editors and cache conflicts until the bindings or platform change. Correct the documented Bake mode key and add regressions for the repaired interactions.
2026-11-26 04:16:27 +00:00
chasse20 565fdaf02d Auto: Integrate main and fix texture set hover checks and focus
Preserve main's bake and export updates in the prepared merge. Expose
Painting row selection to AccessKit and draw a distinct keyboard focus
outline.

Derive test coverage from flat base color so lighting cannot hide
covered samples. Check all exclusive neighboring pixels in one pass.
2026-11-26 00:53:34 +00:00
FredApps 6b6d77ae4e Merge main into IOR specular reflection branch
Preserve the current export template tests and the authored Specular/Glossiness IOR regression.
2026-11-25 11:19:25 +01:00
vangel76 ce2718a139 Test the IOR specular setting across projects, templates, export and shading
Round-trips cover project save and reopen, older projects and templates without the
field, and template save and apply. The F0 export is checked against the CPU tracer's
Metallic/Roughness F0 at IOR 1.8 in both modes; the GPU tracer is compared with the
CPU tracer and the viewport with and without the setting. Specular/Glossiness export
and shading stay identical with the setting on.
2026-11-25 10:53:03 +01:00
chasse20 30d7ee51c4 Remove redundant tests and fix unused build warnings 2026-11-23 03:56:43 -05:00
chasse20 71a5637701 Auto: Integrate main and streamline Warp and Blur Slope evaluation
Align the picker, catalog, replacement, defaults, and protocol on warp and blurSlope. Retire the old selectors, preserve stored filter settings, and apply Source Tiling to sampled inputs inside each UV tile.

Prepare Warp directions once per region and reuse the source for independent directions. Keep Chain sampling at each successive position.

Preserve main's draw identities and placed-fill picker. Repair sparse Compare and anchor evaluation, lighting, gradient boundaries, and seed restoration. Reduce redundant Color Match work, blur scratch, and cold environment reductions.

Validated with Linux cargo xtask ci, release compositor tests, CLI examples, and filter snapshots.
2026-11-23 07:21:19 +00:00
vangel76 c3a52dbfd8 Test that hovering a set leaves the set next to it unchanged 2026-11-23 00:00:32 +01:00
vangel76 b511cad705 Dim the hovered set's scattering light at the hovered pixel, not before the blur 2026-11-22 23:50:47 +01:00
vangel76 d49f75ecd9 Pass the hovered set to the subsurface G-buffer pass 2026-11-22 23:41:37 +01:00
vangel76 dd00c4e04d Blend the hover tint with the blurred scattering light and fix the export tree test query 2026-11-22 23:22:02 +01:00
vangel76 47bd83ea46 Merge upstream/main 2026-11-22 23:21:29 +01:00
chasse20 8b2821e163 Auto: Integrate main and fix material preview and picker state
Preserve linked fills and imported alpha images, bind cached composites to their mesh, and keep delayed orb results from evicting newer previews. Avoid rendering hidden picker tiles, redundant queue scans and an extra HDR image buffer.

Correct picker cancellation, native pointer ownership, channel selection and single-parameter pattern edits. Update the Material controls guide, retain the approved Studio Small 09 attribution, and exercise the mask projection through its accessible control.
2026-11-22 22:19:46 +00:00
vangel76 acfd60b6b1 Highlight texture-set surfaces on hover in the 3D viewport 2026-11-22 21:15:47 +01:00
chasse20 763737a508 Auto: Integrate main and fix projection sampling and Properties edits
Preserve per-selection scrolling when integrating the Fill and Symmetry panels. Keep batched edits and final drag motion in the correct undo step, expire hidden editors and preview textures, and show keyboard focus on Properties controls.

Correct per-copy depth culling, UV footprints, linear-light mip filtering and memory accounting. Preserve cropped-fill coverage through placement and reload. Reject malformed decal dimensions before mutation and reuse mesh bounds within each operation.

Bound preview ray scratch with reusable row batches and clip hidden outlines before generating dashes.
2026-11-22 19:58:41 +00:00
chasse20 a99c37392c Filters: review repairs from #698
Chasse's repairs to this part's code, carried over from the #698 head (5644b7d3).
2026-11-22 05:30:04 +00:00
Rebornim 7d8cbb658a Filters: the stand-ins parts 2-4 kept for the filter panel and the effect blend lookups go 2026-11-22 05:30:04 +00:00
Rebornim b4d810ddcf Filters: engine evaluation, commands, docs and the remaining tests 2026-11-22 05:30:04 +00:00
chasse20 71e35ae35c Effects, masks and folders: review repairs from #698
Chasse's repairs to this part's code, carried over from the #698 head (5644b7d3).
2026-11-22 05:30:04 +00:00
Rebornim 616601d4a9 Temporary: filter effects keep main's filter panel until part 5, and effects read their blend through main's lookups 2026-11-22 05:30:04 +00:00
chasse20 a7d165e029 Fills: review repairs from #698
Chasse's repairs to this part's code, carried over from the #698 head (5644b7d3).
2026-11-22 05:30:03 +00:00
Rebornim 32f848c7c5 Fills: engine evaluation, commands and the remaining tests for the Fill tab 2026-11-22 05:30:03 +00:00
vangel76 088aa4eb06 feat(render): add IOR-based dielectric reflection
Let Metallic/Roughness projects opt into dielectric F0 derived from the
index of refraction. Share the Specular Level multiplier across the
viewport, CPU and GPU path tracing, and the derived F0 texture export.

Store the choice with projects and templates. Keep the legacy factor
for existing projects and authored RGB F0 in Specular/Glossiness.
2026-11-21 22:00:14 +01:00
chasse20 050ec8c1a8 Auto: Fix save destinations and refresh viewer resources
Honor template and layout destinations, preserve the active layout mode, and update the template library after a successful write. Keep Log copy and selection, rotated fill feedback, and image-view restoration consistent with the visible session.

Refresh lighting when an imported environment changes or disappears. Share image resampling by resolution, skip unused headless uploads, bound tile conversion batches, and avoid cloning trace scenes per row slice. Keep the new display and shortcut types in dedicated files.
2026-11-19 23:38:04 +00:00
vangel76 d595d52770 Fix batch-3 CI test and review findings
- Use a 128 px sample session in the unlit-switch test (main requires 128 or more)
- Drop a deferred Other... view whose image was removed during a bake
- Keep the neutral material of lit Metallic/Roughness views when spec/gloss is on
- Resend the shown Image view after texture sets are recreated
- Drop the default search query only at a word boundary
- Restart the render when the display background changes
- Document when viewport.frame resets the 2D view
2026-11-19 10:00:47 +01:00
vangel76 3cbe724030 UI batch 3: view mode picker, display settings, shortcuts, 2D view, log, templates and Window menu
Combines issues #675, #676, #677, #678, #679, #682, #683, #680, #681 and #684.

- View mode combo with section titles, reference names, Other... image picker and an unlit switch
- Display Settings: environment picker grid and drop slot, reference slider ranges, background color, environment alignment, shadow computation mode and opacity
- Settings > Shortcuts with sections, Reset all to default, Delete to clear and conflict warnings; reference action names and default keys
- 2D view: rotate, snap rotate, drag zoom, F reset, wider zoom limits, UV tile grid, numbers, hover label and one mesh wireframe switch
- Log panel with sources, level colours, selection, copy and clear; the exported log keeps each entry's time, level and source
- Save as template, reference template names and a remembered template
- Window menu with Toolbars, per-mode layouts, Hide UI check mark and views per mode
2026-11-19 08:15:57 +01:00
vangel76 ff647b38c3 UI parity batch: settings window, side panels, camera, bake presets, F4 view swap, Help menu
Fixes #637, #642, #649, #651, #655, #664.

- Edit > Settings with General, Shortcuts and Libraries pages, OK and Cancel (#637)
- Right-bar panels pop out with Undock; Export panel, Log tabs, Display and Shader Settings pages (#642)
- Free camera rotation, snap rotate and next/previous camera commands, Normal+height+mesh view (#649)
- Named bake presets, apply bake settings to all texture sets, bake summary toast (#651)
- Swap 3D/2D views with F4 (#655)
- Help > Release notes... and Export log...; tests for Join the community (Discord)... (#664)

Combination: one shared unavailable::NOT_AVAILABLE hint, snapped orbit uses the Settings
rotation speed and levels a free camera, Swap 3D/2D in the Viewport reference order,
symmetry test harness widened for the longer top bar, docs/parity.md regenerated.
2026-11-18 21:40:53 +01:00
chasse20 009bb0c4d1 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-17 16:22:03 +00:00
Dylan M. Taylor 9c1b9cbc7b Merge pull request #542 from vangel76/fix/bent-normal-tangent-538
Bent normal maps bake in tangent space, so materials and imported maps read them correctly
2026-11-17 07:19:04 -05:00
chasse20 7ef4e3fa15 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-17 09:26:03 +00:00
chasse20 8f1384bb06 Auto: Integrate main with shared tile snapshots
Preserve the signed-normal display changes from main and keep renderer headless checks meaningful across GPU adapters.
2026-11-17 08:20:58 +00:00
chasse20 55120d3ae4 Merge latest main into CPR 13 preserving reviewed repairs 2026-11-17 08:19:56 +00:00
chasse20 071d410d8a Auto: Integrate main and harden half-float normal display
Preserve signed RGBA16F normal uploads while integrating current main.
Reject invalid baked samples before blending, skip sampling absent baked
normal maps, and cover two-set normal shading with a headless test.

Complete scoped spacing, comment and shader constant cleanup while
preserving shader values.
2026-11-17 06:42:03 +00:00
chasse20 efaff5e13e Merge main into PR #226 and preserve reviewed fixes 2026-11-17 06:10:52 +00:00
vangel76 4c9fe1e13e Decode the bent normal like the normal map and name both ways back in the load warning 2026-11-16 19:54:27 +01:00
vangel76 343b33ee60 Bake bent normal maps in tangent space like the normal map
The bent normal map packed the world-space direction while the normal map
uses the low poly's tangent frame (OpenGL green). Encode the bent normal in
the same frame on the shared CPU/GPU packing path, read imported bent
normal images in the project's normal format, and decode it with the vertex
tangent frame in the neutral material view.

Projects saved before format version 3 held world-space bent normal maps:
loading drops them, keeps the bake settings and asks for a re-bake.

Part of #538
2026-11-16 19:50:20 +01:00