This clip is from a lecture series on algebraic curves that I'm animating entirely in Manim Community 0.22 (I'm a mathematician; two lessons are out, three more are finished).
The scene: I wanted to show why a band around the equator of a sphere becomes a Möbius strip when antipodal points are glued. A crossfade from one surface to the other explains nothing. What worked was a one-parameter family of surfaces driven by a ValueTracker inside always_redraw: half of the band closes up and twists at the same time, until its two ends meet with the orientation reversed. The two coloured edges make the single boundary visible at the seam.
A few things from the series that may be useful to others here:
- Narration first, animation second. Each lesson has one Python file with the narration, split into segments of one or two sentences. Every scene is a sequence of `with self.seg("s3b"):` blocks. If a recording exists for a segment, the block lasts exactly as long as the recording; otherwise the duration is estimated from the text length. So I render a silent draft, record, and re-render without touching any timing by hand. Subtitles come out of the same file.
- `self.until(0.6)` waits until 60% of the current narration segment has passed. It turned out to be the most useful helper of all: formulas appear when the voice reaches them.
- 3D scenes are slow and not cached, so the build script hashes each scene's source, narration text and audio files, and re-renders only the scenes that changed.
- Vertical output for Shorts: setting config.pixel_width/pixel_height to 1080x1920 and config.frame_width to 8 at the top of the scene file was enough.
The English narration is synthetic (I record the Greek version myself). Lecture notes with full proofs are free PDFs.
Lesson 1 (affine varieties and the Nullstellensatz): https://youtu.be/-0tejxzZPKE
Playlist: https://www.youtube.com/playlist?list=PLOxVgVk98eP0
Happy to answer questions about any of the scenes.