Commit Graph
413 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 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
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
chasse20 a2df25c956 Merge main and resolve Bake conflicts 2026-11-04 04:14:19 -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
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
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
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
chasse20 dd7fd10ad2 Validation and further optimizations 2026-11-02 23:37:53 -05:00
Brandon Thomas 4edb8b86bc Merge pull request #172 from storytold/masks/more-smart-masks
Six more smart masks
2026-11-02 19:28:20 -05:00
Brandon Thomas 6ea72da6e5 Merge remote-tracking branch 'origin/main' into upd-172
# Conflicts:
#	ROADMAP.md
2026-11-02 19:25:12 -05:00
Brandon Thomas f31e6e1078 Merge remote-tracking branch 'origin/main' into upd-166
# Conflicts:
#	crates/formats/src/mesh_import/tests.rs
2026-11-02 19:25:11 -05:00
Brandon Thomas 448c975412 Merge pull request #164 from Silvertree2010/fix/h5814-obj-export-writes-the-model-name
Keep OBJ and MTL header comments on one line
2026-11-02 19:25:01 -05:00
Brandon Thomas c6dbadee5a Merge pull request #163 from Silvertree2010/fix/h5835-ply-import-rejects-valid-files-w
Fix PLY import when face element precedes vertex element
2026-11-02 19:24:56 -05:00
Brandon Thomas f07930ca8b Merge pull request #151 from Silvertree2010/fix/h5395-export-fails-to-write-files-whos
Fix export failing for file names with a max-length stem
2026-11-02 19:24:52 -05:00
Brandon Thomas 0db4a0cdba Merge pull request #144 from Silvertree2010/fix/h5360-saving-a-project-fails-when-two
Make zip entry names unique when saving bake meshes and resources
2026-11-02 19:24:47 -05:00
NetterSilverandClaude Haiku 5.5 1c657979d0 Apply brush symmetry to filled closed paths
Fixes #176

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 22:07:14 +01:00
BFlat 79a5c50ef6 Merge pull request #170 from storytold/materials/more-materials
Nine more procedural materials
2026-11-02 22:20:32 +07:00
bflatastic a21114be26 Merge remote-tracking branch 'origin/main' into masks/more-smart-masks 2026-11-02 22:00:43 +07:00
BFlat 52c0fb3e5b Merge pull request #169 from storytold/export/obj-companion-stems
OBJ exports whose names sanitize alike keep their own MTL and maps
2026-11-02 22:00:13 +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
BFlat a70de38432 Merge pull request #167 from storytold/paint/pen-pressure-2d
Pen pressure thins strokes in the 2D view too
2026-11-02 21:36:40 +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 30c359ce8c The viewport reads the tile scale unfiltered
Neighbouring blocks and coarser mips blended Extra's alpha into a scale that
belongs to neither tile; parallax and height-to-normal now load it at mip 0.
2026-11-02 21:27:28 +07:00
bflatastic 73031031a3 OBJ exports whose names sanitize alike keep their own MTL and maps
`ball 1.obj` and `ball_1.obj` sanitized to the same companion stem, so
exporting both into one folder overwrote each other's .mtl and textures. A
name the sanitizer changes now gets an FNV-1a hash of the original appended;
names that need no change keep their companions as before.
2026-11-02 21:25:46 +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
NetterSilverandClaude Haiku 5.5 c233da2af7 Name unnamed OBJ parts after the file stem
Found while testing crates/formats/src/mesh_import/obj.rs:77 (model.name passed to raw.polygon); stem fallback in mesh_import/mod.rs `read`

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 14:52:17 +01:00
NetterSilverandClaude Haiku 5.5 b6aaf71920 Keep OBJ and MTL header comments on one line
Found while testing crates/formats/src/mesh_export.rs:24

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 14:48:09 +01: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
NetterSilverandClaude Haiku 5.5 6192315968 Fix PLY import when face element precedes vertex element
Found while testing crates/formats/src/mesh_import/ply.rs:164 (nverts is set at line 140)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 14:21:40 +01:00
bflatastic 41dcf2d4ef fix(export): render the implicit material's maps for OBJ only
GLB and USD export the material-less mesh as it is and drop those maps, so
rendering them only cost time.
2026-11-02 20:10:36 +07:00
bflatastic 15a06149d7 OBJ companions are named after the OBJ; the implicit material exports; ids are unique ignoring case 2026-11-02 19:43:54 +07:00
bflatastic 04af749194 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-02 19:28:51 +07:00
BFlat 426aeff80d Merge pull request #154 from storytold/export/obj-mtl
OBJ export writes an MTL material library with each material's maps
2026-11-02 19:28:19 +07:00