132 Commits
Author SHA1 Message Date
chasse20 26bf15cf3c Auto: Fix procedural mask scale and reduce fill picker allocations
Apply scalar scale once when creating a procedural mask. Preserve explicit two-axis placement and the projection stored in existing projects. Read placement directly from the command parameters during edits.

Render procedural swatches only for visible picker tiles. Reserve space for the full selection and sort project images in the finished row list. Update the fill documentation for image imports, pattern resolution, and the Gradient Map menu.
2026-11-18 22:38:56 +00:00
chasse20 6f8e984d7a Auto: Integrate main and reduce repeated procedural sampling work
Reuse two fur seed tables per worker, share knot noise, and skip invisible decay and brocade detail. Normalize each catalog lookup once while preserving label and saved-name aliases.

Consolidate periodic sampling helpers, move FurLock into its own module, and strengthen coverage of coarse-grid fallback and saved pattern names. Preserve main's project and Assets changes and document the expanded catalog.
2026-11-18 21:52:15 +00:00
chasse20 9feb78523a Auto: Integrate main and fix project creation and resource imports
Preserve main's empty startup and project-bound dialog behavior. Check for unsaved edits at Create, reject stale mesh picks, and release closed forms' mesh buffers. Transfer the desktop mesh input into the new session after validation.

Retain failed import rows for retry, keep duplicate names within the archive limit, and preserve the active brush alpha during unused-resource cleanup. Remove repeated row scans and idle UV-tooltip formatting, and keep baked-map filenames visible on separate rows.
2026-11-18 17:12:29 +00:00
Morion 8e7bc663fd Fix knotty wood seam, replace coral maze with rotting flesh, test scale coverage
Knotty wood measured the ring a knot pulls towards from the copy of the unit the point was in, so a knot across the top or bottom edge left a horizontal mark when the unit repeated; it is now measured from the knot's own copy, and a test checks that no pattern is rougher across the edge of the unit than across its middle. Coral maze becomes Rotting flesh: folded wet tissue with branching veins and blistered patches of decay. The reptile scales test now asserts that a scale covers every point instead of reading a minimum brightness.
2026-11-18 11:31:25 -05:00
Morion 77eb6a2b85 Merge origin/main into feat/procedural-geometric-tilings 2026-11-18 10:53:50 -05:00
Morion 4993700189 Add organic, fabric, timber and camouflage procedurals
Thirteen seamless patterns: smooth fur, mackerel sky, soft billow, reptile scales, young bark, coral maze, camouflage, knit, basket weave, goose-eye twill, slub silk, strip flooring and knotty wood. Each repeats every unit and takes extreme and non-finite coordinates. Tests cover repetition, range, variation, the seed and the extremes, plus the specific structure of the scales, bark, maze, camouflage tones, weaves and boards.
2026-11-18 10:38:07 -05:00
chasse20 3939886c4b Merge main into the empty-project startup changes
Preserve closed-session guards and project cleanup alongside the new layer, camera and layout controls. Update the menu-order regression for the merged catalog.
2026-11-18 07:03:03 +00:00
chasse20 0ff72b0d46 Auto: Revert export additions and evaluate brush pickup by tile
Remove DDS encoding, its dependency, export options, tests and documentation. Revert the MaterialX export-dialog option and preview additions while retaining engine export support.

Evaluate material-brush and mask Clone/Smudge pickup on demand. Give mask preview and commit an explicit value image. Sample the document in solo mode and avoid redundant export cache invalidation.

Validate saved decal axes, stencil settings and smudge strength. Bound smart-mask reads, write masks atomically and reject external anchor references. Clear stale clone sources on cross-set selection. Reject moves into another set’s folder and use layer positions to detect no-op moves without cloning the project again.

