Commit Graph
547 Commits
Author SHA1 Message Date
Chris Hassebrook 30414caa6b Merge pull request #298 from Rebornim/feat/mask-filter-chain
Masks and content stacks run every neighbourhood filter
2026-11-06 10:40:45 -05:00
FredApps e74a882ce4 Merge pull request #302 from storytold/house-rules
Copy the shared house rules into AGENTS.md
2026-11-06 14:59:50 +01:00
FredApps 5da1f689fc docs: route release version bumps through pull requests 2026-11-06 12:41:09 +01:00
FredApps 14f2332a69 Copy the shared house rules into AGENTS.md.
The blocks come from craft-contrib at dde09ea31e2e457f5b4653a6e76f7cdf55944bdf. CLAUDE.md imports AGENTS.md. The house-rules workflow checks the copy.
2026-11-06 11:50:02 +01:00
RebornimandClaude Opus 5.5 19f75c3a00 Smart material previews on the preview orb
Smart material shelf tiles and hover previews render the real material,
applied with materials::apply to the baked preview orb and composited by
the compositor, lit in a dark studio of soft boxes. MaskPreview becomes
OrbPreview (masks and materials share one bake and one worker). Tiles
show a loading icon until their preview arrives; the web takes one
worker request per frame. preview::material keeps plain materials only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 08:16:05 +00:00
Chris Hassebrook 3438ae4a73 Merge pull request #299 from storytold/chasse20-patch-1
Helpful PR review guidelines doc for reviewers
2026-11-06 01:54:23 -05:00
Chris Hassebrook 297fad6fe7 Helpful PR review guidelines doc for reviewers 2026-11-06 01:50:36 -05:00
RebornimandClaude Opus 5.5 f6b2010109 Run every neighbourhood filter of a mask or content stack
Only the last neighbourhood filter of a stack ran; any below it was
skipped silently, so Blur then Warp gave the same result as Warp alone.
field() now runs each one in turn, continuing from the previous field,
over a region widened by what the filters above it read. Stacks with a
single neighbourhood filter are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 06:46:26 +00:00
Chris Hassebrook 3b2866dfb8 Merge pull request #289 from Rebornim/feat/shelf-hover-preview
Shelf hover preview: a big version of the thumbnail
2026-11-06 01:32:59 -05:00
chasse20 03a9870db2 Fix shelf hover previews and clean up comments 2026-11-06 01:12:55 -05:00
chasse20 b35958ec2a Merge main after the bake settings PR 2026-11-06 00:51:56 -05:00
Chris Hassebrook 21c71667c4 Merge pull request #293 from storytold/256-bake-settings-edits-only-apply-to-the-active-texture-set
256 bake settings edits only apply to the active texture set
2026-11-06 00:50:38 -05:00
chasse20 a13e96d8b5 Merge authoritative bake settings and UV tile controls 2026-11-06 00:17:28 -05:00
chasse20 b315cde16a Merge main into shelf hover previews 2026-11-05 23:57:27 -05:00
Chris Hassebrook fd25575680 Merge pull request #290 from Rebornim/feat/drop-on-hovered-set
Drop a shelf material on the texture set under the cursor
2026-11-05 23:36:11 -05:00
chasse20 747068dbdf Fix bake settings and UV tile controls 2026-11-05 22:39:42 -05:00
RebornimandClaude Opus 5.5 a4b62d6e08 Drop a shelf material on the texture set under the cursor
While a material or smart material is dragged over the 3D view, the
texture set under the cursor shows its mesh edges in the accent color;
a drop selects that set and applies the material there. A drop on the
background does nothing. The whole-view outline is gone for materials
in the 3D view; image drops, the 2D view and the brush zone are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 03:05:47 +00:00
RebornimandClaude Opus 5.5 63df2b56e3 Shelf hover preview: a big version of the thumbnail
Hovering a shelf tile shows a 256 pt preview of the asset over its name,
rendered on a long-lived worker (its own thread pool) once the pointer
rests on the tile, newest hover first. The smart mask thumbnails and the
big mask previews share one bake. Renderers take their size as a
parameter; the shelf thumbnails are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 02:13:28 +00:00
Chris Hassebrook cf0dba614e Merge pull request #285 from Rebornim/fix/dialog-height
UI: fit the unsaved-changes dialog to its contents
2026-11-05 19:31:01 -05:00
Chris Hassebrook 0aaf5901c9 Merge pull request #283 from Rebornim/feat/smart-mask-previews
UI: smart mask previews that show the mask
2026-11-05 19:12:49 -05:00
RebornimandClaude Opus 5.5 d9bc1ef6d8 UI: fit the unsaved-changes dialog to its contents
The button row was a right-to-left layout placed straight in the dialog
body, which centres its contents in all the remaining height, so the
auto-sized window grew to 420 px. Wrapping it in a horizontal row (as the
New project dialog does) brings it to 119 px. Adds a regression test on
the dialog's window height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 00:04:49 +00:00
chasse20 476d5ecc8b Guard preview inputs and optimize sparse mask reads 2026-11-05 18:54:07 -05:00
RebornimandClaude Opus 5.5 34ba091e8a Smart mask previews that show the mask
Shelf thumbnails now show each smart mask applied with mask.smart.apply to a
baked preview shape (geom::primitives::preview_orb) and read back from the
compositor (compose::mask_at, a sparse read sharing mask_image's per-tile
code), shaded flat white over a softly lit near-black surface. The shape bakes
once on a worker; preview::smart_mask's world-noise approximation is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:10:02 +00:00
Chris Hassebrook 807c2818cb Merge pull request #267 from Rebornim/feat/split-view-divider
UI: draggable divider between the 3D and 2D views
2026-11-05 16:48:08 -05:00
Chris Hassebrook 10c1fba699 Merge pull request #260 from Aalzard/camera-bookmarks
Camera bookmarks: Ctrl+1…9 and a smooth glide
2026-11-05 16:38:43 -05:00
Chris Hassebrook a318e51f9a Merge pull request #268 from Rebornim/feat/view-dropdowns
UI: view layout and projection dropdowns in the top bar
2026-11-05 16:28:13 -05:00
Chris Hassebrook d8536ed0aa Merge branch 'main' into feat/split-view-divider 2026-11-05 16:25:41 -05:00
Chris Hassebrook 966d3a7252 Merge pull request #257 from Rebornim/feat/bake-mode-layout
Bake mode: mesh map bakers list and per-map settings
2026-11-05 16:23:21 -05:00
RebornimandClaude Opus 5.5 adcc43b077 Smart mask previews that show the mask
Shelf thumbnails now show each smart mask applied with mask.smart.apply to a
baked preview shape (geom::primitives::preview_orb) and read back from the
compositor (compose::mask_at, a sparse read sharing mask_image's per-tile
code), shaded flat white over a softly lit near-black surface. The shape bakes
once on a worker; preview::smart_mask's world-noise approximation is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 20:44:48 +00:00
Agapenor 169221ea4c Mark reimported projects as modified
Mark successfully reimported projects as modified so closing them prompts to save. Keep failed reimports atomic and add saved-project regression coverage.

