Commit Graph
200 Commits
Author SHA1 Message Date
Tanish Manku 680243e664 Merge pull request #96 from storytold/m7/eraser-eyedropper
feat(draw): Eraser and Eyedropper tools (M7)
2026-11-09 23:01:34 -07:00
Tanish Manku 690e0311f4 docs: Eraser and Eyedropper ADR 0034, roadmap, changelog and attribution (M7) 2026-11-09 22:21:07 -07:00
Tanish Manku 3862732928 feat(shell): Eraser (E) with erase modes, Faucet and Erase Everything, and Eyedropper (I) (M7)
The Eraser sweeps the brush tip with a live preview in the stage colour, [ and ] size it, and a double-click on its tool button (or Erase Everything in its options) clears the stage at this frame after asking. The Eyedropper picks a fill (solid, gradient, bitmap) or a line into the tool style, applies it to selected shapes, then becomes the Paint Bucket or the Ink Bottle; Shift-click picks into the other swatch. New original icons; --open eraser|erasing|eyedropper for screenshots.
2026-11-09 22:18:41 -07:00
Tanish Manku 86f76dbc82 feat(engine): draw.erase with Animate's erase modes, the faucet and Erase Everything; paint.pick and paint.apply_style (M7)
The eraser sweeps the brush tip (ADR 0033) and goes into the planar merge as a fill whose regions come out empty, placed by the mode: on top (Erase Normal), between fills and lines (Erase Fills), over the lines only (Erase Lines), right above the selected fills or the fill the stroke starts on. Only raw shapes are erased; a stroke that erases nothing leaves no step (exact area and length compare). The Eyedropper picks a fill's paint (solid, gradient or bitmap, in stage space) or a line's colour, width and profile into the tool style; the Paint Bucket and the shape tools use a picked gradient where it is on the stage.
2026-11-09 22:13:26 -07:00
Tanish Manku 96ff3368d8 Merge pull request #94 from storytold/m7/brush-tool
feat(drawing): Brush tool paints filled sweeps with pressure and paint modes (M7)
2026-11-09 21:58:20 -07:00
Tanish Manku fc281d4aa8 docs: Brush tool ADR 0033, roadmap, changelog and attribution (M7) 2026-11-09 21:22:33 -07:00
Tanish Manku 478c70feb8 feat(shell): Brush tool (B) with tool options, pen pressure, live preview and [ ] sizes (M7) 2026-11-09 21:20:59 -07:00
Tanish Manku d7a53d99d3 fix(geom): a closed curve fit starts on its first corner, not across from the first point (M7) 2026-11-09 21:20:59 -07:00
Tanish Manku 4a5522c4c1 feat(engine): draw.brush paints filled strokes with Paint Normal, Fills and Behind (M7) 2026-11-09 21:12:12 -07:00
Tanish Manku a535435a0f feat(geom): brush stroke outlines from the swept tip's distance field (M7) 2026-11-09 21:06:18 -07:00
Tanish Manku 4d9c1cef9c Merge pull request #93 from storytold/m3/gpu-bitmaps-filters
feat(gpu): bitmaps and filters on the GPU, the GPU as the default stage (M3)
2026-11-09 20:54:42 -07:00
Tanish Manku 863e8af60a fix(gpu): tests and bench build with merge drawing's Shape.merge; ADR renumbered to 0032 after merge drawing took 0031 (M3) 2026-11-09 20:45:47 -07:00
Tanish Manku 02c4e1fc13 chore: merge main into the GPU stage third slice (M3) 2026-11-09 20:44:05 -07:00
BFlat e8bbc45dab Merge drawing, first slice: raw shapes cut and join as in Animate (#92)
Part of #42. ADR 0031: raw shapes cut and join on the layer (exact Bezier planar merge), Object Drawing (J), dot-pattern selection, double-click connected, drop on move, screen-pixel nudge.
2026-11-10 10:08:36 +07:00
Tanish Manku 3f3f280806 fix(shell): unit tests never start the GPU stage (M3)
With the GPU the default, app-level tests started its start-up thread; on
CI (lavapipe installed) it was still in the Vulkan driver when the test
process exited, which crashed it (SIGSEGV after all tests passed).
2026-11-09 20:03:11 -07:00
Tanish Manku 313745b204 feat(gpu): the GPU is the default stage renderer; ADR 0031 (M3)
The shell's gpu-stage feature is on by default and Preferences > Stage >
Renderer defaults to Graphics card (GPU), with the CPU drawing whenever
there is no usable card, a tile is past the GPU's limits or anything
fails. The setting is stored under a new key: every earlier build wrote
the old one as Cpu without anyone choosing it. CI installs lavapipe so the
parity tests run on a software adapter.

Measured (release, RTX 5090): 4K filtered sample 3.9 ms on Vulkan and
4.2 ms on DX12 (CPU 31.5 ms); 200 bitmap fills 4.4 / 4.3 ms (CPU 37.2 ms).
Docs: ADR 0031, performance, roadmap, architecture, CHANGELOG.
2026-11-09 19:48:49 -07:00
Tanish Manku 5bed9916dd fix(gpu): the stage shaders build with Direct3D's FXC; no software adapters for the stage (M3)
FXC must unroll loops that index vector components and could not unroll
blend's and adjust's, so the GPU stage never started on a DX12 window.
Both are vector code now, with the same arithmetic order. The parity
suite passes on DX12 as on Vulkan. A software adapter (WARP, llvmpipe)
is refused for the stage, since the CPU oracle is faster;
GpuRenderer::software() opens one for tests. The self-test now compares
against the oracle (bitmap and filtered symbol included) and says where
it went wrong. The benchmark gains a filtered sample and 200 bitmaps.
2026-11-09 19:48:49 -07:00
Tanish Manku 0dae2056eb feat(gpu): bitmap fills and filters on the GPU stage (M3)
The oracle now hands filtered groups to other renderers as layers
(prepare_scene: Scene::layers, Fill::layer) and resolves each filter into
the exact steps it runs (filters::resolve); apply runs those same steps.
The GPU stage samples bitmaps from textures uploaded once per image
(bilinear by hand, the oracle's colour effect and repeat rules) and draws
each filtered layer, runs its filters as compute passes and composites it
like any fill. Parity: bitmaps byte-identical, filters max 1/255.
2026-11-09 19:48:49 -07:00
Tanish Manku d97e9289e0 Merge pull request #91 from storytold/docs/agent-limit-local
docs: agent count is not a project rule
2026-11-09 19:12:57 -07:00
Tanish Manku e9b9f4ab9a docs: how many agents run at once is the runner's own choice, not a project rule 2026-11-09 19:01:52 -07:00
Tanish Manku e51d9c4fc1 Merge pull request #90 from storytold/docs/one-agent
docs: one track agent at a time
2026-11-09 18:33:28 -07:00
Tanish Manku 03e51adc6f docs: one track agent at a time (two plus the lead still ran out the usage limit) 2026-11-09 18:24:47 -07:00
Dylan M. Taylor ca3e8f08df Release 0.1.0 2026-11-09 20:18:50 -05:00
Tanish Manku f355a74631 Merge pull request #89 from storytold/m2/motion-paths
feat(motion): motion paths on the stage with orient to path (M2)
2026-11-09 17:58:29 -07:00
Tanish Manku bccb5e4df7 chore: merge main (GPU stage, second slice) into motion paths (M2) 2026-11-09 17:50:15 -07:00
Tanish Manku 318d33b4a4 Merge pull request #88 from storytold/m3/gpu-direct-masks
feat(gpu): GPU stage without readback; masks, groups and blend modes on the GPU (M3)
2026-11-09 17:18:33 -07:00
Tanish Manku 25f0685bbb docs: ADR 0030 motion paths, CHANGELOG, roadmap (M2) 2026-11-09 17:13:50 -07:00
Tanish Manku 67bf3ee0de feat(ui): motion paths on the stage: bend, move ends, Subselection points and handles; Orient to path (M2)
The selected motion tween's path shows in the motion colour on a dark halo,
with a dot per frame. Selection drags the path to bend it and its ends to
move them; Subselection drags anchors and handles (smooth pairs stay in
line, Alt breaks them). Each drag is one undo step. Properties shows the
path (Straighten) and Orient to path. --open motionpath|motionpoints show
it for screenshots and the accessibility audit.
2026-11-09 17:12:21 -07:00
Tanish Manku aa6b0a5565 feat(engine): motion.set_path, motion.clear_path, motion.orient; moving the object reshapes its path (M2)
Auto-key on a path tween: moving the object at the first position key
moves the path's start, at the last its end, in between the path bends
until the object lands where it was put; X/Y keys keep the timing.
motion.info reports the path, orient and where the object is. The
every-command fuzz also runs on an oriented motion path.
2026-11-09 17:06:25 -07:00
Tanish Manku 5cc790a379 feat(doc): motion paths for motion tweens, by arc length, with orient to path (M2)
A motion tween may carry a cubic motion path in the layer's space. The
registration point travels it by arc length (geom::walk::CurveWalk, exact
points and tangents); the X/Y curves give the timing, leg by leg between
position keys, signed so overshooting eases overshoot along the path. A
straight path reproduces the X/Y curves exactly. Splitting a span cuts the
path where the object is. Files without a path open unchanged.
2026-11-09 17:01:25 -07:00
Tanish Manku eb85dd2411 feat(gpu): GPU stage draws into the window's textures, no readback; ADR 0029 (M3)
The GPU stage shares eframe's wgpu device (egui_wgpu::RenderState) and
draws each stage tile into a storage texture the shell registers with
egui as it is. Fallbacks: a headless device with readback (window on
OpenGL), then the CPU oracle. Every call runs in thread-local error
scopes; nothing is installed on the window's device; a work bound per
dispatch guards the driver watchdog.

The engine stays GPU-free: Raster::Native carries an opaque image, cached
under its own 384 MB budget; only the shell downcasts it.

perf, gpu_bench on RTX 5090 (Vulkan), 32 threads:
  4K, 1,000 shapes: CPU 16.2-19.6 ms, read-back 8.4, direct 2.1-2.4 ms
  4K, 10k shapes:   CPU 25.8-28.1 ms, read-back 23.2, stage tiles 10.2 ms
  4K, masked 10k:   CPU 74.8-80.0 ms, stage tiles 10.9 ms
Binning stays on the CPU (ADR 0029: not the bottleneck as stage tiles).
2026-11-09 16:58:49 -07:00
Tanish Manku d1627efc0c feat(gpu): masks, nested masks, group alpha and blend modes on the GPU stage (M3)
render::prepare_scene hands the oracle's prepared fills with their clips
(artwork, cleaned parents, bounds) and groups (chains, sanitized alpha,
blend) to the GPU. The binning emits per-tile streams with clip-level and
group open/close entries; fine.wgsl keeps a per-pixel group stack and clip
coverage and blends with the oracle's separable W3C formulas. Parity on
the RTX 5090: max 1/255, mean <= 0.0011/255 on every new scene.

Also a texture entry point (main_texture) and GpuRenderer::shared for the
window's device; render_texture draws without readback.
2026-11-09 16:49:09 -07:00
Tanish Manku 86f74b71a3 Merge pull request #86 from storytold/m6/html-canvas-export
feat(export): HTML canvas export with an interactive player (M6)
2026-11-09 13:55:34 -07:00
Tanish Manku 985b9c71b9 Merge pull request #85 from storytold/fix/timeline-header
fix(shell): the timeline header fits at the default window size
2026-11-09 13:28:46 -07:00
Tanish Manku a7b3b0f2fa feat(engine): file.export_html, File > Export > Export HTML Canvas; ADR 0028, docs (M6) 2026-11-09 13:22:19 -07:00
Tanish Manku 0fc73dc9ce feat(render): HTML canvas export with a JS port of the player, tested against it in Boa (M6) 2026-11-09 13:22:19 -07:00
Tanish Manku 9ab51e64fd docs: two track agents at once (three still ran out the usage limit) 2026-11-09 13:21:21 -07:00
Tanish Manku 7a2c3eaca8 fix(shell): the timeline header fits at the default window size (whole frame rates without decimals, tighter spacing) 2026-11-09 13:21:20 -07:00
Tanish Manku 164eaf07d9 Merge pull request #84 from storytold/m7/camera
feat(camera): camera layer with layer depth, Camera tool and Preview Through Camera (M7)
2026-11-09 13:20:07 -07:00
Tanish Manku 62c5abf9cf chore: merge main (packaging, filters) into the camera layer (M7) 2026-11-09 13:10:26 -07:00
Tanish Manku b6ffe71832 Merge pull request #79 from storytold/m8/packaging
feat(packaging): installers and signing for Windows, macOS and Linux (M8)
2026-11-09 12:59:21 -07:00
Tanish Manku dd02ca9884 docs: ADR 0027 camera layer and layer depth; architecture, roadmap, changelog, attribution (M7) 2026-11-09 12:50:31 -07:00
Tanish Manku 5b431ec1d3 feat(app): Camera tool, camera frame on the stage, Preview Through Camera and the camera toggle (M7)
The stage draws the camera frame in the camera layer's colour; the Camera tool
(C) pans, turns (round handle) and zooms (wheel), one undo step per drag;
View > Preview Through Camera renders stage tiles through the camera; the
timeline header toggles the camera; Properties gets a Camera section and a
layer Depth row. GPU parity and the accessibility audit cover camera scenes.
2026-11-09 12:50:31 -07:00
Tanish Manku cc4773a3ea feat(doc): camera layer, layer depth and camera commands (M7)
A camera layer kind (at most one per scene, always on top) whose keyframes hold
the camera as an element, so it tweens with classic and motion tweens. The
movie (evaluate, the player, every export) is the stage seen through it; the
editing view stays in stage space. Layer depth gives parallax. Commands:
camera.add/remove/set/info and layer.set_depth (ADR 0027).
2026-11-09 12:40:55 -07:00
Tanish Manku 8deaf6af8e fix(packaging): keep .shellcheckrc LF on Windows checkouts (M8) 2026-11-09 12:30:50 -07:00
Tanish Manku d05c12effd fix(shell): release builds are Windows GUI programs, no console window (M8)
The packaging's PE check found anicraft.exe used the console subsystem, so a console window
opened beside the app. Debug builds keep the console for logs.
2026-11-09 12:29:32 -07:00
Tanish Manku 3e5df30ac5 docs: installers, signing and publishing; ADR 0026 (M8) 2026-11-09 12:29:32 -07:00
Tanish Manku 94ac5cf2a0 test(packaging): keep the installers in step with the app; anicraft --version (M8)
src/packaging_tests.rs checks one app id everywhere, every type the Open dialog accepts is
registered on Windows, macOS and Linux, the WiX registry matches install-policy.json, and
the packaging icons exist.
2026-11-09 12:29:21 -07:00
Tanish Manku 8f1c00c565 feat(ci): wire the installers into the release workflow (M8)
Release: packages: write for the Flatpak OCI push, LINUX_SIGNING_KEY, no web build, no
version override (needs an xtask AniCraft doesn't have). Windows ARM64 installs per-user in
the ArtCraft folder. Packaging lint also builds the installer fixtures and checks the
compiled install policy.
2026-11-09 12:29:15 -07:00
Tanish Manku 8fe92c9701 fix(packaging): make the packaging scripts executable (M8)
The shared release workflow runs them directly (packaging/macos/import-cert.sh, ...), and
flatpak-oci.sh only runs when executable.
2026-11-09 12:29:15 -07:00