Commit Graph
12946 Commits
Author SHA1 Message Date
BFlat d5a421a76a Merge pull request #4406 from dotCooCoo/fix/raster3d-crossing-tie
raster3d: a clipped edge crosses at the same corner in both directions when its distances tie
2026-11-30 14:44:26 +07:00
bflatastic 10bc5c49b3 Merge remote-tracking branch 'origin/main' into res-4406
# Conflicts:
#	crates/raster3d/src/raster.rs
2026-11-30 14:19:41 +07:00
BFlat aa82ca199c Merge pull request #4349 from dotCooCoo/fix/gpu-device-loss-followup
GPU: reads, polls and uploads report device loss from a destroyed shared device
2026-11-30 14:19:23 +07:00
BFlat 9a3c1c1b79 Merge pull request #4393 from dotCooCoo/fix/save-for-web-shift-runtime
Save for Web: the Color Table shows Shift or Unshift by the selected colors' web shift, and Unshift sends only web-shifted colors
2026-11-30 14:19:16 +07:00
BFlat 957ddb513c Merge pull request #4392 from dotCooCoo/fix/mesh-ops-gbuffer-triangle-once
mesh-ops: the UV G-buffer rasterizes a triangle once when two submeshes list it
2026-11-30 14:19:08 +07:00
BFlat 14f4e46706 Merge pull request #4398 from dotCooCoo/fix/mesh-ops-uv-tile-border
craft-mesh-ops: material UV maps split vertices on a tile border
2026-11-30 14:19:00 +07:00
BFlat 510c21408c Merge pull request #4415 from dotCooCoo/fix/mesh-ops-tangent-scale
craft-mesh-ops: per-corner tangents keep their direction when the UV gradient is huge
2026-11-30 14:18:53 +07:00
BFlat 99c4c7b5c4 Merge pull request #4411 from dotCooCoo/fix/raster3d-projection-precision
raster3d: shared corners project to the same screen point on the f32 and f64 paths
2026-11-30 14:18:46 +07:00
BFlat 2076fa3251 Merge pull request #4402 from dotCooCoo/fix/raster3d-fallback-test-counter
raster3d: count fallback coverage tests per render instead of in a process-wide static
2026-11-30 14:18:38 +07:00
BFlat a974f956ff Merge pull request #4400 from dotCooCoo/fix/silhouette-space-glyph-owner
silhouette-studio: a path after a text's trailing space is not read as a letter
2026-11-30 14:18:29 +07:00
BFlat 3ee37806d8 Merge pull request #4417 from dotCooCoo/fix/silhouette-writer-docs
silhouette-studio: writer module docs describe the format only
2026-11-30 14:18:21 +07:00
BFlat 815ddb5d47 Merge pull request #4399 from dotCooCoo/fix/silhouette-close-continue
silhouette-studio: segments after a close start a new contour instead of being dropped
2026-11-30 14:18:13 +07:00
BFlat eff5b9a412 Merge pull request #4407 from dotCooCoo/fix/image-codecs-tests-without-tiff
image-codecs: tests pass with the tiff feature off
2026-11-30 14:18:06 +07:00
dotCooCoo c1900c2ffa silhouette-studio: writer module docs describe the format only
The module docs of the .studio3 writer described the application build and steps used to work out and check the format. They now state what the writer writes and which section it leaves out.
2026-11-29 21:48:41 -08:00
dotCooCoo 5b434c9f14 craft-mesh-ops: per-corner tangents keep their direction when the UV gradient is huge
The per-corner tangent fallback normalized each face's UV gradient with
try_normalize, which squares the components. A finite gradient above
about 1e154 (large positions over a nearly degenerate UV triangle)
overflowed f64 there, so the face tangent became +X and the gradient
dropped out of the angle-weighted average at shared corners.

Both normalizations now divide by the largest component first.
2026-11-29 21:45:37 -08:00
dotCooCoo dac426addb GPU: a fault recorded by a second-pass map error probe fails the reads still waiting
When a map error first appeared on poll_reads' second pass and its
device-loss probe recorded a validation error, the call returned the map
error and left the other reads pending. A third pass now runs only when
a polling fault is recorded, and fails those reads in the same call.
The salvage path also reads the non-out-of-memory error flag again after
it sees a loss, before it copies mapped bytes.

docs/gpu-backends.md states when a mapped read returns its bytes after
the call detects a loss.
2026-11-29 21:42:31 -08:00
dotCooCoo 3b879c8836 silhouette-studio: a path after a trailing tab or line break is not read as a letter
A tab, line feed or carriage return has a glyph record but no outline, like a
space, so its record no longer claims the path saved after it. Other whitespace
characters, such as U+1680 OGHAM SPACE MARK, can have outlines and keep them.
2026-11-29 21:38:33 -08:00
dotCooCoo 0fac2ef224 Merge main into fix/raster3d-fallback-test-counter 2026-11-29 21:28:51 -08:00
dotCooCoo c8beb6de25 raster3d: project corners shared with the f64 path the same way as the f32 path
A triangle with a corner whose 1/w overflows f32 is projected in f64, while
its neighbors are projected from f32 clip coordinates. A corner on the edge
they share landed on screen points about 5e-6 px apart, so pixel centers in
between were covered twice or not at all.

