Commit Graph
113 Commits
Author SHA1 Message Date
chasse20 ed606dfb27 Auto: Integrate main 6e4e081 with saved brush repairs
Merge the latest main project configuration and compositor changes into the reviewed PR tree while preserving the saved shelf repair and removal of the unstable disabled-mask anchor test.
2026-11-17 08:49:57 +00:00
chasse20 f0b7487559 Auto: Integrate current main with reviewed brush presets
Carry forward the approved brush preset repairs alongside the incoming anchor and micro-detail changes. No additional conflict edits were needed.
2026-11-17 06:52:36 +00:00
chasse20 14301d991b Auto: Integrate main and repair named brush persistence
Prevent preset file collisions, preserve trusted headless libraries across project changes, and keep untrusted sessions in memory. Support named and legacy preset files, expose session presets in the shelf, invalidate stale previews, and restore wasm integration guards.

Bound directory selection, avoid deferred thumbnail settings copies, and calculate candidate filename keys once per collision check. Split the new preset types and complete scoped cleanup.
2026-11-17 06:29:38 +00:00
chasse20 a05e7d9419 Auto: Integrate main with Project Configuration
Preserve the reviewed Project Configuration alongside incoming layer-panel, snapshot, and documentation changes.
2026-11-17 06:28:59 +00:00
chasse20 e04368f83d Auto: Integrate main and guard delayed project mesh selections
Keep file-picker answers tied to their original Project Configuration opening, including after UI layout resets.

Split ProjectConfig and TempDir into dedicated files, complete scoped naming/comment/spacing cleanup, and add delayed-answer regressions and a Project Configuration snapshot.

Validated with the UI release suite, workspace Clippy, wasm checks, formatting, and diff checks.
2026-11-17 05:56:28 +00:00
chasse20 fd4b06c3e5 Auto: Integrate main and preserve filtered mask anchor values
Retain intermediate filter stages needed by mask anchors, with measured
buffer capacity and release checks. Preserve main's generator and layer
controls while fixing instance-owner validation, micro defaults, inactive
anchor labels, and clipboard dependency reporting. Move MicroDetail into
its own module and complete scoped cleanup.

Validated affected release suites, Clippy, wasm, layering, formatting,
panic_hunt, and the final diff.
2026-11-17 02:55:37 +00:00
chasse20 a43dadbaa5 Auto: Integrate main and preserve tool and compositor fixes
Integrate shared translation catalogs, updated Craft libraries, generator adjustments and input overrides, mesh replacement, shared format readers, and layer-panel controls.

