Commit Graph
1462 Commits
Author SHA1 Message Date
Rebornim 8dfe916224 Keep only the texels past a seam beside the island-edge padding, so padding across seams holds one full-size map instead of two 2026-11-27 07:33:26 +00:00
Rebornim fcd3644744 Put a blank line after the multi-line early-exit guards in the texture set code
Spacing only (CODE_STYLE: a blank line after a multi-line if/let-else guard), in methods this branch adds or changes.
2026-11-27 06:44:02 +00:00
Rebornim 8032697c99 Switch the channel off on the layer the Manage channels test reads
The test read the set's bottom layer but switched roughness off on the selected one, so it stopped at its own precondition instead of checking textureSet.channels.
2026-11-27 06:41:17 +00:00
Rebornim 7b370383f2 Test that a set's size, formats and settings survive save and reopen, and that older sets open as before
Two sets with different sizes, channel formats, added channels, mixing, height to normal, padding and a non-Latin description go through the project file and come back the same; a set without the new fields opens square, with 2D padding and Smooth height to normal.
2026-11-27 06:40:02 +00:00
Rebornim fd91866c47 Keep picked channel formats in a project template
A template saved the set's channel formats but not whether they were picked, so a project started from it stored every channel at 16 bits again while showing the formats as 16-bit. Templates now carry format_precision; older template files read it as false and keep 16 bits, as before.
2026-11-27 06:36:50 +00:00
Rebornim a94e3f8703 Describe the texture set sizes, channels and settings this branch adds in the feature list
docs/features.md still said texture sets are square with 21 channel types.
2026-11-27 06:34:58 +00:00
Rebornim 3031941f2a Start the Texture Set list's state over when another project or mesh replaces this one
The list kept the row being renamed, folded sets and the picked UV tile by set index across a project replacement, so a rename under way when another project opened was applied to the new project's set at the same index, and Texture Set Settings could keep sizing a picked UV tile the new set does not have. The state now belongs to the project and mesh it was made in (the descriptions choice stays), and Settings only follows a picked tile the active set has.
2026-11-27 06:34:53 +00:00
Rebornim 544d788129 Keep a layer's switched-off channels when Manage channels applies to every set
With Apply to all Texture Sets the dialog sends every ticked channel, including the ones a set already has, and textureSet.channels added each again, which switched that channel back on in every layer of the set where it had been turned off. A channel the set already has is now left alone.
2026-11-27 06:34:20 +00:00
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