Repository navigation
Releases
v2.0.13-rc.1
Docs-only release
The renderer is unchanged from v2.0.12; this release refreshes the package page
and the repository documentation.
- New PyPI package page — banner, badges, install/quick-start, the three
output modes, and 3D/post-processing highlights. - Bilingual README — English and 中文, with canonical
Team-Axiovivalinks. - Recovered history —
PR_HISTORY.md(75 merged PRs, 13 descriptions) now
ships in the source tree and the sdist. - Docs fixes — stale repository/wiki links, agent-wiki version references,
mesh-transparency wording, and the platform-wheel description.
Install
pip install -U real-time-manim==2.0.13Windows win_amd64, macOS macosx_12_0_arm64 (requires brew install molten-vk at runtime), and the sdist are attached.
Verification
native/is byte-identical to v2.0.12;real_time_manim/differs only in the
__version__source-tree fallback.twine checkpasses for both wheels and the sdist; metadata points at
Team-Axioviva/real-time-manim.- Clean-venv smoke: import reports
2.0.13, andFrameServer.save_frame()
renders a PNG through the installed wheel.
v2.0.12-beta.13
Highlights
- Mesh architecture, 3× capacity —
AddMeshIndexeduses four vertices + six
indices per quad, andMAX_MESH_VERTSgrew to 524,288: up to 131,072
quads/frame (was 43,690).MeshGroupcombines independently owned batches;
MeshBatch.from_surface()bakes aSurfacedirectly (9,800 faces: painter
~182–194 ms/frame → mesh ~31–39 ms/frame). MeshMobject— a scene mobject whosepointsare the mesh vertices, so
shift/rotate/scale/.animatemove the depth mesh.- Native lit mesh —
MeshBatch(lit=True)/normals=adds GPU Lambert +
Blinn-Phong withwin.set_mesh_light(ambient, diffuse, specular, shininess);
ambient=1, diffuse=0is pixel-identical to the unlit path. CPU-baked
MeshMobject.from_surface(shade=True)remains available and follows geometry
and light changes. - Painter depth — vectors, text and images depth-test against the mesh
without writing depth. Units markedset_shade_in_3d(True)(including
ImageMobject) are now correctly hidden behind 3D geometry; plain 2D overlays
stay on top exactly as before. - Bloom / tonemap — opt-in post pass:
win.set_post(...)orRTM_POST=1;
soft-knee bright pass, half-res separable blur, exposure and optional
ACES/Reinhard.bloom=0, tonemap="none"is byte-identical to post off. - Shared scene preparation —
Scene.prepare()+prepared()runs expensive
pure setup once in the parent and loads it in everyjobs=Nworker;
shared_prepare()provides the same one-compute guarantee for arbitrary
builders.construct()still runs per worker (mobjects are not picklable). - Diagnostics and lifecycle —
RTM_DIAGNOSTICS=1prints one line per play
(frames, time, static layer, largest mesh batch, texture uploads, post state);
with MLWindow(...) as win:and anatexitfallback close forgotten windows. - Fixes —
FramePreviewsurvives non-interactive stdin; per-face 3D
shading is cached (scalar arithmetic); user32 prototypes stay isolated.
Documentation was updated alongside: the Getting-Started chapter was reworked in
zh + en, repo-root AGENTS.md / llms.txt were added, and the 3D/runtime pages
cover indexed meshes, shading, depth, post and prepare.
Install
pip install -U real-time-manim==2.0.12Windows win_amd64, macOS macosx_12_0_arm64 (requires
brew install molten-vk at runtime), and the sdist are attached.
Verification
- Indexed vs legacy mesh: pixel-identical (max channel diff 0); 100k quads fit
the new buffers. - Bloom identity:
bloom=0 / tonemap=nonevs post off, max diff 0; ~0.4 ms GPU
at 1080p (6.17 → 5.73 ms/frame end-to-end). - Lit mesh:
ambient=1, diffuse=0, specular=0vs unlit, max diff 0. - Painter depth: 2D scene vs previous DLL, max diff 0; a text behind a mesh
loses the covered 36,930 red pixels, a red image behind it goes 165,440 → 0. - Shared prepare:
jobs=2ranprepare()once, a shared builder once, and
construct()3× (probe + 2 workers). - Full test suite: the same pre-existing isolation failures, 0 new.
Native
The Windows DLL and macOS dylib were rebuilt for this release. New exports:
AddMeshIndexed, AddMeshIndexedLit, AddMeshLit, SetMeshLight, SetPost,
SetPaintDepth. The macOS dylib is built and export-checked in CI; the new
native rendering paths are verified on Windows, so a macOS runtime pass is
recommended for bloom/lit/depth-heavy scenes.
v2.0.11-beta.12
Highlights
- Static layer respects updaters (#115) — any scene or mobject updater
now disables the per-play bake. An updater on one mobject can write another
(set_stroke,put_start_and_end_on, ...); the bake classified the written
root as static and froze it for the whole play. Scenes with no updaters keep
the #85 speed-up. jobs=Nboundaries are clean (#118) — a cold seek into the middle of a
play finished every earlier animation in one go, and a manimfinish()
interpolates to its terminal state, which rewrote the camera. The first
frame of each parallel segment used the previous camera hold (1-2 frame
global shift); the running entries are now re-applied after the finish pass.
Boundary frame diff on the 38.5 s residual-field example dropped from
1.88 to 0.025.- ImageMobject performance (#126) — textures are cached instead of being
re-uploaded every frame, invisible images are skipped, and a uniform fade is
applied as one quad opacity rather than per pixel. - Timeline preparation is side-effect free (#122) —
finalize()no longer
leaves the scene in an intermediate state; seeking does not depend on the
preparation order. - 3D projection uses the live camera (#121) —
project_pointfollows the
current orientation instead of a stale matrix. - MeshBatch overflow is rejected (#123) — an oversized batch raises
instead of being silently clipped. - Windows user32 prototypes are isolated (#119) — preview and render-wait
no longer install conflictingWNDCLASSEXWargtypes on the shared handle. - Cleanup scope (#120) — the recorder removes only the media output of the
current run, not the wholemedia/folder.
Wiki updates (#106, #107, #108, #110, #111, #117) are included as well.
Install
pip install -U real-time-manim==2.0.11Windows win_amd64, macOS macosx_12_0_arm64 (requires
brew install molten-vk at runtime), and the sdist are attached.
Verification
- #118: cold boundary seek now matches a stepped frame bit-for-bit (mean 0,
max 0); ajobs=4render of the 2310-frame example has boundary diffs
0.025 / 0.025 / 0.032 (median 0.009). - #115: the updater reproducer's default output is bit-identical to
RTM_NO_STATIC_LAYER=1; the no-updater #85 benchmark still bakes
(1.94 s vs 11.68 s play loop). - Full test suite: no new failures (the same pre-existing isolation failures).
- No native changes since 2.0.10; the bundled DLL/dylib are byte-identical to
the previous release, and the macOS wheel is rebuilt for the new Python code.
v2.0.10-beta.11
Fix
-
Non-zero fill winding (#112).
tessellate_fill()recorded each
scanline crossing's direction and then ignored it, filling by even-odd
parity. Overlapping subpaths were therefore punched out:- Bahnschrift
E L F B D P R Tlost the stem/arm junctions
(a black notch of ~10 px at 200 pt); - compound SVGs (a stem + a bar in one path) lost the shared area.
Fills now accumulate the winding and stay open while it is non-zero,
merging all overlapping same-direction contours into one span. Opposite
winding still reaches zero, so counters and holes are unchanged. - Bahnschrift
Verification
Headless native probe (pixel area of the emitted fill triangles):
| geometry | 2.0.9 | 2.0.10 |
|---|---|---|
| two same-direction rects, 15,000 px² overlap | 105,000 | 120,000 |
| outer + opposite inner contour | 120,000 | 120,000 |
| outer + same-direction inner contour | 120,000 | 240,000 |
Rendered: the issue's two-rectangle L gains exactly the overlap
(558,656 → 690,822 white px); Bahnschrift E is solid at both arm junctions;
O B P D counters remain holes. Full suite: 0 new failures.
Install
pip install -U real-time-manim==2.0.10Windows win_amd64, macOS macosx_12_0_arm64 (brew install molten-vk at
runtime), and sdist are attached. Non-zero is the SVG/Cairo default and
matches ManimCE; an explicit fill-rule="evenodd" on an SVG is still not
modelled (it only affects self-intersecting paths).
v2.0.9-beta.10
Highlights
- Static layer (#85) — a play now bakes its unchanging roots into one
texture and only submits moving content. On 2000 circles + 320 labels +
100 rotating dots (60 frames, 1080p) the play loop drops from 11.62 s to
1.81 s (6.4×; ManimCE 2.04 s). Static pixels are byte-identical; the
only differences are moving anti-aliased edges over static content (603 of
2,073,600 px, max 42). - macOS is at native parity (#96, #99, #100, #102) — the bundled arm64
dylib now exports the mesh pipeline and the three platform entries it had
never provided:SetBackgroundColor(backgrounds were always black),
Vulkan_SetUnpaced(offline records were vsync-capped) and
SaveScreenshotSlotBGRA(the two-slot readback ring). All 31 exports in
platform.hare present in both the Windows DLL and the macOS dylib;
Apple Silicon runtime validation passed. - macOS wheels (#101) — the macOS workflow now builds
py3-none-macosx_12_0_arm64alongside the dylib, so the next installs no
longer depend on an sdist build. - Exact stroke widths (#103, #104) — new
AddLineStripFtreats its width
as the pixel band, so fractional widths rasterise at the requested coverage
instead of being truncated. Measured: 0.5→0.502, 1.35→1.247, 2.7→2.753,
5.4→5.498 px of ink. - Typst Write order (#103) — fraction bars now appear between numerator
and denominator, matching dvisvgm/LaTeX, instead of after the denominator.
Install
pip install -U real-time-manim- Windows wheel:
win_amd64, bundledvulkan_core.dll. - macOS wheel:
macosx_12_0_arm64, bundledvulkan_core.dylib; requires
brew install molten-vkat runtime. Intel Macs still build the dylib from
source (bash native/build_mac.sh). - Python 3.11+;
ffmpegonPATHto record video.
Full changelog
| PR | Change |
|---|---|
| #96 | rebuild the arm64 dylib with AddMesh and the mesh pipeline |
| #97 | static layer: bake each play's unchanging roots into one texture |
| #98 | correct the static-layer comparison numbers |
| #99/#100 | SetBackgroundColor + Vulkan_SetUnpaced on macOS |
| #101 | build the macOS wheel in CI |
| #102 | two-slot readback ring (SaveScreenshotSlotBGRA) on macOS |
| #103 | Typst fraction Write order; exact-width AddLineStripF |
| #104 | fix the AddLineStripF ctypes arity |
Verification
- Full test suite: same 140 pre-existing isolation failures as before, 0 new.
- Native export audit: 31 / 31 source exports present in the Windows DLL
and the macOS dylib. - macOS binaries: arm64,
LC_BUILD_VERSIONminos 12.0, MoltenVK linked from
/opt/homebrew/opt/molten-vk/lib(same as previous releases). - Static-layer comparison and Typst/LaTeX Write comparison were rendered and
checked pixel-by-pixel; see the PRs for numbers.
v2.0.8-beta.9
Recovered release v2.0.8. Source and assets were restored from the local build directory after the GitHub organization was deleted. Install with pip install -U real-time-manim==2.0.8.
v2.0.7-beta.8
Recovered release v2.0.7. Source and assets were restored from the local build directory after the GitHub organization was deleted. Install with pip install -U real-time-manim==2.0.7.
v2.0.6-beta.7
Recovered release v2.0.6. Source and assets were restored from the local build directory after the GitHub organization was deleted. Install with pip install -U real-time-manim==2.0.6.
v2.0.5-beta.6
Recovered release v2.0.5. Source and assets were restored from the local build directory after the GitHub organization was deleted. Install with pip install -U real-time-manim==2.0.5.
v2.0.4-beta.5
Recovered release v2.0.4. Source and assets were restored from the local build directory after the GitHub organization was deleted. Install with pip install -U real-time-manim==2.0.4.