Frame from Morse theory on a torus, in 3D Manim
PromptFull
Create a 75-100 second cinematic 3D explainer of Morse theory through a vertically oriented torus and a rising horizontal waterline. This topic is new to our repo.
Teach an ambitious undergraduate who knows derivatives but not topology. Define sublevel sets M_a={p in T^2:h(p)<=a}, critical points, index, and Euler characteristic. Use a genuine Morse height with FOUR isolated critical points, not the degenerate height of a horizontal donut. Mathematically verify a parametrization and the four critical heights and indices before implementation. Show disk -> cylinder -> punctured torus -> closed torus as successive sublevel surfaces. Explain that the topology changes at critical levels, with Euler characteristic 1-2+1=0. Distinguish the topology of the surface sublevel set from the liquid volume and from the number of boundary curves.
Art direction: midnight blue background, luminous teal and cyan surface mesh, warm gold scanning plane, coral critical points, violet saddles. Shape and motion carry the explanation. Use ambitious but purposeful camera orbits, slow push-ins at saddles, pullbacks to restore orientation, color transitions encoding the included surface, and beautifully legible fixed on-screen LaTeX formulas. Preserve a clean hierarchy and large negative space. One main formula at a time. Use actual MathTex, 3D geometry and evolving cross-sections; no walls of text or generic slides. End with a strong view of the entire torus and the Morse relation chi(T^2)=m_0-m_1+m_2=1-2+1=0. No narration required.
Use the local Python interpreter C:/Users/chris/Math-To-Manim/.venv/Scripts/python.exe for numerical verification and Manim API inspection if needed. Installed Manim CE is 0.20.1. Research primary references where necessary. Return a complete working scene for 1920x1080 at 60fps; use efficient surfaces to keep rendering practical.

Make it yours. Swap the topic in the first line ("cinematic 3D explainer of Morse theory through a vertically oriented torus") and the audience line, then rewrite the colors after "Art direction:". Replace the Windows Python path in the last paragraph with your own interpreter.

Make it hereFree runs soon

Morse theory on a torus, in 3D Manim

A silent 98-second 3D explainer: a gold plane rises through an upright torus while the surface below it goes from disk to closed torus, and four critical points explain its Euler characteristic. GPT-6 Astra wrote the Manim scene through the Codex SDK.

You'll need

  • The Math-To-Manim repo, which runs the Astra and Jev chain
  • A ChatGPT login for the Codex SDK
  • TypeSafe Jev API access for the review checkpoints
  • Manim Community Edition 0.20.1 and LaTeX
How it was made

The repo's chain runs through the Codex SDK with a ChatGPT login: GPT-6 Astra writes the learner brief, verifies the math, storyboards, writes the Manim scene, and reviews the render, while TypeSafe Jev scores each checkpoint through its own API. Jev evaluated the earlier checkpoints, then the creator stopped further model reviews to control costs. The final candidate was rendered locally with no more model calls, so the film is marked not Jev-approved. The prompt asks for 1920x1080 at 60 fps; the published film is 720p at 30 fps.

Posted Sep 24, 2026 · HarleyCoops/Math-To-Manim on GitHub · 2.7k stars

Prompt from: Production request file in the repo

Production record

Manim source

Look notesby Reference

An upright torus on a midnight-blue ground, a thin teal wireframe at first and then solid cyan below a translucent horizontal plane that sits higher in each later frame, with one formula at the top and a caption at the bottom.

Color
Midnight navy background, a thin teal wireframe, luminous cyan and aqua shading for the included surface, a translucent gray plane with pale gold curves where it meets the surface, coral and violet dots for critical points, and white text.
Type
White LaTeX serif at top center ("T²: the torus surface", "dh_p = 0", "index(p) = #{negative eigenvalues of H_p}", "4 − 5 + 2 = 1") and a short white serif caption at bottom center.
Framing
The torus stays centered with wide empty margins, one formula above and one caption below. A triangle appears at left for the subdivision example, and a vertical index scale (0, 1, 1, 2) sits at right in the last frame.
Sound
Silent; the repo README calls it a silent movie.
Structure
The torus defined, critical points, index, a saddle at h = −1.2, the cylinder at a = 0 with two boundary curves, the band joining them at h = 1.2, the maximum at h = 2.8 capping the surface, a triangle showing subdivision preserves the count (4 − 5 + 2 = 1), and the summary "disk → cylinder → punctured torus → closed torus".

More like this

2:46

Every orbit is a great circle, in 3D Manim

Claude Code · Manim

Chi-square goodness-of-fit test in Manim

Gemini · Manim

0:54

Spacetime curvature in 3D Manim

Partial prompt · 3.7 Sonnet · Manim

1:10

Why a circle's area is πr²

Manim

7:37

Narrated lesson on derivatives, in Chinese

Opus 5.5 · Manim

0:44

The photoelectric effect, in Manim

Gemini Flash 3.5 · Manim

2:08

Galileo, Bernoulli and the fastest path

Opus 5.5 · Canvas 2D

1:16

The beauty of physics, one continuous shot

Claude Code

1:47

From a bacterium down to quantum fields

JavaScript

0:39

Crayon picture-book Pythagorean theorem

Opus 5.5 · Plain JavaScript

0:20

Rainbow slinky down an endless escalator

GPT-6 Astra · HTML canvas

0:30

One year of planetary orbits in 30 seconds

Claude Code · Remotion

0:28

Forest fire simulation by six models

3.7 Sonnet · Python

0:56

Spinning heptagon test across 18 models

GPT-4.5 Preview · Python

0:16

Showreel of type, form, space and time

Opus 5.5 · HyperFrames

0:32

Motion designer showreel, Opus vs Astra

Claude Code · skia-python

0:10

Looping 3D pelican on a bike at sunset

atomic.chat · Blender

2:37

Split-screen bubble sort explainer

Claude Code · Manim

3D short film about a rooftop date

Opus 5.5 · Three.js

Low-poly elf swordsman, Sol vs Opus

Partial prompt · Claude Code · Blender

1:06

Stickman Jedi vs. Sith duel, four models

Codex · Canvas

1:16

Indian civilisation as a motion showreel

Claude Code · Three.js

1:42

IKEA manual as a narrated 3D how-to video

Opus 5.5

0:48

3D promo for a travel-tracking app

Claude Code · Remotion

6:53

Code-drawn character in six art styles

Claude Code · HyperFrames

2:00

250 years of America in sand animation

Claude Code · Python

2:38

Five thousand years of China in line art

Claude Code · SVG

0:08

Market Street in 1906, rebuilt in 3D

Claude Tag · Blender

0:09

Isometric 3D cards: Design, Build, Ship

Partial prompt · HyperFrames

4:26

How AI coding agents actually work

Prompt described · Claude Code · Remotion