Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Dumb perspective hack

Grant Sanderson62f0a20843d9
diff --git a/camera/three_d_camera.py b/camera/three_d_camera.py
index fbb603b22..87eacac2e 100644
--- a/camera/three_d_camera.py
+++ b/camera/three_d_camera.py
@@ -180,7 +180,8 @@ class ThreeDCamera(Camera):
factor[lt0] = (distance / (distance - zs[lt0]))
else:
factor = (distance / (distance - zs))
- clip_in_place(factor, 0, 10**6)
+ factor[(distance - zs) < 0] = 10**6
+ # clip_in_place(factor, 0, 10**6)
points[:, i] *= factor
points += frame_center
return points