Commit Graph
896 Commits
Author SHA1 Message Date
Tanish Manku c81de6d649 fix(gpu): submit stage work on the window's device only inside a frame (M8)
The stage renderer shares the window's device and submitted its work from the
render service's threads at any time. A window reconfigures its surface when
it opens and when it is resized, and wgpu fails that when another thread
submits meanwhile: 'Surface::configure: Failed to wait for GPU to come idle
before reconfiguring the Surface'. In 0.2.1 that error was a panic, so
AniCraft closed at start-up or on a resize (#264, #309, and with them the
'won't open' reports #421 #412 #313 #286 #285 #268 #164); since ADR 0092 it
is survived, at the cost of a skipped frame, an autosave and a status line
blaming the graphics driver.

A SubmitGate (crates/gpu) is open while the window's thread runs the app's
frame and closed otherwise, also around windows drawn inside the frame (Test
Movie, floating panels). Work waits for it (asking for a frame), at most
250 ms; the renderer's starting self-test goes through it too.

Measured on Windows 10, RTX 5090, Vulkan, --screenshot starts: the error in
3 of 20 starts before, 0 of 20 after; 2.81 s and 2.80 s per run.
2026-11-17 16:48:36 -07:00
Tanish Manku b0fecda353 fix(xfl): open .fla files whose end record overstates the directory size (M8)
Flash CS5 to Animate write the zip end record with a central directory size
54 bytes too large (the mimetype entry's record) whenever mimetype isn't the
first entry. The shared reader refused those as damaged ('the central
directory is outside the archive'): most real .fla files (#356, #385).

The size is corrected in a copy when the directory holds exactly the entries
counted and ends where the record begins; the shared reader then checks the
copy as it checks any archive. To be dropped when the pinned craft-xfl has
storytold/craft-libs#1986.
2026-11-17 16:33:53 -07:00
Tanish Manku 93bd47e326 Merge pull request #425 from storytold/chore/licence-exceptions
chore(legal): shared-library licence exceptions (MPL-2.0, IJG) and the licence check back in CI (M8)
2026-11-17 16:19:24 -07:00
Tanish Manku a2c4f15553 chore: merge main into chore/licence-exceptions 2026-11-17 15:45:02 -07:00
Tanish Manku ac1bde62c6 Merge pull request #402 from storytold/m5/filter-tracks-2
feat(filters): colour and stepped filter tracks, built-in presets, filters on text (M5)
2026-11-17 15:39:25 -07:00
Tanish Manku c2472cd639 chore: merge main (styled text, mixed armatures) into filter tracks (M5)
Text keeps its filters next to its styled runs. In HTML export, static text in several colours
with filters is one item of pieces (pp), so the pieces share one filtered group as evaluate
draws them; the page's player draws such items piece by piece.
2026-11-17 14:55:39 -07:00
Tanish Manku e1b09fd0f6 Merge pull request #397 from storytold/m7/mixed-armatures
feat(bones): mixed armatures, symbol instances and shapes in one armature (M7)
2026-11-17 14:45:59 -07:00
Tanish Manku b5f3e5f0a8 chore: merge main into m7/mixed-armatures 2026-11-17 14:13:32 -07:00
Tanish Manku 673946fef5 Merge pull request #396 from storytold/m5/rich-text
feat(text): per-character and paragraph styles in text blocks (M5)
2026-11-17 14:07:47 -07:00
Tanish Manku 471049a06c chore: merge main (saved commands, shared crates) into styled text (M5)
The Save As Command and Manage Saved Commands windows open through windows::new, so they stay
below the menu bar like every other floating window.
2026-11-17 13:27:01 -07:00
Tanish Manku 0e5933ce41 chore(legal): accept the shared libraries' MPL-2.0 and IJG crates as exceptions; licence check back in CI (M8)
symphonia (MPL-2.0, via craft-audio) and jpeg-encoder (IJG, via craft-image-codecs) are
crate-scoped exceptions in deny.toml, approved by the project lead; NOTICE, ATTRIBUTION.md and
compliance.md name them. The shared gate doesn't run cargo-deny, so ci.yml has its own job.
Raised with the shared libraries team: storytold/craft-libs#2100.
2026-11-17 13:18:55 -07:00
Dylan M. Taylor cd5bdf95f7 fix(engine): size-check library image import; exclusive unguessable temp files (#125) 2026-11-17 08:13:42 -05:00
Dylan M. Taylor 20a45a47f6 Merge pull request #406 from storytold/refactor/shared-lottie-gradient
refactor(lottie): share raw gradient wire assembly
2026-11-17 05:42:21 -05:00
Dylan M. Taylor 382171c2ca chore(lottie): pin raw gradient writer to merged shared revision 2026-11-17 04:34:28 -05:00
Dylan M. Taylor 4f0cc6f1aa Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-lottie-gradient 2026-11-17 04:34:08 -05:00
Dylan M. Taylor 936f489adf Merge pull request #403 from storytold/refactor/shared-screen-video
refactor(xfl): use shared bounded Screen Video decoder
2026-11-17 04:33:50 -05:00
Dylan M. Taylor bd201aea87 chore: normalize lockfile source ordering after video repin 2026-11-17 03:18:27 -05:00
Dylan M. Taylor 3622881f48 chore(video): pin Screen Video decoder to merged shared revision 2026-11-17 02:18:50 -05:00
Dylan M. Taylor 32c27795ec Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-screen-video 2026-11-17 02:18:22 -05:00
Dylan M. Taylor 6b2a9beeb6 Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-lottie-gradient
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-17 00:39:35 -05:00
Dylan M. Taylor c12bfbd23b Merge pull request #405 from storytold/chore/lottie-merged-pin
chore(lottie): pin shared path writer to merged revision
2026-11-17 00:04:23 -05:00
Dylan M. Taylor 13b34f4095 perf(lottie): flatten mapped stops without intermediate vectors 2026-11-16 23:26:52 -05:00
Dylan M. Taylor 3b42d31964 refactor(lottie): share raw gradient wire assembly before fitting 2026-11-16 23:24:43 -05:00
Dylan M. Taylor 131974577b chore: preserve unrelated registry dependency selections 2026-11-16 23:13:40 -05:00
Dylan M. Taylor 0a3563f6df chore(lottie): pin path serialization to merged shared revision 2026-11-16 23:13:24 -05:00
Dylan M. Taylor dd24a98c9f Merge commit 'ae2580530462ed20cbb67594a1508a5cdd5de96e' into refactor/shared-screen-video 2026-11-16 23:12:20 -05:00
Dylan M. Taylor 3eebdde0b2 Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-screen-video
# Conflicts:
#	Cargo.toml
2026-11-16 23:11:31 -05:00
Dylan M. Taylor 5ab5946f11 Merge branch 'main' of https://github.com/storytold/anicraft into refactor/shared-screen-video
# Conflicts:
#	Cargo.lock
2026-11-16 23:11:14 -05:00
Dylan M. Taylor 8c1b9bdc87 Merge pull request #399 from storytold/refactor/shared-gpl-palette
refactor(swatch): read GIMP palettes through craft-palette
2026-11-16 23:10:44 -05:00
Dylan M. Taylor ae25805304 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	Cargo.lock
2026-11-16 23:10:37 -05:00
Dylan M. Taylor 41a0da7166 refactor(audio): delegate streaming WAV serialization to craft-audio (M5) (#395) 2026-11-16 22:44:21 -05:00
Dylan M. Taylor 8c192cccb9 refactor(xfl): decode Screen Video packets through craft-video 2026-11-16 22:35:02 -05:00
Dylan M. Taylor a5599b2ee3 chore(palette): pin GPL parser to merged shared revision 2026-11-16 22:31:47 -05:00
Dylan M. Taylor e75f8862ad Merge remote-tracking branch 'origin/main' into refactor/shared-gpl-palette
# Conflicts:
#	Cargo.toml
2026-11-16 22:30:39 -05:00
Dylan M. Taylor 19ce5ee962 docs: prefer craft-libs for reusable formats, codecs, protocols and UI (#387) 2026-11-16 21:56:40 -05:00
Dylan M. Taylor 5d63a34aa6 refactor(lottie): share Bezier serialization and preserve stage alpha (#400) 2026-11-16 21:56:32 -05:00
Tanish Manku 5fd3298517 style(filters): doc comment markers and clippy idioms in the filter slice (M5) 2026-11-16 19:29:44 -07:00
Tanish Manku 8055fb026f docs: ADR 0099, the guide, roadmap and changelog for the last filter slice (M5) 2026-11-16 19:18:35 -07:00
Tanish Manku cc3cdbb3c2 feat(ui): filter colour and stepped rows in the Motion Editor, filters on text and built-in presets in Properties (M5)
* Motion Editor: a row per filter colour with a swatch that keys the whole
  colour and a diamond for its four channels; click it to list red, green,
  blue and alpha, each a curve, with the colour over the span along the
  graph's foot. Quality and the switches are tick boxes and Low/Medium/High,
  drawn as steps, without ease handles.
* Properties: the Filters section on text; built-in presets in the presets
  menu, with a submenu to hide and show them (kept in the preferences).
* Screenshots: --open motioncolour, --open textshadow.
2026-11-16 19:18:16 -07:00
Tanish Manku 2f6e9cc46b feat(export): filters on text in the HTML page and from XFL, with GPU parity (M5)
* The page's player draws text with filters in a filtered group of its own,
  as evaluate does (fx/fm on static text and fields); typed text in an input
  field is the browser's and is reported.
* XFL: a text field's <filters> come in on the text instead of being
  reported as skipped.
* GPU parity on filtered text: max 1/255, mean 0.003-0.005 (RTX 5090, Vulkan).
2026-11-16 19:17:17 -07:00
Tanish Manku 6501af0585 feat(filters): colour and stepped filter tracks, list pairing, built-in presets, filters on text (M5)
Model and commands (ADR 0099):
* FilterParam gains a colour's channels (color, shadow_color, highlight_color,
  stop_<n>; red, green, blue 0-255, alpha in percent, as the tint) and the
  stepped quality, inner, knockout and hide_object, whose keys hold.
* Classic tweens of lists that differ pair the kinds they share in order;
  a filter without a partner fades to or from itself doing nothing.
* TextBlock carries a filter list; evaluate draws text with filters in a
  filtered group, as a movie clip.
* filter.* commands and element.set_filters act on text; motion.set_key
  keys a whole colour; eight built-in presets that can only be hidden
  (filter.preset_hide).
2026-11-16 19:17:17 -07:00
Tanish Manku abb16ecfcd docs(adr): reserve ADR 0099 for filter colour tracks, built-in presets and text filters (M5) 2026-11-16 19:17:16 -07:00
Tanish Manku a576d57789 Merge pull request #338 from storytold/m6/command-macros
feat(commands): command macros: Save As Command, saved commands and Manage Saved Commands (M6)
2026-11-16 19:06:27 -07:00
Dylan M. Taylor 5543a69e74 refactor(swatch): delegate GPL grammar to shared palette reader 2026-11-16 21:03:23 -05:00
Tanish Manku 49b2457fa0 fix(test): as_chunks for the newer clippy in CI (M5) 2026-11-16 18:50:33 -07:00
Tanish Manku cf5f22b392 test(bones): the panic hunt starts from a mixed armature with a sliding, sprung neck (M7) 2026-11-16 18:45:22 -07:00
Tanish Manku 82127612af docs: ADR 0098 mixed armatures; guide, roadmap, architecture, changelog (M7) 2026-11-16 18:33:19 -07:00
Tanish Manku 2972440207 feat(bones): mixed armatures, symbol instances and shapes in one armature (M7)
Bones marked with the shape they are inside bend it through that shape's skin;
other bones move an instance or a whole shape. One pose, solver and tween.
A document with a mixed armature is written as format version 4; every other
document byte for byte as before.

Measured (optimised test profile): 25 bones, two shapes of 1,002 points and
8 instances bind in 1.6 ms and pose in 0.066 ms per frame; IK through all 25
bones 0.07 ms.
2026-11-16 18:32:56 -07:00
Tanish Manku c79dd95f77 docs(adr): reserve ADR 0098 for mixed armatures (M7) 2026-11-16 18:32:32 -07:00
Tanish Manku 107daa2d4d docs(guide): command reference with the styled text commands (M5) 2026-11-16 18:28:24 -07:00