Load saved materials on shelf click and route pinch gestures to viewport zoom. Add regression tests for the affected behaviors.
2026-11-18 05:20:25 +00:00
Morion 5907ad6a45 Merge origin/main into feat/procedural-geometric-tilings 2026-11-17 23:24:15 -05:00
vangel76 fbd6fe92c0 Merge branch 'feat/import-resources-638' into feat/new-project-parity-636 2026-11-18 00:18:57 +01:00
vangel76 a0f9f81ae6 Import resources window with usage, prefix and filter
File > Import resources now opens a window: add files (images and
materials), set an optional name prefix and a usage per file, filter by
usage, remove selected rows, then Import or Cancel. Texture and undefined
import an image resource, environment also lights the scene, alpha also
sets the brush alpha. Color LUT, post effect and the user asset library
target are listed but disabled. resource.import takes an optional prefix.
2026-11-18 00:18:28 +01:00
vangel76 76e8f110ab New project and Project configuration windows follow the reference layout
New project now has BASIC SETTINGS (Select... a mesh file, project
template, document resolution) and a collapsible ADVANCED SETTINGS
section with normal map format, tangent space per fragment, UV tile
settings, import settings, Import baked maps, Physical size and Color
management, each row with an info icon. The form scrolls while Cancel
and Create stay fixed below it; Create waits for a mesh file. The
built-in mesh dropdown, the Name field and the save-as-template
controls are gone; the project is named after the mesh file.

Use UV Tile workflow, Import cameras (new importCameras parameter on
file.new), the template, resolution, normal map format and baked maps
reach the created project. Settings TextureCraft does not have yet are
shown disabled with a "Not available yet" hint; OpenColorIO can be
chosen to see its settings, but the project stays Legacy. In the
browser, Select... uses the browser's file picker.

Edit > Project Configuration gets the same section names and order,
the disabled rows, Physical size (collapsed) and Color management, and
the reference's recompute note above Cancel and OK.

Part of #636.
2026-11-18 00:12:11 +01:00
vangel76 d9bdef92b2 TextureCraft UI parity batch: 45 changes in one commit
Combines 45 open pull requests so the Windows proof build runs once. Included:

- Fill layers can color from dark to light with a gradient map (PR #535, fixes #482)
- Front, side and top views, and F5/F6 switch between perspective and orthographic (PR #539, part of #241)
- Textures export as DDS, with compressed normal and grayscale maps for game engines (PR #543, fixes #354)
- The active layer and the eye in the Layers panel are much easier to see (PR #561, fixes #553)
- Export dialog can also write a MaterialX file for each texture set (PR #563, fixes #558)
- Layers toolbar stays on one row and cut-off layer names show on hover in small windows (PR #564, fixes #560)
- Save a layer's mask as an image file or copy it to the clipboard from the layer menu (PR #565, fixes #559)
- Shift + wheel and Ctrl + wheel change the brush size, and Ctrl+drag brush changes have a fine mode (PR #566, part of #545)
- Select several layers in the Layers panel with Shift+click, Ctrl+click and Ctrl+A (PR #567, fixes #247)
- Pressing F frames the object you are painting, so a floor plane no longer throws off the view (PR #568, fixes #478)
- Save a mask as your own smart mask and reuse it on other layers and projects (PR #569, fixes #562)
- Show one layer alone in the viewport, with or without its mask (PR #570, fixes #544)
- On-screen orbit, pan and zoom buttons let a pen tablet move the 3D and 2D views (PR #573, fixes #288)
- Decals can be mirrored to the opposite side of the mesh across X, Y or Z, with optional U or V flip (PR #576, fixes #272)
- Shift+click lines in the 3D view start at the spot you last painted, even after turning the view (PR #578, fixes #574)
- History steps now name the tool and layer and appear in the interface language (PR #580, fixes #572)
- Path tool keeps your points when you click in the other view and tells you why (PR #582, fixes #575)
- Brush, symmetry and tool settings stay when you open another project or restart the app (PR #584, fixes #571)
- Reset only the panel layout from the Window menu, and Reset UI now asks first (PR #586, fixes #577)
- Output templates ask before deleting and before dropping an unfinished edit (PR #588, fixes #579)
- Clone tool shows its source in the 2D view, forgets it when you switch texture set, and can restart at the source each stroke (PR #590, fixes #581)
- Move the symmetry plane to the model's middle or to a clicked point in one click (PR #591, fixes #585)
- Projection stencil can be dropped in from Assets, moved and reset with fields, turned in snapped steps, and the 2D view says projection works in 3D (PR #593, fixes #583)
- Smudge now shows which channels it drags and lets you switch them (PR #594, fixes #587)
- Save panel layouts under a name and switch between them from the Window menu (PR #595, fixes #589)
- Clone and Smudge now work on layer masks (PR #596, fixes #592)
- A layer image menu test no longer fails when another test switches the interface language (PR #597)
- Clicking a material in the shelf now paints with it instead of adding a layer (PR #599, fixes #305)
- Alt+click on a mask thumbnail now labels the mask view and blanks the other texture sets (PR #605, fixes #600)
- Painting on a texture set that is not active now shows a hint why nothing happens (PR #607, fixes #601)
- Ctrl+Shift+click draws straight lines that snap to 15 degree steps (PR #609, fixes #604)
- Output template channels can be inverted (PR #611, fixes #603)
- Smudge now follows the mirror and radial symmetry planes (PR #613, fixes #602)
- The shortcut list now shows the stencil, clone source, straight line and path gestures (PR #614, fixes #608)
- Symmetry now also mirrors strokes painted in the 2D view (PR #615, fixes #610)
- Decals keep their image's proportions while sizing and can be flipped (PR #617, fixes #606)
- Polygon fill now also fills the mirrored side when symmetry is on (PR #619, fixes #612)
- A decal dragged over a curved or differently facing surface now turns with it instead of tilting or flipping (PR #622, fixes #616)
- Every brush alpha now has size, roundness, contrast and invert settings (PR #623, part of #598)
- Decals placed as a mask can now be sized, turned and moved from Properties like decal layers (PR #624, fixes #618)
- Renaming effects and linking fills to mask anchor points are now tested in the interface (PR #626, fixes #621)
- Path points can be corners, so paths can have hard edges (PR #627, fixes #620)
- Layer menu can apply a layer's blending mode and opacity to all channels, and copy/paste channel blending (PR #631, fixes #629)
- Display Settings can now set glow, vignette, sharpen and film grain (PR #632, fixes #630)
- Every command a key can run can now get a keyboard shortcut (PR #633, fixes #628)

Fixes found while combining them: the named layouts window is drawn again, layer remove/duplicate/group/visibility stay bindable to keys, the Clone tool's Aligned switch is kept with the other tool settings, smudge copies in the 2D view keep their own trails, and a UI or control-channel camera command during a view glide is no longer undone by the glide.
2026-11-17 22:51:06 +01:00
vangel76 398d764fc2 Merge upstream/main 2026-11-17 22:23:12 +01:00
vangel76 bac934d5a5 Start with no project open; File > Close returns to the empty state
Removes the start window and the startup sample project. With no project open the views are empty (view picker only), Layers and Properties are empty, project-only menu items and commands are disabled, and the status bar shows only the version.
2026-11-17 22:00:22 +01:00
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
Morion 920438c73b Merge latest main and retain rewritten roadmap audit 2026-11-17 00:32:18 -05: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
Morion 101206b9cd Merge main into geometric pattern additions 2026-11-16 12:37:57 -05: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
Morion f7a7c11de4 Procedural patterns: halftone dots, diamond brocade and Truchet arcs
Three more geometric tilings:

- Halftone dots: dots on a grid turned 45 degrees, sized by a cloudy tone.
- Diamond brocade: raised diamonds of concentric rings on a twill ground.
- Truchet arcs: quarter-circle arcs that join into winding paths.

The halftone tone comes from a new value noise whose lattice indices wrap,
summed over octaves with a whole number of cells per unit, so the noise and
the dots repeat every unit. All six tilings are now in the seamless test.
Their labels are added to the nine translation tables. In release they take
38 to 85 ns per texel.

Part of #409
2026-11-11 09:44:11 -05:00
Morion 9378d2fe11 Procedural patterns: hexagon tiles, wave scales and herringbone planks
Fills and masks had few geometric tilings. Three new procedurals, generated
in code like the others:

- Hexagon tiles: hexagons with joints and a tone per tile.
- Wave scales: rows of overlapping fans of concentric arcs.
- Herringbone planks: planks three times as long as wide, with gaps, a tone
  and a grain per plank.

Each repeats every unit, tones included, so it tiles without seams; a test
checks that, and another one the joints between hexagons and planks. Their
labels are added to the nine translation tables. In release they take 43 to
62 ns per texel, like Bricks and Twill.

Part of #409
2026-11-11 09:17:14 -05: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