Commit Graph
1454 Commits
Author SHA1 Message Date
Rebornim 658cc2a168 Refuse a malformed texture set height or setting instead of ignoring it
textureSet.resolution took a height that was not a number as absent and resized the set square, and textureSet.settings skipped a normalMixing, aoMixing, heightToNormal or uvPadding value that was not a string and reported success. Both now return an error and leave the set as it was, as normalFormat already did.
2026-11-27 06:34:17 +00:00
Rebornim 8e0b61fe55 Texture Set Settings: sections in the property sheet's controls, size as width, lock and height (or the UV tile picked in the list), a format list per channel, and mesh map slots that open the image picker 2026-11-27 06:14:29 +00:00
Rebornim 3ff32d91cc Texture Set list rows: size and shader dropdowns per row, rename in place, a right-click menu, descriptions, and a UV tile set's tiles under it with their own size 2026-11-27 06:14:29 +00:00
Rebornim 8cb65c3c40 Manage channels: a dialog listing every channel by group, ticked when the set has it, applied in one undo step to this set or all sets 2026-11-27 06:14:29 +00:00
Rebornim 17923a7116 Channels: 19 more material channels and User0 to User31, stored and exported, with inspect marking the ones the shader ignores 2026-11-27 06:14:29 +00:00
Rebornim f2b8c0b2bd Channel storage format: set by command, and 8-bit and grey formats change what the composite holds
textureSet.channel.format {channel, format} stores a channel in sRGB8, L8, RGB8, L16, RGB16, L16F,
RGB16F, L32F or RGB32F, as one undo step. The composite keeps 256 steps for 8-bit formats (sRGB8
spaced for gamma) and one grey value for L formats; 16-bit and float formats keep the tiles' 16 bits,
and the command says so for floats. Layer data keeps its precision, so a wider format brings back
what was painted.

