Commit Graph
413 Commits
Author SHA1 Message Date
BFlat c26847e21c Merge pull request #79 from Rebornim/fix/thickness-default-max-distance
Bake: thickness max occluder distance defaults to 0.1
2026-11-02 11:07:39 +07:00
bflatastic d5c2f793fd Histogram Scan: full contrast is a threshold
At contrast 1 the narrowest ramp still sent a value equal to the position to mid gray. It now matches Threshold: the position and everything above it go to white.
2026-11-02 10:39:41 +07:00
BFlat b906f41f2e Merge pull request #118 from storytold/filters/histogram-scan-range-shift
Filters: histogram scan, range and shift
2026-11-02 10:38:29 +07:00
BFlat 78e6d7b334 Merge pull request #119 from storytold/materials/ground-and-metals
Materials: platinum, zinc, cobalt, bark, sand, mud, ice, snow and bone
2026-11-02 10:34:38 +07:00
bflatastic 39a2dd9d27 Merge main into filters/histogram-scan-range-shift 2026-11-02 10:27:48 +07:00
BFlat cb1501318f Merge pull request #114 from storytold/levels/histogram
Levels: a histogram of what the effect reads
2026-11-02 10:19:27 +07:00
bflatastic a4cebb790d Merge main into filters/histogram-scan-range-shift 2026-11-02 10:10:15 +07:00
BFlat 050bada434 Merge pull request #117 from storytold/fix/color-picker-copy-icon
Color picker: our own picker with a copy icon from the icon set
2026-11-02 10:09:45 +07:00
bflatastic 4913131cf7 Materials: platinum, zinc, cobalt, bark, sand, mud, ice, snow and bone
Nine procedural materials for the shelf: three metals from measured
reflectance (zinc with crystalline spangles), bark with deep furrows,
fine-grained sand, mud with glossy wet patches, ice with cloudy air
pockets under transmission, and snow and bone with a little subsurface
scattering.
2026-11-02 10:09:29 +07:00
bflatastic d103cc3cfd Leave the material library out of this branch
The new materials belong to their own change.
2026-11-02 10:02:34 +07:00
bflatastic 332cfa4070 Levels histogram: bound the neighbourhood work under a filter
A neighbourhood field covers the bounding box of its tiles, and a
scattered sample spans the whole set, so on an 8K set a blur below the
levels effect evaluated everything. With such a filter below, each
sampled tile now builds its own field.
2026-11-02 10:00:24 +07:00
bflatastic a185e5f951 Filters: histogram scan, range and shift
Three adjustment filters for masks and content: Histogram Scan slides a
ramp through the values (contrast narrows it to a step), Histogram Range
squeezes them towards a position, and Histogram Shift offsets them with
wrap-around. Names and parameters are translated into all nine other UI
languages.
2026-11-02 09:52:09 +07:00
SteamSmithandClaude Sonnet 5.5 e4d879fd5c feat(bake): Auto-rebake treats the skew map as a bake input
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 21:49:39 -05:00
bflatastic 83b8a13131 Levels histogram: sample every column, and read masks of empty layers
An odd tile stride: a power of two divides the row length on
power-of-two sets and read the same few columns. A mask is planned on
its own, so a paint layer with nothing painted still shows its mask's
histogram.
2026-11-02 09:44:28 +07:00
bflatastic 5e37a93e45 Color picker: our own picker with a copy icon from the icon set
The picker's copy button was an emoji the bundled fonts don't draw, and
it lives inside egui's picker. The swatch now opens a compact picker of
its own: R, G and B values with a Phosphor copy button, a
saturation/value square and a hue strip. Hue and saturation survive
black, white and grays. The copy tooltip is translated into all nine
other UI languages.
2026-11-02 09:40:21 +07:00
bflatastic 5f890e584e Web: ask to save before replacing the project or closing the tab
The browser build threw unsaved changes away on New project, Open,
Close, Open sample project or a dropped file, and when the tab closed.
They now wait on the desktop's Save / Don't save / Cancel dialog (Save
downloads the project), and closing or reloading the tab with unsaved
changes makes the browser ask first.
2026-11-02 09:32:25 +07:00
bflatastic d736ffa9af Levels: a histogram of what the effect reads
The Levels effect's properties now show a histogram of its input, the
mask below it or (on layer content) a channel picked above it, with the
input range marked. effect.histogram {effect, channel?, bins?} gives
agents the same counts. Large sets are sampled (at most 256 tiles), so
the cost stays flat up to 8K.
2026-11-02 09:23:59 +07:00
SteamSmith 2263ab0c14 Merge remote-tracking branch 'fork/feat/bake-skew-correction' into feat/auto-rebake-skew
# Conflicts:
#	ROADMAP.md
2026-11-01 20:44:33 -05:00
SteamSmithandClaude Sonnet 5.5 9bb2f91809 feat(bake): paint the skew map in the 2D view
A Skew correction section in the Bake panel turns on a brush (radius, value, hardness) that
paints the map in the 2D view; the map shows as an orange overlay while baking. The 2D view is
shown in bake mode while the brush is on. Strings in all ten languages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 20:44:10 -05:00
BFlat 286f391b39 Merge pull request #111 from storytold/fix/uv-island-fill
Polygon fill: UV island mode follows the UVs across split vertices
2026-11-02 08:42:34 +07:00
BFlat e0ea53ac4c Merge pull request #110 from storytold/fix/ask-to-save-before-replacing
Ask to save before opening, starting or closing another project
2026-11-02 08:41:46 +07:00
bflatastic bd8299c0c7 Merge main into fix/uv-island-fill 2026-11-02 08:27:04 +07:00
BFlat e2b9aa32e9 Merge pull request #109 from storytold/fix/sss-ghosting
Viewport: no ghost edges in the subsurface blur
2026-11-02 08:26:58 +07:00
bflatastic be1e095157 Merge main into fix/ask-to-save-before-replacing
# Conflicts:
#	crates/ui-egui/src/i18n/ar.rs
#	crates/ui-egui/src/i18n/de.rs
#	crates/ui-egui/src/i18n/es.rs
#	crates/ui-egui/src/i18n/fr.rs
#	crates/ui-egui/src/i18n/it.rs
#	crates/ui-egui/src/i18n/ja.rs
#	crates/ui-egui/src/i18n/ko.rs
#	crates/ui-egui/src/i18n/pt_br.rs
#	crates/ui-egui/src/i18n/zh_hans.rs
2026-11-02 08:26:03 +07:00
SteamSmith 650af529e2 Merge remote-tracking branch 'origin/main' into feat/bake-skew-correction
# Conflicts:
#	ROADMAP.md
2026-11-01 20:25:01 -05:00
bflatastic f48d5b6ba4 Ask to save before opening, starting or closing another project
New project, Open, a recent project, a dropped file, Open sample
project and Close replaced a project with unsaved changes without a
word. They now wait on the same Save / Don't save / Cancel dialog as
quitting, and go ahead once the changes are saved or let go.
2026-11-02 08:24:29 +07:00
BFlat aa5e19ce88 Merge pull request #107 from storytold/fix/fabric-materials
Materials: twill for denim and carbon fiber, a pile for velvet
2026-11-02 08:24:24 +07:00
SteamSmithandClaude Sonnet 5.5 e92e04ce50 feat(bake): paint the skew map with bake.skew.paint
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 20:24:02 -05:00
SteamSmithandClaude Sonnet 5.5 8153934f30 feat(bake): save the skew map in the project file
The map is stored as skew.bin next to the high polys and the cage. A map that fails the
baker's checks on load is skipped with a log line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 20:21:43 -05:00
BFlat 3d0525873c Merge pull request #104 from storytold/fix/color-picker-steady
Color picker: keep the popup in place while the color changes
2026-11-02 08:10:34 +07:00
bflatastic 98e282b70d Polygon fill: UV island mode follows the UVs across split vertices
UV island fill grew the island through shared vertex indices. Imported
meshes often split vertices along hard edges, or give every face its
own, while the UVs run on; the fill then stopped at single polygons.
Triangles that share an edge in UV space now form the island.