Thanks @Agapenordev for the fix and regression test.
2026-11-05 17:30:59 +01:00
RebornimandClaude Opus 5.5 23a752156c UI: view layout and projection dropdowns in the top bar
The 3D/2D, 3D-only and 2D-only buttons become one dropdown showing the
current layout's icon, with the same commands and F1-F3 shortcuts. Beside
it, a Perspective / Orthographic dropdown sets the camera through
camera.set, so orthographic no longer hides in the Display Settings
panel. Both use a new icon button with a caret, sharing the icon button
style, and the bar's overflow width counts them.

Test: picking a layout and Orthographic from the menus sets ui.layout and
camera.ortho, and a second click on a dropdown closes its menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 09:47:51 +00:00
MistyMystery d60fb856c9 Live bake preview: the 3D view shows each mesh map as it finishes
A bake started in the app bakes the set's maps one after another (BakeTask::run_streaming, one bake per map, same pixels as a single bake) and streams each finished map from the worker thread. One map is installed per UI poll into the session's bake preview (not the document); the 3D view follows the newest map raw on the model, with maps and sets not baked yet shown neutral, and the bake bar names the stage. The bake bar picks Follow Newest Map, a finished map or Material. The previous view mode comes back when the bake ends, is cancelled or Bake mode is left; painting is paused while a bake is shown. bake.preview, ui.bake.start and ui.bake.cancel expose it on the control channel. New strings are translated in every shipped language.
2026-11-05 13:20:38 +04:00
RebornimandClaude Opus 5.5 62da832811 Draggable divider between the 3D and 2D views
In the split layout the line between the views was fixed at the centre.
It can now be dragged to resize both views live; the position is saved
in UiState::split_ratio (serde default 0.5, so older states load).

- Grab zone of 8 pt around the unchanged 2 pt line, claimed after the
  views so a press there never paints, orbits or pans. Resize cursor on
  hover and drag, no highlight. Left button only.
- Either view can shrink to a 16 pt sliver. A view narrower than its
  300 pt camera and view pickers hides them, and each view is clipped to
  its side of the divider.
- Dragging keeps the 2D texture's on-screen size and offset from the
  view's centre (zoom and horizontal pan are compensated), stopping
  where that zoom would leave the 0.1-40 range the wheel uses.
- The 2D view's edges sit on whole pixels and views render at the pixel
  size egui draws them at, so rounding can't nudge the texture's size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 08:16:53 +00:00
RebornimandClaude Opus 5.5 d5aaea9331 Bake mode: mesh map bakers list and per-map settings
Lay bake mode out as texture sets over a Mesh Map Bakers list, then
Common Settings | Mesh Map Settings tabs, with the log under both
columns. A row's checkbox enables a map for baking; clicking the row
selects it, and Mesh Map Settings shows only the selected map behind a
texture set / map breadcrumb with dropdowns. Selecting never changes
what bakes.

Saved bake docks from before this layout, or that cannot be read, load
as the bake layout instead of the painting default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 05:24:31 +00:00
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 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
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