Until a format is set, every channel keeps the 16 bits TextureCraft always stored (shown as RGB16 /
L16), so new and saved projects render as before; setting one channel's format keeps the others at
16 bits.
2026-11-27 06:14:29 +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 82e3e72201 Texture set UV padding: across seams (3D) or from island edges (2D), set by command and followed by the viewport and export
textureSet.settings takes uvPadding (3d or 2d) as one undo step and textureSet.inspect
reports it. Padding from island edges (2D) is the padding we always had: each texel
outside the UV islands repeats the nearest covered texel. Padding across seams (3D)
continues the surface across UV seams: a texel just outside a seam takes the texel as far
inside the seam's other island (UvSeam finds the edges two triangles share in 3D but not
in UV space), up to 32 texels out, and falls back to the nearest covered texel elsewhere.
Tangent-space normals always pad in 2D, since they turn with their island. New texture
sets pad across seams; projects without the field keep 2D, so they open and export as
before.
2026-11-27 06:14:10 +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
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
Chris Hassebrook 1f77416ace Merge pull request #825 from vangel76/feat/settings-parity-823
Settings: match the reference's General page (defaults, sections, sliders)
2026-11-26 12:48:15 -05:00
Chris Hassebrook 7532cfb44e Merge pull request #773 from vangel76/fix/725-background-project-save
Keep TextureCraft responsive during project saves and show progress
2026-11-26 12:17:41 -05:00
chasse20 11597318ab Merge remote-tracking branch 'origin/main' into HEAD 2026-11-26 16:52:39 +00:00
chasse20 2bd495929a Merge commit '684f71bd7933299c35d29b212cf67090811ec0e3' into HEAD 2026-11-26 16:52:39 +00:00
Simon Hull ac4454bb38 Geom: check indices before computing tangents (#386)
Mesh::from_parts computed normals and tangents before validate(). An
index past the last vertex reads as the origin in the MikkTSpace
callbacks, but the all-degenerate guard compares positions.get() and
counts a missing vertex as different. So two positions with indices
[0, 1, 2] passed the guard while MikkTSpace saw every triangle as
degenerate and underflowed at generated.rs:1100: a panic in debug, an
out-of-bounds walk in release.

compute_tangents now also skips MikkTSpace (using the per-triangle
fallback, which reads with get()) when an index is out of range, and
from_parts refuses such indices before building the mesh, with the
same error validate() gives.
2026-11-26 16:21:07 +00:00
chasse20 5986091968 Auto: Fix close after a prior save fails and isolate UI language
Let an unmodified replacement project finish closing once the previous project’s save ends, even if the write fails. Add a regression test for that sequence.

Keep each UI thread’s language selection independent and add a test that selects different languages on two concurrent threads.
2026-11-26 16:19:15 +00:00
chasse20 d264bc525c Merge remote-tracking branch 'origin/main' into HEAD 2026-11-26 16:03:23 +00:00
ViktorBystrov72andViktorBystrov72 1f78ba3578 Isolate TextureCraft UI language on each thread (#797)
Co-authored-by: ViktorBystrov72 <18964918+ViktorBystrov72@users.noreply.github.com>
2026-11-26 15:54:16 +00:00
chasse20 ae51095d55 Auto: Integrate main and bind save completion to its project
Preserve rebuilt UVs, undoable bake meshes and the shared window-close path. Keep each close and save dialog with its requesting project, wait for pending writes before restart, and leave already saved edits clean after a later stroke is canceled.

Capture archive inputs once, share encoded mesh buffers and release parsed bake geometry before writing. Split the new save types into dedicated files and cover project replacement, restart eligibility and snapshot lifetimes with regressions.
2026-11-26 15:09:23 +00:00
Chris Hassebrook d422c821f2 Merge pull request #772 from vangel76/fix/effect-stacks-769
Toggle material and mask effects from their thumbnails
2026-11-26 06:36:38 -05:00
chasse20 3adefe418a Auto: Integrate main and preserve shortcut recording
Integrate main at 6b01f32e with the shared UI runtime and warp toolbar. Initialize main’s shortcut dispatcher alongside the PR’s lazy conflict cache.

Preserve Escape modifiers when the runtime routes the press as a window cancel. Add a regression test for the reserved Shift+Escape warning in Settings.
2026-11-26 11:36:06 +00:00
FredApps 684f71bd79 Merge pull request #860 from storytold/fix/warp-toolbar-test-headless
Warp toolbar test: install the headless runtime so main's CI is green again
2026-11-26 10:25:06 +01:00
FredApps 3695db1d44 Warp toolbar test: install the headless runtime on its harness
Main's CI has failed since #837 merged: place_on_surface_keeps_a_warp_on_its_own_texture_set
builds its harness without framework::install_headless, which the framework
runtime needs since #800, and panics with "the runtime plugin's hooks did not
run". Every other harness already installs it.
2026-11-26 15:50:40 +07:00
skylar taylor-barrick 356f01b2f0 Nightly: stop blocking a refused launch on macOS (#853)
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2).
2026-11-26 00:47:29 -06:00
Chris Hassebrook 6b01f32eab Merge pull request #837 from vangel76/feat/warp-toolbar-805
Warp tool bar in the top bar: gizmo modes, place on surface, snapping, mirrors and resets
2026-11-26 01:00:38 -05:00
FredApps 46d84d5b23 Merge main into TextureCraft effect-stack changes 2026-11-26 06:43:42 +01:00
aiongg 4ff7cb6165 Merge pull request #800 from aiongg/minimal-port-next
TextureCraft: minimal port to craft-libs next
2026-11-26 00:27:34 -05:00
chasse20 e7d3a47b56 Auto: Integrate main's November 25 roadmap update
Bring in the roadmap audit and its tracker schema from main at d45bb2ca. Preserve the approved effect-stack disclosure changes and rename repairs.
2026-11-26 04:41:03 +00:00
chasse20 499591c387 Auto: Integrate main and protect effect names on reopen and undo
Discard pending names when their project or effect disappears, including while the Layers panel is hidden. Cover File Open and removal followed by undo in the UI tests.

Reuse effect slices and label layouts. Skip checkerboards and placeholder meshes for fully clipped thumbnails.
2026-11-26 04:35:45 +00:00
aiongg 47356ee5b5 Sample project tests drive the app through the framework runtime 2026-11-26 04:34:05 +00:00
chasse20 5372bf08bb Auto: Integrate main's November 25 roadmap update
Bring in the roadmap audit from #848 and preserve the approved Settings and shortcut repairs.
2026-11-26 04:20:23 +00:00
chasse20 c20d538da6 Auto: Integrate main's November roadmap update
Bring in the November 25 roadmap audit and its tracker schema follow-up.
2026-11-26 04:18:45 +00: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 d0b1c7e3ac Auto: Integrate main and fix warp placement, resets and stale drags
Preserve main’s perspective ring fit and use the displayed radius when deciding whether a ring can be grabbed. Keep surface placement on the edited fill’s texture set and end captured drags when the loaded mesh or projection changes.

Preserve toolbar settings across layout changes, honor Ctrl snapping, and expose the manipulator settings as keyboard-adjustable sliders. Reset stored projector rotation and scale when keeping corners, and reject invalid reset arguments before editing.

Skip hidden handle geometry, reuse projected axes, and remove temporary selection and hit-test vectors.
2026-11-26 04:13:53 +00:00
Chris Hassebrook d45bb2cad8 Merge pull request #848 from storytold/docs/roadmap-audit-2026-11-25
Docs: update the roadmap after the November 25 audit
2026-11-25 22:59:50 -05:00
chasse20 d08c7b900c Docs: preserve the roadmap tracker schema 2026-11-25 22:59:10 -05:00
chasse20 bae6870aec Docs: update the roadmap after the November 25 audit 2026-11-25 22:53:27 -05:00
aiongg 3bcd6f7153 Texture-set hover tests drive the app through the framework runtime 2026-11-26 03:51:34 +00:00
aiongg 8180c82fab Merge storytold main (3c026860) into the minimal port 2026-11-26 03:21:25 +00:00
Chris Hassebrook 3c026860e3 Merge pull request #775 from vangel76/feat/texture-set-hover-767
Highlight texture sets in the 3D viewport on hover
2026-11-25 22:16:53 -05:00
skylar taylor-barrick c57d4045f0 Switch on supervised nightlies on the nightly-signer branch (#838)
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.
2026-11-25 21:05:43 -06:00
chasse20 4c6c880568 Auto: Integrate main's coverage-only CPU baking
Register cfg(coverage) with the workspace lint and use the existing CPU tracer for coverage builds. Preserve normal GPU selection and the approved hover-test language guard.
2026-11-26 02:25:05 +00:00
FredApps 9e0e971c47 Merge main into texture effect-stack disclosure 2026-11-26 03:18:39 +01:00
chasse20 3f81dabc5a Auto: Serialize the hover regression with translation tests
Hold the shared language-test lock through app construction, frame stepping, and harness teardown. Integrate main at bbd68068 to pick up the layer-mask thumbnail controls.
2026-11-26 02:14:42 +00:00
skylar taylor-barrick dc2c80739b Bake on the CPU under coverage so the Sonar shards stop crashing at exit (#840)
Merged under Skylar's explicit override (Nightly 792) after green CI, CodeRabbit on this head with no open threads, and an independent adversarial review with no blockers.
2026-11-25 20:02:16 -06:00
Chris Hassebrook bbd680686e Merge pull request #841 from vangel76/feat/mask-toggle-776
Switch a mask on or off with Shift+click, and leave mask view from the material thumbnail
2026-11-25 21:00:37 -05:00
chasse20 0bc7b1a95f Auto: Integrate rebuilt UV import from main
Bring in main at 1abfa79a with rebuilt UV import and saved layout support. Preserve the approved Painting and Baking hover regression and camera target validation.
2026-11-26 01:55:54 +00:00
chasse20 21073fbf76 Auto: Test texture-set hover previews and validate camera targets
Exercise pointer hover in Painting and Baking. Check that the hovered set reaches the 3D frame, leaving the row clears the preview, and selection stays unchanged.

Bring in camera.set validation from main. Reject malformed targets before changing camera state or advancing the session revision. Document and test that an omitted or null target preserves the current target.
2026-11-26 01:43:27 +00:00
Chris Hassebrook 1abfa79a89 Merge pull request #748 from vangel76/feat/uv-unwrap-on-import
Allow rebuilding mesh UVs in New Project
2026-11-25 20:43:13 -05:00