Put a 3D model on a slide, declared in HTML: three.js and anime.js in Bisque presentations
1 month ago
This fox is a real 3D model, drawn live on an ordinary slide. The slide names a file in its assets, and the player builds the scene, lights it, and keeps it turning. Bisque presentations can now carry a model like this, and move the markup you already wrote, from one JSON attribute each. Here is how both work, and one thing they still cannot do.
Ask about this presentation
Chapters
0:00Put a 3D model on a slide
0:18A model on the slide
0:19One line puts a glTF file on the slide
0:39Describe a shape, and it is built and lit
0:58Move what you wrote
1:00Five bars grow in from one JSON attribute
1:27The stroke draws itself and the dot rides the path
1:44The bars wait for the word
2:01A bare canvas still stays blank
Show transcriptHide transcript
This fox is a real 3D model, drawn live on an ordinary slide. The slide names a file in its assets, and the player builds the scene, lights it, and keeps it turning. Bisque presentations can now carry a model like this, and move the markup you already wrote, from one JSON attribute each. Here is how both work, and one thing they still cannot do.
First, the model.
The whole slide is this one element. It points at a glTF file in the presentation's assets, here a fox from the Khronos sample models, and names the animation clip to play. The player centers it, fits it into view, lights it with a studio room, and turns it slowly. Drag it and it orbits. One limit up front: it needs WebGL, so a very old TV draws an empty box instead.
A model is one way in. The other is to describe the objects yourself: a torus knot in coral metal, a cube beside it, each with a position, a material, and a spin in degrees per second. The player builds the geometry and the lighting from that description. That covers a diagram that wants depth, a product you can only sketch, or a shape the narration keeps pointing at.
Then, the markup you already have.
These bars are plain divs, and the numbers are what each capability costs a slide to load, gzipped. The anime.js bundle is about 17 kilobytes, and three.js about 210. The bars grow in one after another because the wrapper carries the parameters anime.js understands, written as JSON: a scale from zero to one, a stagger of 120 milliseconds, an ease that lands softly. The targets are a selector inside the wrapper, so a spec can only move what it wraps.
This curve is the easing the bars just used, outExpo: fast at first, then settling. It is an inline SVG path, and two helpers animate it. Draw runs the stroke from nothing to its full length, and motion path moves the dot along the same curve, heading included. The two run together on one timeline, and the timeline loops.
Timing is what makes this a presentation and not a web page. Put the wrapper inside a step, and the animation holds its first frame until the narration reveals it. Now. The bars grew in on that word. If a viewer steps back, they rewind and wait for it again, and the export clock does the same, so the video lands on the same frame.
One thing this still does not do: a bare canvas element on a slide stays empty, because drawing into one takes script, and slides never carry script. Charts, Lottie, and three.js draw into one for you, and that is the limit. The fox from the first slide is still turning, built from one attribute, and every option for both capabilities is in the spec at the link on screen. Put a 3D model on a slide, declared in HTML.
Up next
3:17Anime.js, the all-in-one JavaScript animation engine
@siderakis
1 month ago
3:51Explain every GitHub release to the people deciding whether to upgrade
@siderakis
1 month ago
8:14Inside mattpocock/skills, the 25 agent skills 270,000 GitHub users starred
@siderakis
2 months ago
3:00Your coding agent can present its work: /present, the open-source skill
@siderakis
2 months ago
2:44Run a real LLM on your desk, starting at $899
@siderakis
3 months ago
1:43Your agents have a lot to tell you
@siderakis
3 months ago
2:23This Week in Bun
@siderakis
3 months ago
3:14The Claude system card, in 3 minutes
@siderakis
3 months ago
2:19Week in review, from git
@siderakis
3 months ago
3:06Research → briefing: the launch playbook
@siderakis
3 months ago
2:41PR walkthrough: the heteronym fix
@siderakis
3 months ago
2:00Office hours → team briefing
@siderakis
3 months ago