The f64 projection now projects each corner that the f32 projection can
handle exactly as the f32 projection does. Only corners whose 1/w overflows,
or that were clipped in f64, keep the f64 division.
2026-11-29 21:20:05 -08:00
dotCooCoo 8088370948 GPU: a map error collects reads that mapped during its probe before failing the rest on device loss
poll_reads skipped the rescan after a map error when the callback counter
had not changed since the scan. A callback stores its result before it
increments the counter, so a read that mapped during the scan was skipped
and then failed with DeviceLost. The counter is removed, and poll_reads
always collects mapped reads after a map error probe unless an error
disqualifies them.
2026-11-29 21:19:42 -08:00
dotCooCoo 6fd0800e2c image-codecs: tests pass with the tiff feature off
Two tests encoded a TIFF without checking the `tiff` feature, so
`cargo test -p craft-image-codecs` failed in a build that leaves TIFF out:
`resolution_probe::tests::agrees_with_decode_for_encoded_files` and
`fidelity::float_to_exr_and_tiff_is_clean`. Both now skip the TIFF case
when the feature is off and still check their other formats.
2026-11-29 21:12:12 -08:00
dotCooCoo 166d470acf raster3d: a clipped edge crosses at the same corner in both directions when its distances tie
When both corners of an edge lie equally far from a clip plane, crossing_f64 interpolated from whichever corner came first, so the two triangles sharing the edge could get crossings that differ in the last bit and leave a crack between them. A tie now starts from the corner that sorts first by its coordinates and weights.
2026-11-29 21:04:33 -08:00
Whatever Industries aa7e668ec6 media: expose MXF package identity and timing for FilmCraft component media (#3776)
Expose MXF package identity and material timing for component media. Keep readable descriptor fallback while withholding ambiguous identity, and preserve earlier project data through schema 21.
2026-11-29 23:00:06 -06:00
BFlat 5190e08ab8 Merge pull request #2985 from dotCooCoo/feat/craft-raster3d-parallel
craft-raster3d: rayon is optional behind a parallel feature
2026-11-30 11:30:06 +07:00
BFlat 680e58d3a1 Merge pull request #3463 from dotCooCoo/fix/footer-bar-wraps
ui-panels: a footer bar too narrow for its buttons or actions continues them on a new line inside it
2026-11-30 11:30:01 +07:00
dotCooCoo f3dd5d52e9 raster3d: count fallback coverage tests per render, not in a static
The work-limit test for the search under discarded pixels read a
process-wide counter that the shipped fallback path added to in test
builds, so any other test that renders discarded pixels in parallel
could change its count. try_render now calls a private render that
takes the counter as a test-only argument, and the test passes its own.
2026-11-29 20:21:06 -08:00
dotCooCoo 4ec6ef01ae silhouette-studio: a path after a text's trailing space is not read as a letter
A space has a glyph record but no outline. When a text object ended with
a space and the next object was an ordinary path, the importer matched
the space's record to that path and reported the path as one of the
text's letters. A space's record no longer claims the outline after it.
2026-11-29 20:09:47 -08:00
bflatastic 8978358d31 ui-panels: the footer wrap trial compares with the top line, not the first label 2026-11-30 11:01:16 +07:00
dotCooCoo 7c55aea94e craft-silhouette-studio: segments after a close start a new contour instead of being dropped
WriteContour::from_path ended the current contour at ClosePath, and a
LineTo, QuadTo or CurveTo that followed without a MoveTo found no contour
and was skipped, so the written file lost those segments. Such a segment
now starts a new contour at the closed contour's first node, which is
where kurbo and SVG place the pen after a close.
2026-11-29 20:01:09 -08:00
dotCooCoo 0e9bc25b8c craft-mesh-ops: material UV maps split vertices on a tile border
map_material_uvs_with mapped each vertex once, with the centroid of the
first of the material's triangles that used it. A vertex on a tile
border under a piecewise map then took that triangle's tile for every
other triangle as well. Each corner is now mapped with its own
triangle's centroid, and a vertex whose corners map to different UVs
gets one copy per distinct result. map_material_uvs still calls its map
once per vertex and never splits.
2026-11-29 19:58:01 -08:00
dotCooCoo 3407288b59 Save for Web: the color table marks web-shifted colors through the runtime focus and key APIs
TableMarks::web_shifted lets the host report which palette colors are
web-shifted. When it is set, the Color Table shows Shift to Web Palette
for colors that are not web-shifted and Unshift Colors for ones that
are; a mixed selection shows both, and Unshift sends only the
web-shifted colors, so a hand-picked color in the selection stays as it
is. A host that leaves it None keeps both buttons as before.

When the focused Shift or Unshift button goes away, focus moves to the
remaining web action, or to the Color Table menu. The dialog reads focus
through runtime::focus, presses through the pointer frame and keys
through the input hook's record.

This brings back #3855, reverted in #3886, without egui memory or raw
key reads in save_for_web/options.rs.
2026-11-29 19:52:51 -08:00
dotCooCoo 9f4d2c583c craft-mesh-ops: the UV G-buffer rasterizes a triangle once when two submeshes list it
UvGBuffer::new binned every triangle of each submesh of the material, so a
triangle that two submeshes of one material list was rasterized twice and
counted as overlapping itself at every texel it covers. Each triangle is now
binned at its last listing only, so the later listing still wins where
distinct triangles overlap. Submesh ranges are clamped to the mesh's
triangle count.
2026-11-29 19:52:05 -08:00
bflatastic 18dfdba5ed Merge remote-tracking branch 'origin/main' into res-2985
# Conflicts:
#	crates/raster3d/src/lib.rs
#	crates/raster3d/src/raster.rs
2026-11-30 10:51:00 +07:00
BFlat 6a4729d5af Merge pull request #4298 from dotCooCoo/feat/mesh-ops-split-tangent-seams
craft-mesh-ops: compute_tangents_split splits vertices at mirrored UV seams
2026-11-30 10:48:51 +07:00
Dylan M. Taylor 716a24ce40 svg(paths): preserve source group ancestry during import (#4374)
* svg(paths): preserve source group ancestry during import

* svg(paths): support namespaced group metadata attributes
2026-11-29 22:38:29 -05:00
dotCooCoo def18a6f21 Merge main into fix/footer-bar-wraps 2026-11-29 19:33:32 -08:00
dotCooCoo ca902a4ad2 Merge main into feat/craft-raster3d-parallel 2026-11-29 19:28:58 -08:00
BFlat 891f4060c4 Merge pull request #4365 from dotCooCoo/fix/raster3d-near-plane-depth
craft-raster3d: clip depth crossings that round far off the plane again in f64
2026-11-30 10:28:40 +07:00
FredApps d45308b704 Merge pull request #4384 from storytold/fix/figcraft-native-image-dimensions
Preserve native FigCraft image dimensions in header reads
2026-11-30 04:24:21 +01:00
BFlat 074e2a6ac0 Merge pull request #4356 from dotCooCoo/fix/raster3d-inverse-square-falloff
craft-raster3d: keep inverse-square falloff at or below 1
2026-11-30 10:24:06 +07:00
BFlat 08196cfe6b Merge pull request #4363 from dotCooCoo/fix/raster3d-fallback-work-count
craft-raster3d: charge the search under discarded pixels before its tests
2026-11-30 10:23:59 +07:00
BFlat 19805ced1e Merge pull request #2619 from dotCooCoo/fix/hayro-softmask-self-draw
hayro-interpret: a tiling pattern or Type 3 glyph set outside a form draws that form
2026-11-30 10:15:22 +07:00
BFlat e706a71a01 Merge pull request #4373 from dotCooCoo/feat/wheel-gesture-claims
ui: a canvas body can claim a wheel gesture and mark it modal
2026-11-30 10:15:16 +07:00
dotCooCoo 607aeb0b55 craft-mesh-ops: tangents read glTF UVs with v up again
compute_tangents and compute_tangents_split pass the UVs to MikkTSpace
and to the f64 fallback with v negated, as main did with 1 - v. glTF
UVs run v down the image, so without the flip the bitangent followed
increasing v and every unmirrored mesh got w = -1, which inverts the
green channel of glTF normal maps.

The tests expect w = +1 for unmirrored UVs again, preview_orb sets +1
again, and the primitive check counts mirrored tangents as before and
also checks that each bitangent points up the image. A new test checks
that a plain quad keeps w = +1 with both functions.
2026-11-29 19:14:57 -08:00
dotCooCoo 0737cf1ad1 Merge main into fix/raster3d-near-plane-depth 2026-11-29 19:06:08 -08:00
bflatastic c1fca57111 Merge remote-tracking branch 'origin/main' into res-4356
# Conflicts:
#	crates/raster3d/README.md
2026-11-30 09:59:59 +07:00
bflatastic f86e6d402b Merge remote-tracking branch 'origin/main' into res-4363
# Conflicts:
#	crates/raster3d/tests/it/main.rs
2026-11-30 09:59:59 +07:00
BFlat 6f72e45286 Merge pull request #4362 from dotCooCoo/fix/raster3d-opacity-below-one
craft-raster3d: a material with an opacity below 1 is transparent
2026-11-30 09:59:16 +07:00
BFlat 548ba59ecc Merge pull request #4372 from dotCooCoo/fix/raster3d-shadow-casters
craft-raster3d: shadow casters clipped at the near plane take one f64 fraction when a position difference overflows
2026-11-30 09:59:09 +07:00
BFlat 5f1ef7f524 Merge pull request #4353 from dotCooCoo/fix/raster3d-resolve-large-blocks
craft-raster3d: average resolve blocks of more than 256 subsamples in f64
2026-11-30 09:59:03 +07:00