Fixes #51.
2026-11-02 08:10:21 +07:00
Agapenordev 0f49ec781b Merge remote-tracking branch 'origin/main' into fix/import-gpu-oom 2026-11-02 02:01:42 +01:00
bflatastic ad8c650c09 Merge main into fix/fabric-materials
# Conflicts:
#	crates/ui-egui/src/i18n/ar.rs
#	crates/ui-egui/src/i18n/de.rs
#	crates/ui-egui/src/i18n/es.rs
#	crates/ui-egui/src/i18n/fr.rs
#	crates/ui-egui/src/i18n/it.rs
#	crates/ui-egui/src/i18n/ja.rs
#	crates/ui-egui/src/i18n/ko.rs
#	crates/ui-egui/src/i18n/pt_br.rs
#	crates/ui-egui/src/i18n/zh_hans.rs
2026-11-02 08:01:39 +07:00
BFlat 108d790bcc Merge pull request #103 from storytold/fix/ask-to-save-on-close
Ask to save unsaved changes when the app closes
2026-11-02 07:59:51 +07:00
bflatastic 8efd62aeaa Viewport: no ghost edges in the subsurface blur
Skin and other scattering materials showed copies of the silhouette
running parallel to it: the blur's taps sit pixels apart when the mean
free path is wide on screen, and a tap that left the mesh dropped out
of the sum, so the light stepped at every tap spacing from the edge.
Taps are now shifted per pixel and per accumulated frame, and a tap
across a depth discontinuity takes the centre's light instead of
dropping out.

