Commit Graph
36 Commits
Author SHA1 Message Date
shweetandClaude Opus 5.5 a917d8ae97 SVG spritesheets
An .svg spritesheet loads through lunasvg (now part of the core library) at
one pixel per SVG unit, so regions, crops and picking work as for PNGs. The
preview, renders and CLI draw it again, cached per power-of-two zoom level up
to 8x, so it stays sharp when zoomed or scaled. Its pixels aren't edited
(pencil, eraser, pack and merge leave it alone, and Save skips it), and the
Isaac warning counts SVG sheets since the game can't load them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:41:57 -04:00
shweetandClaude Opus 5.5 4375844c84 Alpha color offset
Color Offset gains an alpha channel (Frame Properties, Change All, property
copy, interpolation and root folding), drawn by adding it to the texel's
alpha. Saved as AlphaOffset in the editor's copy only and counted by the
Isaac warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:22:15 -04:00
shweetandClaude Opus 5.5 0adb0f89bc Frame Blur (Flash's blur filter), child properties in Change All Frame Properties, flips under Visible
Blur is a layer frame's box blur, as Flash's low-quality BlurFilter: a box that many canvas pixels wide, averaged
over the frame's crop (premultiplied) by the texture shader, the quad grown by its reach. An animation layer blurs
its child's draws at least as much. It interpolates, copies, batches (clamped to 0-255), saves as an editor-only
Blur attribute and counts as an Isaac issue.

Change All Frame Properties gains the Child section (animation, mode, start frame, random, restart), applied only
to animation layers and disabled when no animation layer is targeted. Frame Properties' Flip X/Y sit below Visible
instead of inside Child.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:16:49 -04:00
shweetandClaude Opus 5.5 d1a6d89d14 Libraries window, animation layers and child playback
A Libraries window (docked with Spritesheets and Sounds) links other .anm2
files: cards list each one's animations, open it as a tab, and reload when
it changes on disk. A layer's Source is a spritesheet or an animation, from
this file or a library; the preview, renders and CLI draw the child in the
layer's frame. Animation-layer keyframes set the child's animation, mode
(loop, once, hold), start frame (or random) and restart; Child is also a
copyable frame property. All of it is editor-only and counted by the Isaac
warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:51:48 -04:00
shweetandClaude Opus 5.5 2dbbfa5e86 anm2ed-cli and render tests: look at animations without the editor
- anm2ed-cli info|frame|render: a text summary, one frame as a PNG, or the
  whole animation as a contact sheet, PNG sequence, GIF or video, drawn by
  the editor's OpenGL renderer in a hidden window (render::HeadlessGL).
- render::animation_frame_render / animation_record draw an animation's
  layers over its bounds (Canvas::layers_render, also used by About) and
  record them through the existing Recorder.
- The editor's code builds as anm2ed_app, shared by the editor, the CLI and
  anm2ed_render_tests, which checks a fixture's pixels and golden PNGs
  (with tolerance; skipped without OpenGL) and leaves its renders in
  build/renders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 13:32:42 -04:00
shweetandClaude Opus 5.5 24af98a68e Onionskin: Pivot Path and Only Selected Item
Pivot Path draws, on the preview, the path each item's pivot travels:
a red point per frame joined by a red dashed line (Canvas::line_render,
on the dashed shader). Only Selected Item limits the onionskin samples
and pivot paths to the selected root, group root, layer or null. Paths
are cached until the document, animation or root-transform view changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:58:39 -04:00
shweetandClaude Opus 5.5 26ab394fe4 Stage 1: headless Image and AudioData; GPU and playback caches in the UI
- resource::Image (pixels, size, uid) replaces Texture in documents, undo and
  wizards; it lives in anm2ed_core with no GL. uid changes with the pixels.
- resource::texture::id_get uploads lazily and evicts textures not drawn in a frame
- resource::AudioData (bytes, uid) replaces Audio; resource::audio::play/stop/
  track_detach/is_playing cache decoded audio and tracks per uid
- Resources::icon_id_get shortens the icon call sites
- tests/assets.cpp covers Image png round trip, uid tracking, merge_append

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 14:52:34 -04:00
shweetandClaude Opus 5.5 ec72a30ce0 Canvas windows, settings and manager: share view code and list I/O
- CanvasView base holds checker pan sync, zoom step, grid panel, view buttons and view context menu
- frame_parent_model_get replaces five root/group transform compositions
- Canvas builds VAOs through one helper, unifies uniform setters and frees the texture VAO/VBO/EBO (leak fix)
- Settings load/save loop over component suffix tables; unused settings Type enum removed
- Manager shares one path-list load/save for recent and autosave files
- Anonymous namespaces removed per project style

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 13:50:13 -04:00
shweet 5792dd25a2 Overlays, Shaders, Group Roots, Serialization Changes. Legalize Nuclear Bombs 2026-07-09 19:49:33 -04:00
shweet 80ef3f8597 buncha slop 2026-07-01 20:04:12 -04:00
shweet 6d206045c7 spritesheet editor fix, zoom levels 2026-06-20 22:27:11 -04:00
shweet 6e5d73c639 header cleanup 2026-05-22 10:20:43 -04:00
shweet 1bc5199e3b Holy vibecode Batman! 2026-05-21 21:00:57 -04:00
shweet c11b404392 let's actually stage those changes... 2026-03-09 23:09:37 -04:00
shweet 64d6a1d95a Mega Region Update. 2026-02-05 21:34:42 -05:00
shweet 119bbc4081 Refactor + render animation tweaks + updated frame properties + bug fixes 2025-12-17 23:02:00 -05:00
shweet c57c32aca8 ...Anm2Ed 2.0 2025-11-13 22:06:09 -05:00
shweet 51bf4c2012 Anm2Ed 2.0 2025-11-13 21:53:32 -05:00
shweet bb6b68311b Anm2 merge and adjustments to render animation 2025-11-13 01:19:25 -05:00
shweet 3f666ab18a msvc fixes 2025-11-11 19:16:07 -05:00
shweet 62cd94ca78 Big refactor, shuffling a lot of files around 2025-11-01 19:51:19 -04:00
shweet 99b7d9f49d FFmpeg and sound support; refactor, etc. 2025-11-01 00:54:22 -04:00
shweet 729d5fb216 Autosave feature, spritesheet editor dashed lines, refactoring, fixes 2025-10-28 15:47:54 -04:00
shweet dd3aeae6d2 Snapshots, refactoring 2025-10-26 16:06:34 -04:00
shweet 5b0f9a39c4 Refactor... 2025-10-21 20:23:27 -04:00
shweet dbb6d13f34 refactor pt 1; getting each thing right and then will push to main 2025-09-19 17:57:48 -04:00
shweet f8fb3df8d4 Redid layer system, added layer/null windows, more quality of life, polish 2025-09-12 18:06:30 -04:00
shweet b2cf67a823 Added fit, fixed the layer -1 bug finally, refactored here and there 2025-09-09 17:51:17 -04:00
shweet a992661c6a Removed GLEW dependency (using GLAD instead), axes now use shader, should now work better 2025-09-05 16:37:45 -04:00
shweet 3546f27655 Moved spritesheet texture handling to anm2 instead of resources; added undoing for spritesheet texture changes; refactoring 2025-08-27 00:28:41 -04:00
shweet 67d36df971 Canvas size fix 2025-08-15 13:52:46 -04:00
shweet 4029828d04 The Omega Update(TM) Part 5 (Finishing) 2025-08-14 21:39:17 -04:00
shweet ea3498692a The Omega Update(TM) Part 4 (Massive Refactor, Change All Frame Properties) 2025-08-14 00:25:35 -04:00
shweet a48c72357a The Omega Update(TM) Part 3 (Rendering) 2025-08-10 01:27:06 -04:00
shweet b9c9105621 The Update(TM), Part 2 2025-08-09 00:32:14 -04:00
shweet fe8bdae9a8 The Update(TM), Part 1 2025-07-27 22:08:57 -04:00