Preserve tool-availability guards, quick-mask path protection, brush-cursor behavior, compositor cache reuse and buffer cleanup, and reduced dirty-tile selection work. Include import and allocation bounds, atomic-save protection, material-link compatibility, regression tests, documentation, and upstream build and packaging updates.
2026-11-15 20:55:47 +00:00
Valentin Klein 0d18d7afb7 Add mesh replacement backend and reimport safeguards (#230)
Add file.changeMesh for trusted local callers while preserving layers, remembered mesh paths, imported images and bake resources. Retain unchanged-layout paint preservation, cache/cage invalidation and stale-bake cancellation safeguards.

The temporary Change mesh menu entry is removed. The Project Configuration 3D Mesh UI will follow separately.

Contributor: @vangel76.

Validated by fresh Ubuntu and Windows CI at the exact head-equivalent tree; QA confirmed the new dependency inputs and named backend/safety regressions.
2026-11-15 13:32:35 -06:00
vangel76andClaude Sonnet 5.5 e9b9d43fd9 Project Configuration: review fixes for the project settings
The UV tile list is read only with a hint to Texture Set Settings (the
old Painter note was wrong here). The normal map format is skipped when
the project already has it, a mesh already changed is not read again by a
retry, and the tests now show strokes moving or staying with the Preserve
box.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 17:09:03 +01:00
vangel76andClaude Sonnet 5.5 91884a9585 Project Configuration: normal map format, UV tiles, import settings
PROJECT SETTINGS sets the project's normal map format on OK and shows the
UV tiles read only. Import settings holds Preserve stroke positions on
mesh, passed as preserveStrokes to file.changeMesh / file.reimportMesh.
A failed OK no longer re-fires from a stored Enter.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 17:04:44 +01:00
vangel76andClaude Sonnet 5.5 a1847a2e24 Edit > Project Configuration: a window with the 3D mesh section
Select... picks another mesh file (ticks Reimport mesh), OK runs
file.changeMesh, or file.reimportMesh when only Reimport mesh is ticked.
The Display panel keeps its own rail icon and View entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 16:51:26 +01:00
vangel76andClaude Sonnet 5.5 5828177d8c Remove the temporary Edit > Change mesh... menu item
The file.changeMesh command stays (trusted local command API and the
control channel); the Project Configuration window will offer it in a
later PR. The command is no longer listed under the Edit menu.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 16:48:37 +01:00
Rebornim e020080bde Shelf icons and the material picker's name
Path gets a pen nib, so it no longer looks like Polygon fill's polygon;
Projection takes the cube-focus icon and Geometry mask a crossed selection.
The color picker copies every channel of the material under the cursor, so it
is now called the material picker (its command id and key stay).
2026-11-11 07:27:36 +00:00
vangel76andClaude Sonnet 5.5 b944a04cd2 Merge upstream/main into fix/205-change-mesh
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 22:01:17 +01:00
Rafael Mendes 732f6bae28 Anchor points in masks, generator micro detail, effect rename
Anchor point effects can now sit in a mask, where they record the mask
value at their place for fills and generators above. Generators take an
anchor's height as micro detail (microAnchor, microAmount). Effects can
be renamed from the Layers panel, and the anchor picker lists anchors
under their own heading.

Closes #389
2026-11-10 17:52:26 -03: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
MistyMystery 28c4702ec8 Brush presets: your own named brushes in the data folder
Save the current brush (size included) and the painted channels as a named
preset kept as a .tcbrush file in the data folder's brushes folder. Use,
rename, replace and delete them from a Brush presets popover in the brush
options and from the shelf's My brushes list. New commands:
brush.preset.store, brush.preset.rename, brush.preset.delete;
brush.preset.list and brush.preset.apply now cover the user's presets too.
Older bare .tcbrush files are picked up under their file name.
2026-11-05 06:52:57 +04:00
vangel76andClaude Sonnet 5.5 e840fa65ec Add Edit > Change mesh... (file.changeMesh) to move a project onto another mesh
Reimport mesh only re-read the project's own copy of the mesh, so there was no way to put the layers on a different mesh. The new command takes a mesh file, keeps layers, texture sets and settings, and carries painted strokes over by default.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:25:06 +01:00
Brandon Thomas 6ea72da6e5 Merge remote-tracking branch 'origin/main' into upd-172
# Conflicts:
#	ROADMAP.md
2026-11-02 19:25:12 -05:00
bflatastic a21114be26 Merge remote-tracking branch 'origin/main' into masks/more-smart-masks 2026-11-02 22:00:43 +07:00
bflatastic 55e5fcabf7 Merge remote-tracking branch 'origin/main' into materials/more-materials
# Conflicts:
#	ROADMAP.md
2026-11-02 21:48:56 +07:00
BFlat 623c1d5508 Merge pull request #168 from storytold/texturesets/tile-scaled-filters
Filter radii and height slopes follow each UV tile's own resolution
2026-11-02 21:48:33 +07:00
bflatastic 5ea7a91a42 Six more smart masks: snow from top, moss from ground, rust in cavities, edge scratches, dirt streaks, occluded areas
18 -> 24 smart masks, built from the existing mesh-map generators and
triplanar patterns.
2026-11-02 21:48:11 +07:00
bflatastic aa1d9a5f79 Nine more procedural materials: maple, cherry, bamboo, cobblestone, gravel, plaster, linen, wool, moss
63 -> 72 materials. Cobblestone uses rounded cells with sunken joints, gravel
fine Voronoi stones, plaster a soft troweled tooth; linen a coarse weave, wool
and moss a soft sheen.
2026-11-02 21:36:14 +07:00
bflatastic 67a5cb3a09 A light pen tap paints a small dab
A pen lifts reporting no pressure, and a tap paints on that frame, so a tap
painted at full pressure. The release now keeps the pen's contact pressure (a
touch without pressure, such as a finger, starts fresh).

Browsers report pen pressure only for pens that send touch events; desktop
browsers deliver pens as a mouse, so the docs say so.
2026-11-02 21:20:04 +07:00
bflatastic 6dabe66324 Filter radii and height slopes follow each UV tile's own resolution
A UV tile with a lower resolution than its atlas block fills the block's
corner, so it has fewer texels per UV unit. Neighbourhood filters (blur,
sharpen, warps, bevel, glow, ...) and height-to-normal slopes used the block's
texel density for every tile, so such a tile blurred twice as wide and showed
twice as steep slopes in UV space.