Fixes #86.
2026-11-02 07:59:35 +07:00
bflatastic 3fea0f6c62 Materials: twill for denim and carbon fiber, a pile for velvet
Carbon Fiber, Fabric Cotton, Denim and Velvet were all the same plain
weave in different colours. A new Twill weave pattern (2/2: diagonal
ribs, the weft darker than the warp) now gives Denim its diagonal and
Carbon Fiber its light and dark tows under a clear coat; Velvet is a
soft pile with no weave under its sheen; Fabric Cotton keeps the plain
weave. Twill weave is also a fill pattern, translated into all nine
other UI languages.

Fixes #97.
2026-11-02 07:53:46 +07:00
AgapenordevandClaude Opus 5.5 8b3cd4db7f Toasts fit the window; a sticky one can always be dismissed
Review: the text wrapped at the full width with the dismiss button after
it, so on a narrow window the toast spilled past the screen edge, and a
long notice could grow taller than the window and clip its button.
Toasts are now at most the window's width (and 360 points), the text
wraps in the width the button leaves and scrolls past a share of the
window's height, and long texture set names are shortened in the GPU
memory notice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:50:07 +01:00
bflatastic 0a13426b6d Color picker: keep the popup in place while the color changes
The picker's R, G and B values were its widest row, so the popup grew
and shrank as they gained or lost digits; anchored at the right edge of
the Properties panel, the whole picker slid sideways under the cursor.
The square and hue slider are now wider than that row at any value.

Fixes #93.
2026-11-02 07:45:24 +07:00
bflatastic 85c749bb1b Ask to save unsaved changes when the app closes
Closing the window (or File > Quit) with unsaved changes now keeps the
app open and asks: Save, Don't save or Cancel. A cancelled or failed
save keeps the app and the dialog open. Strings translated into all
nine other UI languages.

Fixes #100.
2026-11-02 07:41:01 +07:00
bflatastic fe2e1545a6 Layers: Ctrl+C, Ctrl+X and Ctrl+V copy, cut and paste a layer
The desktop and web shells deliver these keys as clipboard events, not
key presses, so the layer shortcuts never fired. Outside a text field
the clipboard events now run the shortcuts bound to Ctrl+C, Ctrl+X and
Ctrl+V. Copying a layer by shortcut puts its name on the system
clipboard, since Ctrl+V only reaches the app while that holds text or
an image. Layer rows carry their name for screen readers and tests.

Fixes #90, fixes #94.
2026-11-02 07:36:27 +07:00
SteamSmithandClaude Sonnet 5.5 7a59356a33 test: remove the MaterialX export scratch folders when the test ends
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 19:26:57 -05:00
Agapenordev ce1932949a Merge remote-tracking branch 'origin/main' into fix/paint-with-filter-selected 2026-11-02 01:25:06 +01:00
AgapenordevandClaude Opus 5.5 aff63b567c Translations: the filter hint in its alphabetical place
The tables are sorted by English key with new strings appended at the
end, so every open PR that adds strings conflicts there. This key now
sits in its sorted slot, away from the shared tail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:25:06 +01:00
Agapenordev fd9768a28d Merge remote-tracking branch 'origin/main' into fix/import-gpu-oom 2026-11-02 01:24:39 +01:00
AgapenordevandClaude Opus 5.5 cecc5141ad Translations: GPU notices in their alphabetical place
The tables are sorted by English key with new strings appended at the
end, so every open PR that adds strings conflicts there. These keys now
sit in their sorted slots, away from the shared tail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:24:39 +01:00
SteamSmith fac42eac33 Merge feat/materialx-export into feat/export-colour-space 2026-11-01 19:10:21 -05:00
bflatastic 69df38ffea Texture Set List: show all, hide all, invert, and focus on one set
An eye menu above the list shows, hides or inverts every texture set;
the focus button shows only the active one, and shows them all again
when pressed a second time. textureSet.visibility {mode} does the same
for agents.

Fixes #72.
2026-11-02 07:07:45 +07:00
BFlat fcd1d28e5f Merge pull request #96 from storytold/ui/alt-click-solo-channel
Material channels: Alt+click keeps one channel
2026-11-02 07:07:25 +07:00
BFlat cd518ae8eb Merge pull request #95 from storytold/fix/effect-sliders
Effect sliders apply what they were dragged or clicked to
2026-11-02 07:07:21 +07:00
BFlat 05c44de71c Merge pull request #92 from storytold/viewport/baked-normal
Viewport: show the baked normal map
2026-11-02 06:51:42 +07:00