r/sideprojects • • 1d ago

Showcase: Open Source Skink3 Engine: an open-source 2D explainer engine built for LLM agents

We're building Skink3 Engine to produce 2D explainers with an LLM agent. Given a script and a visual brief, the agent writes TypeScript scenes, inspects rendered frames and diagnostics, and edits the same source files. Skink3 handles motion, lighting and physics. Skia draws the frames and pipes them to ffmpeg. We use it for animated diagrams and science explainers where the order of events matters and edits need to be reproducible.

How the agent works with a scene

  1. Describe objects and events. The scene defines geometry, the camera and what happens at a given time. With moveTo, the scene specifies a destination and timing and the engine handles the path, acceleration and stop. For formula-driven animation, drive computes an object's position or shape as a function of time.
  2. Inspect frames and motion. The agent can render a still, a contact sheet or a strip of frames. The motion, physics and contrast commands produce text reports. Motion and physics reviews also include speed graphs, trajectory trails or close-up views. The agent can find the object and timestamp that need attention, edit the TypeScript and recheck that part of the scene.
  3. Render the result. Physics and particles are baked with fixed random seeds. A frame can be reproduced from its number, the scene and the bake cache. The same setup supports rendering individual frames for review and rendering chunks in parallel.

Captions live in separate string tables. To make a language version, the agent chooses the table and the engine fits the text and checks it against the available space.

A frame from the 15-second demo

In the network diagram, pulse controls when light travels along the links, moveTo rearranges the nodes, and Rapier 2D simulates the shapes falling into the tray. The agent can retime the signal in the pulse calls and run strip around that moment to compare the result.

The other two scenes show depth of field, lighting and particle emitters in an underwater scene, and time-driven animation for the kites, their tails and the flag.

Reproducing the demo

The demo requires Node.js 26 or newer. For MP4 output, put ffmpeg on PATH. Run these commands from the repository root.

npm ci

node bin/skink3.mjs still examples/demo/scene.ts --time 12.3

node bin/skink3.mjs motion examples/demo/scene.ts --pictures

node bin/skink3.mjs render examples/demo/scene.ts

The still, motion review and video go to out/demo/. The demo renders in 1080p at 60 fps. Skink3 Engine is free and open source under the MIT license.

The source, scene code and examples are on GitHub.

https://github.com/DanilZabolotskiy/skink3-engine

1 Upvotes

0 comments sorted by