TextureSet::block_scales gives each block's share; the compositor filters each
block at its tile's radius, texture export and the CPU path tracer scale the
slope by it, and the display packs it into the Extra texture's alpha for the
viewport and GPU path tracer shaders (parallax too).
2026-11-02 21:08:35 +07:00
bflatastic 099c3b1b5c Pen pressure thins strokes in the 2D view too
The 2D view painted at full pressure whatever the pen reported; it now reads
the same touch force as the 3D view. Docs say where pen pressure works today
(Windows Ink and the browser) and that Linux and macOS pens arrive as a mouse
until the windowing layer reports them.
2026-11-02 20:36:48 +07:00
bflatastic 04af749194 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-02 19:28:51 +07:00
bflatastic 8dc6e533b7 UV-tiled sets take mesh maps from one image per tile 2026-11-02 18:57:37 +07:00
bflatastic 281b343c22 Merge remote-tracking branch 'origin/main' into export/obj-mtl 2026-11-02 18:46:47 +07:00
bflatastic 92e92ff779 OBJ export writes an MTL material library with each material's maps 2026-11-02 18:20:21 +07:00
bflatastic fe02cd266d Fill normal images can be marked DirectX: their green flips where a normal channel samples them 2026-11-02 17:52:31 +07:00
BFlat c2c5987bf2 Merge pull request #143 from storytold/fill/uv-transform
Fill projection: UV rotation and offset, sharpness, axis and offset
2026-11-02 16:12:24 +07:00
bflatastic 8657bfdc31 Image fills take a projection's fields without naming it; docs wording
layer.add.image read the projection params only when `projection` was
given, so an offset or rotation alone was dropped. The features list no
longer promises a cylindrical offset.
2026-11-02 15:59:26 +07:00
bflatastic 74383d7625 Merge remote-tracking branch 'origin/main' into fill/uv-transform 2026-11-02 15:01:45 +07:00
bflatastic 19c761f62c Merge remote-tracking branch 'origin/main' into sets/normal-map-format 2026-11-02 14:54:01 +07:00
bflatastic 9faf90c702 Normal map format: fill images keep reading as OpenGL
Flipping every fill image on a normal channel in a DirectX project
would also flip the OpenGL maps MaterialX import puts there, and change
how existing DirectX projects look. Fill images read as before; the
setting covers mesh map images (converted when set, so the tooltip
says to set them again) and the export default.
2026-11-02 14:54:01 +07:00
bflatastic 643a085d8e Fill projection: UV rotation and offset, sharpness, axis and offset
A fill's properties showed only its projection and scale, and
layer.fill.projection rebuilt the projection from its params, so
changing the scale reset a rotation set before and no offset could be
set at all. The command now changes only the fields it is given
(scale, also per axis; rotation; offset; sharpness; axis) and keeps the
rest while the kind stays the same. Properties show the UV rotation and
offset, the tri-planar blend sharpness, and the axis and world offset
of planar and cylindrical projections.
2026-11-02 14:49:14 +07:00
BFlat 19da5379d7 Merge pull request #131 from storytold/feat/cross-app-materials
MaterialCraft materials: .mcmat fills with live graph inputs
2026-11-02 14:36:20 +07:00
bflatastic 62229b41d4 Merge remote-tracking branch 'origin/main' into sets/normal-map-format 2026-11-02 14:30:54 +07:00
BFlat cad425c249 Merge pull request #139 from storytold/settings/data-folder
Settings: a data folder on any drive
2026-11-02 14:30:40 +07:00
bflatastic dd750cb3f6 Normal map format: in Texture Set Settings, and fill images follow it
The project's normal map format (OpenGL or DirectX) could only be set
by command or a template, and fill images on a normal channel were
always read as OpenGL, so a DirectX map's detail came out inverted.
Texture Set Settings now has a Normal map format row, and a fill's
image on a normal channel is read in that format, as mesh map images
already were. A change of format recomposites the sets.
2026-11-02 14:29:38 +07:00
bflatastic ec30388787 Settings: a data folder on any drive
Autosaves, smart materials, brush and export presets, project templates
and UI layouts always went to Documents/TextureCraft, which fills the
system drive. Settings > Folders > Data folder points them anywhere;
the choice applies on restart, and an export folder still at its
default follows it.

Refs #105.
2026-11-02 14:06:51 +07:00
bflatasticandClaude Opus 5.5 2bf551f2a2 Merge origin/main into feat/cross-app-materials
Keeps both sides of the translation tables, AGENTS rules and the formats module list;
material files in the browser load before the ask-to-save step (they add a layer, not a
new project); Arabic for the eight MaterialCraft strings; menu parity regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 13:45:27 +07:00
bflatastic 6d71d2fc38 Fill channels take an image from their source menu
A fill channel's source menu offered a uniform value, procedurals and
anchors, but no image, so a normal or roughness map could not be put on
its channel. The menu now lists the image resources and Import..., and
an image dropped from the Assets panel onto a channel becomes its
source. The mesh map slots share the same menu and drop target.

Fixes #127.
2026-11-02 13:43:40 +07:00
bflatastic 8c94d053b4 Merge remote-tracking branch 'origin/main' into effects/copy-paste 2026-11-02 12:20:06 +07:00
BFlat e9409b696b Merge pull request #126 from storytold/history/jump-to-step
History: click a step to return to it
2026-11-02 12:19:57 +07:00
bflatastic fbceb95242 Effects: Delete and Ctrl+D act on a selected effect
With an effect selected, Delete removed its whole layer and Ctrl+D
duplicated the layer. Both now act on the effect, like the clipboard
shortcuts; effect commands default to the selected effect.
2026-11-02 12:19:21 +07:00
BFlat 73043fd4b3 Merge pull request #125 from storytold/brush/ctrl-drag
Brush: Ctrl+drag sets size, hardness, flow and angle
2026-11-02 12:14:05 +07:00
bflatastic 4ca9f424f4 Effects: copy, cut and paste between layers
An effect's context menu copies, cuts and pastes it, and Ctrl+C,
Ctrl+X and Ctrl+V act on a selected effect (pasting a copied one above
the selected effect, or on top of the selected content or mask).
Painted strokes come along, resampled to the target set; generators
and other one-stack effects go to their stack, and a fill reading an
anchor point needs one below its new layer. effect.copy, effect.cut
and effect.paste share the layer clipboard.
2026-11-02 12:13:39 +07:00