Commit Graph
776 Commits
Author SHA1 Message Date
Chris Hassebrook 6cceef19fd Merge pull request #249 from Rebornim/feat/mode-buttons-top-bar
UI: mode buttons at the right end of the top bar, tool controls scroll when they don't fit
2026-11-04 22:05:11 -05:00
MistyMystery 11d889dbf5 Redesign the Layers panel rows with live thumbnails
Layer rows are 48 points tall with alternating shades, hover, an accent edge on the selected
row and a divider under each layer. Each row shows its content thumbnail (the layer's own result
in the displayed channel) and its mask thumbnail, each selectable on its own; a subtitle names
the layer type and effect count; blend mode and opacity stack on the right. Effects hang under
their layer on tree lines in "Content effects" and "Mask effects" groups that fold without
touching the document, each with a thumbnail of the stack up to and including it (a hidden
effect shows what it bypasses, struck through). Folder contents indent with lines.

Paint and fill thumbnails show their own coverage over a checkerboard; folders composite their
children. Every size derives from layer_panel::layer_preview_size, so a preview size setting
plugs in there. New strings are translated in every shipped language.
2026-11-05 06:53:21 +04:00
MistyMystery d4ea67703d Add an asynchronous thumbnail service for layer contents, masks and effect stages
The compositor renders a one-layer cut of the stack at 64 px (content in a channel, mask, or
the stack up to an effect); the engine keeps an immutable snapshot, a worker thread, an LRU
cache and stale-result rejection.
2026-11-05 06:53:21 +04:00
MistyMystery 3f3bf357f3 Camera bookmarks: translate the Go to camera commands 2026-11-05 06:52:49 +04:00
MistyMystery e26f196888 Camera bookmarks: Ctrl+1..9 shortcuts, smooth glide in the UI, docs
Saved cameras (Project.cameras) already act as bookmarks; add camera.bookmark1..9 commands,
a short viewport glide when going to a camera from the UI, a test and a control-protocol section.
2026-11-05 06:52:49 +04:00
chasse20 6b31b9e376 Derive bake file button sizes from the active UI
Use the UI control height for high-poly and cage file buttons and their row-width reservations. Cover smaller and larger control sizes in the bake UI regression test.
2026-11-04 21:49:36 -05:00
chasse20 97880c7f05 Derive standard control sizes from the active theme
Use theme control heights for toolbar, path, asset, property, bake and browser export controls. Keep width calculations in sync with the rendered controls and verify narrow toolbars at three theme sizes.
2026-11-04 21:22:46 -05:00
chasse20 70b7029b66 Fix toolbar overflow in narrow viewports
Keep mode buttons accessible while view controls join the scrolling strip when space is tight. Respect the remaining clip width, simplify the layout, translate view hints, and add toolbar interaction and visual checks.
2026-11-04 21:06:18 -05:00
vangel76andClaude Sonnet 5.5 8eb2c83e04 Restore #[test] attribute lost in merge
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 02:57:27 +01:00
vangel76andClaude Sonnet 5.5 dcb048b5b4 Merge upstream/main into fix/save-over-load-limit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 02:52:41 +01:00
vangel76andClaude Sonnet 5.5 1f07beeb43 Drop unused Body import after merge
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 02:44:41 +01:00
vangel76andClaude Sonnet 5.5 d1fd8fd753 Merge upstream/main into perf/parallel-project-save
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 02:43:23 +01:00
Chris Hassebrook 51085093c3 Merge pull request #248 from storytold/246-bug-report-texturecraft-cannot-open-a-older-file
Recover older projects with incompatible bake settings
2026-11-04 20:23:09 -05:00
RebornimandClaude Opus 5.5 e072a6a546 Document the top bar function
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 01:22:59 +00:00
RebornimandClaude Opus 5.5 f41eda63dd UI: mode buttons at the right end of the top bar, tool controls scroll when they don't fit
The Painting, Bake and Render buttons move from the left tool shelf to the
right end of the top bar, which now shows in every mode. The view and mode
buttons keep their place; the tool controls scroll in their own strip with
arrow buttons and the horizontal wheel instead of drawing over them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 01:05:40 +00:00
chasse20 b978bc9525 Recover older project settings 2026-11-04 18:57:05 -05:00
vangel76andClaude Sonnet 5.5 81281c1a0a Merge upstream/main into fix/clippy-chunks-exact-to-as-chunks
Upstream removed bake/maps.rs, engine/tests/auto_rebake.rs and read_skew
(moved elsewhere); take the deletions. Convert two new chunks_exact uses in
bake/test/setting.rs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 00:06:23 +01:00
Dylan M. Taylor a09297feb9 Pass the Linux signing key to the release workflow (#242) 2026-11-04 17:45:29 -05:00
Chris Hassebrook 38c83f8919 Merge pull request #240 from storytold/239-agents-addendum
Little helper for AGENTS.md to prevent any application name leakage
2026-11-04 12:56:40 -05:00
Dylan M. Taylor 347bda840d Release TextureCraft 0.3.1 v0.3.1 2026-11-04 12:34:09 -05:00
Dylan M. Taylor 4c4f71330f Honor release version in packaging 2026-11-04 12:30:01 -05:00
Dylan M. Taylor faa698a70f Enable Flatpak OCI publishing 2026-11-04 12:29:02 -05:00
Dylan M. Taylor 37ad2112ca ci: add SonarCloud analysis 2026-11-04 09:47:51 -05:00
chasse20 60cc555dae Little helper for AGENTS.md to prevent any application name leakage 2026-11-04 05:14:40 -05:00
chasse20 e0d11e0227 docs: restore Adobe Painter references in agent guidance 2026-11-04 05:02:13 -05:00
Chris Hassebrook f2c3047053 Merge pull request #197 from Rebornim/feat/curvature-per-texel
Bake: curvature from short rays around each texel, on the GPU when there is one
2026-11-04 04:37:19 -05:00
chasse20 a2df25c956 Merge main and resolve Bake conflicts 2026-11-04 04:14:19 -05:00
chasse20 799a4c8908 Keep PR review guidelines local 2026-11-04 04:05:05 -05:00
chasse20 18a3c98176 Implement clean-room bake settings and improve map accuracy 2026-11-04 03:57:46 -05:00
chasse20 e4405760f1 Major refactor of Bake Mode settings and some UI, lots of cleanup for parity 2026-11-04 02:15:08 -05:00
Chris Hassebrook 5c455e0cc8 Merge pull request #236 from storytold/chasse20-patch-1
Add guideline to avoid naming reference product
2026-11-04 01:27:18 -05:00
Chris Hassebrook a3a3ce3f35 Merge pull request #237 from storytold/coderabbitai/chat/d00d0e9
📝 CodeRabbit Chat: Replace reference product and vendor names in AGENTS.md with neutral wording
2026-11-04 01:09:31 -05:00
coderabbitai[bot] 56cd36a433 📝 CodeRabbit Chat: Replace reference product and vendor names in AGENTS.md with neutral wording
<!-- coderabbit-ai-generated:v1 -->
2026-11-04 04:36:04 +00:00
Chris Hassebrook d00d0e9264 Add guideline to avoid naming reference product
Added a guideline to avoid naming the reference product in various contexts.
2026-11-03 22:19:19 -05:00
vangel76andClaude Sonnet 5.5 bc563f504a Fix the remaining Rust 1.99 clippy findings
Use slice fill in the particles test (manual_slice_fill) and
AtomicUsize::try_update, the renamed fetch_update, in the connection
limiter. Both are behaviour-neutral.

Refs #233

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 01:40:30 +01:00
vangel76andClaude Sonnet 5.5 715baf4760 Use as_chunks where the chunk size is a constant
Clippy 1.99 flags chunks_exact and chunks_exact_mut with a constant
chunk size (chunks_exact_to_as_chunks). Switch those call sites to
as_chunks / as_chunks_mut. Behaviour is unchanged: the trailing partial
chunk was already dropped.

Fixes #233

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 01:36:12 +01:00
Chris Hassebrook 6f35d7b540 Merge pull request #221 from Rebornim/fix/ao-painter-defaults
Bake: ambient occlusion defaults of 64 rays and a tenth of the diagonal, linear falloff
2026-11-03 19:00:09 -05:00
vangel76andClaude Sonnet 5.5 d7ae9891ef Parallel save: stream entries when no worker thread starts
Review point: with no worker thread the fallback built a whole in-memory zip per
entry; it now writes each entry straight into the file like the serial writer,
and the test covers that path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 00:45:24 +01:00
vangel76andClaude Sonnet 5.5 e59bf5569e Add an offset to mesh-map generators
The generator panel had level, softness and noise but no way to lift or lower the finished mask. The new offset is added to the result and clamped to 0..1. The thresholding now lives in Generator::shape, shared by the compositor and the preview.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:36:50 +01:00
vangel76andClaude Sonnet 5.5 e0404360e4 2D view: draw the brush outline under the pointer while painting
Fixes #179

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:42:10 +01:00
RebornimandClaude Opus 5.5 132f5d1f06 Bake: ambient occlusion defaults of 64 rays and a tenth of the diagonal, linear falloff
The secondary-ray maps now start from 64 rays reaching a tenth of the
bounding-box diagonal (was 32 rays and a quarter), the defaults common to
mesh-map bakers. Occlusion falls off linearly with the hit distance instead
of with its square, on the CPU and in the GPU shader, so a hit halfway to the
max distance counts half. Thickness keeps its 0.1 reach and also gets 64 rays;
bent normals still share the occlusion rays.

Tests: a floor under a ceiling at half the max distance bakes 0.5 occlusion
(0.25 with the squared falloff), and the default ray settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:27:42 +00:00
vangel76andClaude Sonnet 5.5 b99ebf7321 Save size check: skip orphan baked sets, clearer message, wider test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:17:57 +01:00
vangel76andClaude Sonnet 5.5 52505ecbc2 Refuse to save a project that could not be opened again
Opening a project file stops at 8 GiB of decompressed data (MAX_TOTAL), but
saving had no matching check, so a too big project saved fine and then failed
to open. Saving now counts the bytes the loader would count and refuses before
the temporary file is created, with an error that names the size and the limit;
the existing file stays as it was. The limit itself is unchanged. A test checks
that the count equals what load counts for a real file.

Fixes #215. Refs #200

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:17:06 +01:00
vangel76andClaude Sonnet 5.5 11d672661f Parallel save: fall back when threads cannot start; release entry share after copy
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:09:19 +01:00
vangel76andClaude Sonnet 5.5 07fec78a53 Compress project file entries on several threads
Saving compressed every zip entry one after the other with deflate level 6 on a
single thread; the baked maps were about three quarters of the time. The entries
are independent, so native builds now compress them on up to 8 worker threads
(one core is left to the UI) and copy the finished entries into the file in the
original order with raw_copy_file. Entry names, order, methods, CRCs and sizes
are unchanged, the format is unchanged, older versions open the files.

Memory stays bounded: a worker only starts an entry while the estimated size of
the entries started and not yet written is under 3 GiB, and baked maps and pixel
tiles stream into the compressor instead of building a raw copy first. wasm and
single-core machines keep the serial writer. The atomic tmp + fsync + rename
path is unchanged.

Refs #200, fixes #214

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 22:07:05 +01:00
RebornimandClaude Opus 5.5 bced280aa1 Bake: curvature from short rays around each texel, on the GPU when there is one
Replace the per-vertex mesh curvature with short ray rings around each
texel, so triangle size no longer decides the result: walls beside the
point (concave), hard edges (convex), the spread of the smooth normals and
true curvature where shading and faces agree. A high poly uses a small
true-curvature radius, and with match by mesh name a part only reads
itself. Rays go through RayScene::closest in bounded chunks, so they run
on the GPU tracer when there is one. Ray is laid out as the shader reads
it and uploads without a copy. Output stays 0..1 with 0.5 flat;
curvatureStrength and curvature_from_normal keep their meaning.
Clean-room implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 07:02:23 +00:00
Chris Hassebrook 9dc33d894e Merge pull request #181 from Silvertree2010/fix/176-bug-paths-with-fill-closed-path
Apply brush symmetry to filled closed paths
2026-11-03 01:15:30 -05:00
chasse20 4e7f6f0114 Fix path fill symmetry culling 2026-11-03 00:57:31 -05:00
Chris Hassebrook 248f189694 Merge pull request #145 from test-bit-sys/fix/bvh-coplanar-large-triangles
geom: prevent degenerate BVH leaves when large and small triangles overlap (#61)
2026-11-03 00:09:59 -05:00
Chris Hassebrookandcoderabbitai[bot] 4d3e145054 Update crates/geom/src/bvh.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-11-02 23:52:45 -05:00