feat(build): add animated texture mcmeta pipeline and frame strip packager (#55) - #192
Merged
Merged
Conversation
…kager (#55) - Implement multi-frame vertical animation strip compiler via Resvg with SVG defs ID namespacing - Add companion *.svg.mcmeta and *.png.mcmeta discovery ladder and auto-bundling - Add default cinematic animation presets for water, lava, fire, and prismarine - Support CLI frametime and interpolation overrides - Add automated test harness and npm test scripts Closes #55 Signed-off-by: Bharath <bharathasl74185@gmail.com>
BharathASL
force-pushed
the
feat/55-animated-texture-pipeline
branch
from
August 31, 2026 08:31
6956053 to
9cbad74
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements the headless animated texture
.mcmetapipeline and multi-frame animation strip compiler for Keyframe (Issue #55, Epic #40).Key Highlights:
textures/water_still/) into vertical 1:N PNG strips ($W \times (N \cdot W)$) across all 5 resolution tiers using@resvg/resvg-js.<defs>element IDs (f${frameIdx}_${id}) and references (url(#...),href="#...") to prevent gradient/mask shadowing across animation frames.0.svg,1.svg,2.svg...10.svg) to prevent alphabetical ordering issues.<stem>.svg.mcmeta,<stem>.png.mcmeta,<stem>.mcmeta, or directoryanimation.json, with built-in preset fallbacks for water, lava, fire, prismarine, sea lanterns, campfires, and lanterns..png.mcmetafiles alongside aliased textures (e.g.,short_grass->grass.png.mcmeta).npm test.Affected Assets
tools/lib/animation-packager.mjs(new)tools/test-animation-packager.mjs(new)tools/build.mjs(modified)package.json(modified)Type of Change
feat: New vector texture master, blockstate, or compiler capabilityfix: Tiling fix, palette correction, or bugfixdocs: Documentation improvementchore/refactor: Maintenance, dependencies, or codebase cleanupContributor Checklist
npm run buildandnpm run build:alllocally and verified all 5 resolution tiers compile successfully.npm testruns and passes all 7/7 unit and integration tests.git commit -s).main..editorconfig.Closes #55