Skip to content

The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.

Python

Add moving and three-dimensional camera cases

apoogdkde6b67e50777
diff --git a/tests/integration/cases/changing_camera_width_and_restore/case.json b/tests/integration/cases/changing_camera_width_and_restore/case.json
new file mode 100644
index 00000000..b4cf3d57
--- /dev/null
+++ b/tests/integration/cases/changing_camera_width_and_restore/case.json
@@ -0,0 +1,96 @@
+{
+ "source": "sha256:46ed17563bd5510649aaf5c915fde9614b0beb6ae301b6c1ceacbbe60b86a7c7",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 2.3,
+ "frames": [
+ ["dd1af4c64d02702f", 1],
+ ["80ce8cc5f1952028", 1],
+ ["377beba48ebbb745", 1],
+ ["23194740633c0374", 1],
+ ["6974cb0a3c65d0b6", 1],
+ ["91c8b570f4413dfa", 1],
+ ["14e281905970b3db", 1],
+ ["b2ef96bc5f7529e8", 1],
+ ["55e5b03671603b73", 1],
+ ["9aa749ab72033d82", 1],
+ ["7e9755ea8794d88d", 4],
+ ["9aa749ab72033d82", 1],
+ ["55e5b03671603b73", 1],
+ ["b2ef96bc5f7529e8", 1],
+ ["14e281905970b3db", 1],
+ ["91c8b570f4413dfa", 1],
+ ["6974cb0a3c65d0b6", 1],
+ ["23194740633c0374", 1],
+ ["377beba48ebbb745", 1],
+ ["80ce8cc5f1952028", 1],
+ ["dd1af4c64d02702f", 1]
+ ],
+ "timeline": [
+ [0.0, 24]
+ ],
+ "id": "sha256:ab0a00a13620954a221b04f58ecef3f05573f0151a6432ce8fb81402f6d07490"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 2.3,
+ "frames": [
+ ["275b7f75b45c1db1", 1],
+ ["7416aee32943a6b1", 1],
+ ["c0a6f95e8587ba2d", 1],
+ ["83fd5d13e3355098", 1],
+ ["61a8c921622fd75b", 1],
+ ["9d872f06509164d6", 1],
+ ["685226ae90f8e1c6", 1],
+ ["8e53d4b6670f597d", 1],
+ ["0739a898dbdae1a7", 1],
+ ["9722f1e9b6c6b477", 1],
+ ["d10ce22c5c2a7362", 3],
+ ["9722f1e9b6c6b477", 1],
+ ["0739a898dbdae1a7", 1],
+ ["8e53d4b6670f597d", 1],
+ ["685226ae90f8e1c6", 1],
+ ["9d872f06509164d6", 1],
+ ["61a8c921622fd75b", 1],
+ ["83fd5d13e3355098", 1],
+ ["c0a6f95e8587ba2d", 1],
+ ["7416aee32943a6b1", 1]
+ ],
+ "timeline": [
+ [0.0, 10],
+ [1.0, 2],
+ [1.3, 10]
+ ],
+ "id": "sha256:8f916eab4d59f3e2e134062fdfb2894ed6a06fdfceaf69feaeeb904f72265bf4"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 196.86, 0.75, 10.83, 221.0],
+ [1, 1, 200.16, 0.76, 10.96, 221.0],
+ [2, 2, 208.18, 0.8, 11.33, 221.0],
+ [3, 3, 213.57, 0.88, 11.93, 221.0],
+ [4, 4, 203.67, 1.13, 13.52, 221.0],
+ [5, 5, 205.1, 1.74, 17.02, 221.0],
+ [6, 6, 221.0, 3.0, 22.68, 221.0],
+ [7, 7, 221.0, 4.68, 28.39, 221.0],
+ [8, 8, 221.0, 6.04, 32.52, 221.0],
+ [9, 9, 221.0, 6.86, 34.66, 221.0],
+ [10, 10, 221.0, 7.25, 35.68, 221.0],
+ [11, 11, 221.0, 7.25, 35.68, 221.0],
+ [11, 12, 221.0, 7.25, 35.68, 221.0],
+ [12, 13, 221.0, 7.25, 35.68, 221.0],
+ [13, 14, 221.0, 6.86, 34.66, 221.0],
+ [14, 15, 221.0, 6.04, 32.52, 221.0],
+ [15, 16, 221.0, 4.68, 28.39, 221.0],
+ [16, 17, 221.0, 3.0, 22.68, 221.0],
+ [17, 18, 205.1, 1.74, 17.02, 221.0],
+ [18, 19, 203.67, 1.13, 13.52, 221.0],
+ [19, 20, 213.57, 0.88, 11.93, 221.0],
+ [20, 21, 208.18, 0.8, 11.33, 221.0],
+ [21, 22, 200.16, 0.76, 10.96, 221.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/changing_camera_width_and_restore/ce.mkv.sha256 b/tests/integration/cases/changing_camera_width_and_restore/ce.mkv.sha256
new file mode 100644
index 00000000..0f25b364
--- /dev/null
+++ b/tests/integration/cases/changing_camera_width_and_restore/ce.mkv.sha256
@@ -0,0 +1 @@
+4e90b5949e38a8e784d395254bc9101c5b56f732535658a64146951396d04881 ce.mkv
diff --git a/tests/integration/cases/changing_camera_width_and_restore/manimgx.mkv.sha256 b/tests/integration/cases/changing_camera_width_and_restore/manimgx.mkv.sha256
new file mode 100644
index 00000000..089212d4
--- /dev/null
+++ b/tests/integration/cases/changing_camera_width_and_restore/manimgx.mkv.sha256
@@ -0,0 +1 @@
+6aab58e8262298fa34d7e01418de92a092dd86eec0d61ed0577a0c75c4e960d5 manimgx.mkv
diff --git a/tests/integration/cases/changing_camera_width_and_restore/review.json b/tests/integration/cases/changing_camera_width_and_restore/review.json
new file mode 100644
index 00000000..b5f8bf4e
--- /dev/null
+++ b/tests/integration/cases/changing_camera_width_and_restore/review.json
@@ -0,0 +1,8 @@
+{
+ "verdict": "working",
+ "note": "",
+ "source": "sha256:46ed17563bd5510649aaf5c915fde9614b0beb6ae301b6c1ceacbbe60b86a7c7",
+ "manimgx": "sha256:ab0a00a13620954a221b04f58ecef3f05573f0151a6432ce8fb81402f6d07490",
+ "ce": "sha256:8f916eab4d59f3e2e134062fdfb2894ed6a06fdfceaf69feaeeb904f72265bf4",
+ "at": "2026-10-04"
+}
diff --git a/tests/integration/cases/changing_camera_width_and_restore/scene.py b/tests/integration/cases/changing_camera_width_and_restore/scene.py
new file mode 100644
index 00000000..e78182a1
--- /dev/null
+++ b/tests/integration/cases/changing_camera_width_and_restore/scene.py
@@ -0,0 +1,23 @@
+# Source: manim/scene/moving_camera_scene.py
+import manimgx as m
+
+
+def _set_frame_width(frame, width):
+ frame.width = width
+ return frame
+
+
+def _ensure_frame_supports_set_width(frame):
+ if not hasattr(type(frame), "set_width"):
+ type(frame).set_width = _set_frame_width
+
+
+class ChangingCameraWidthAndRestore(m.MovingCameraScene):
+ def construct(self):
+ text = m.Text("Hello World").set_color(m.BLUE)
+ self.add(text)
+ self.camera.frame.save_state()
+ _ensure_frame_supports_set_width(self.camera.frame)
+ self.play(self.camera.frame.animate.set_width(text.width * 1.2))
+ self.wait(0.3)
+ self.play(m.Restore(self.camera.frame))
diff --git a/tests/integration/cases/moving_and_zooming_camera/case.json b/tests/integration/cases/moving_and_zooming_camera/case.json
new file mode 100644
index 00000000..19df3d31
--- /dev/null
+++ b/tests/integration/cases/moving_and_zooming_camera/case.json
@@ -0,0 +1,127 @@
+{
+ "source": "sha256:28af85aeefc94c01b2577b369d154d1b2408e1503718a881140134997dacd904",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 3.3,
+ "frames": [
+ ["9d112172126ce88b", 1],
+ ["c909afb099a00f58", 1],
+ ["8dc8cec1fa3cf684", 1],
+ ["9aab51c6948fafa0", 1],
+ ["36cf1e0478de4f17", 1],
+ ["e48bc9763da1c736", 1],
+ ["bfda90f5abeeb50a", 1],
+ ["93215a7b555cc170", 1],
+ ["ef86fa5a53c9c14f", 1],
+ ["1bd2a24b0d220fc3", 1],
+ ["8daa57c9bc80e102", 4],
+ ["132591e7fab2c8a9", 1],
+ ["e11bd950f860f765", 1],
+ ["8466a3349c56f08c", 1],
+ ["2b128eda66208905", 1],
+ ["1432b4f5181fd62e", 1],
+ ["19e47c9f46256745", 1],
+ ["9d7f59a350e1a056", 1],
+ ["dc46a59365ecf3d2", 1],
+ ["0e46148775445cc3", 1],
+ ["4b1292df86112861", 1],
+ ["04dd234114cb83d3", 1],
+ ["b0e7003449c6323f", 1],
+ ["f130beed11269b5d", 1],
+ ["2f8d25f205acc515", 1],
+ ["e2fb12d8e4b69456", 1],
+ ["354ced20d610fe40", 1],
+ ["4b08f53e800f0c6d", 1],
+ ["b66df589b1afccf8", 1],
+ ["c0d9f56a33f2d4d5", 1],
+ ["9ad3604e77e28128", 1]
+ ],
+ "timeline": [
+ [0.0, 34]
+ ],
+ "id": "sha256:0233e50d1d1a302943f767a1bda9debcf9e1f57c38ff37fc73b7522a67d14773"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 3.3,
+ "frames": [
+ ["8218aa2b2503b4e9", 1],
+ ["ce7a5a88eafd7f8b", 1],
+ ["4b29eefec3ce352d", 1],
+ ["282770618c6ce860", 1],
+ ["7775c8f8bc2a10ed", 1],
+ ["7a4a6a42a192fd60", 1],
+ ["0fffe77ceca614d8", 1],
+ ["e8582f225175bfd7", 1],
+ ["d2f1096d2e974e68", 1],
+ ["0d89caf1cedb1f99", 1],
+ ["f06bfabc43bac063", 3],
+ ["5a56859d1f92e616", 1],
+ ["4859ca728056bbd9", 1],
+ ["e863f5726a383c00", 1],
+ ["a79efb73c114a78f", 1],
+ ["5ca259382a7f7c10", 1],
+ ["2e579d2b229d941f", 1],
+ ["fda269b49e91639b", 1],
+ ["ba6702b91d874d0c", 1],
+ ["c7ce039687511c0f", 1],
+ ["55fea8d980b7793d", 1],
+ ["45ac6b6f1ffa06b4", 1],
+ ["e7a8a9c9e1e2c458", 1],
+ ["1a220b00d454d0ca", 1],
+ ["d8fb362a52339276", 1],
+ ["6c86b65d6fc8efcc", 1],
+ ["860953f5a3226671", 1],
+ ["f007bd5940be95ca", 1],
+ ["c565be17d7f2dd21", 1],
+ ["d3d8994612f5f3f9", 1]
+ ],
+ "timeline": [
+ [0.0, 10],
+ [1.0, 2],
+ [1.3, 10],
+ [2.3, 10]
+ ],
+ "id": "sha256:b98aa7d56942ca641662822ebdaa552c49dfbd2dca9d411ec0b949d270d58f7d"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 1.57, 0.03, 0.19, 6.0],
+ [1, 1, 1.84, 0.03, 0.19, 21.0],
+ [2, 2, 2.02, 0.03, 0.22, 18.0],
+ [3, 3, 1.2, 0.03, 0.18, 9.0],
+ [4, 4, 1.86, 0.04, 0.24, 20.0],
+ [5, 5, 1.35, 0.06, 0.25, 18.0],
+ [6, 6, 1.04, 0.07, 0.3, 5.0],
+ [7, 7, 1.2, 0.09, 0.33, 11.0],
+ [8, 8, 1.24, 0.13, 0.4, 7.0],
+ [9, 9, 1.33, 0.15, 0.42, 11.0],
+ [10, 10, 1.08, 0.14, 0.38, 5.0],
+ [11, 11, 1.08, 0.14, 0.38, 5.0],
+ [11, 12, 1.08, 0.14, 0.38, 5.0],
+ [12, 13, 1.08, 0.14, 0.38, 5.0],
+ [13, 14, 1.63, 0.15, 0.44, 20.0],
+ [14, 15, 1.65, 0.16, 0.47, 21.0],
+ [15, 16, 1.37, 0.15, 0.4, 7.0],
+ [16, 17, 1.27, 0.15, 0.43, 8.0],
+ [17, 18, 1.43, 0.13, 0.38, 16.0],
+ [18, 19, 1.14, 0.17, 0.43, 8.0],
+ [19, 20, 1.16, 0.18, 0.44, 8.0],
+ [20, 21, 1.27, 0.18, 0.47, 17.0],
+ [21, 22, 1.08, 0.18, 0.43, 12.0],
+ [22, 23, 1.43, 0.18, 0.44, 13.0],
+ [23, 24, 1.76, 0.17, 0.43, 23.0],
+ [24, 25, 1.08, 0.14, 0.39, 14.0],
+ [25, 26, 1.33, 0.1, 0.35, 7.0],
+ [26, 27, 1.39, 0.08, 0.29, 14.0],
+ [27, 28, 1.22, 0.06, 0.26, 13.0],
+ [28, 29, 1.43, 0.04, 0.24, 18.0],
+ [29, 30, 2.12, 0.03, 0.23, 23.0],
+ [30, 31, 1.78, 0.03, 0.2, 18.0],
+ [31, 32, 1.35, 0.03, 0.18, 19.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/moving_and_zooming_camera/ce.mkv.sha256 b/tests/integration/cases/moving_and_zooming_camera/ce.mkv.sha256
new file mode 100644
index 00000000..6a1b9ec2
--- /dev/null
+++ b/tests/integration/cases/moving_and_zooming_camera/ce.mkv.sha256
@@ -0,0 +1 @@
+5976ac603cf65664f41590b10decd226de4c66a73e9e13597d6e16e45e110a4b ce.mkv
diff --git a/tests/integration/cases/moving_and_zooming_camera/manimgx.mkv.sha256 b/tests/integration/cases/moving_and_zooming_camera/manimgx.mkv.sha256
new file mode 100644
index 00000000..211dc4c7
--- /dev/null
+++ b/tests/integration/cases/moving_and_zooming_camera/manimgx.mkv.sha256
@@ -0,0 +1 @@
+57154a1d9a18d0c442b76c8e72454be852217b43f7f4c4be39d05d1aa905231d manimgx.mkv
diff --git a/tests/integration/cases/moving_and_zooming_camera/scene.py b/tests/integration/cases/moving_and_zooming_camera/scene.py
new file mode 100644
index 00000000..44b497f4
--- /dev/null
+++ b/tests/integration/cases/moving_and_zooming_camera/scene.py
@@ -0,0 +1,14 @@
+# Source: manim/scene/moving_camera_scene.py
+import manimgx as m
+
+
+class MovingAndZoomingCamera(m.MovingCameraScene):
+ def construct(self):
+ s = m.Square(color=m.BLUE, fill_opacity=0.5).move_to(2 * m.LEFT)
+ t = m.Triangle(color=m.YELLOW, fill_opacity=0.5).move_to(2 * m.RIGHT)
+ self.add(s, t)
+ self.play(self.camera.frame.animate.move_to(s).set(width=s.width * 2))
+ self.wait(0.3)
+ self.play(self.camera.frame.animate.move_to(t).set(width=t.width * 2))
+
+ self.play(self.camera.frame.animate.move_to(m.ORIGIN).set(width=14))
diff --git a/tests/integration/cases/moving_camera_center/case.json b/tests/integration/cases/moving_camera_center/case.json
new file mode 100644
index 00000000..56584387
--- /dev/null
+++ b/tests/integration/cases/moving_camera_center/case.json
@@ -0,0 +1,102 @@
+{
+ "source": "sha256:ac2afc6e0eb3bb976f904f91497cd46456877735ade6da25271e828da756adf0",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 2.6,
+ "frames": [
+ ["2e842802bccef91c", 3],
+ ["686fc8bce0a9c349", 1],
+ ["c698660e30363969", 1],
+ ["61e46883cb9c5dc3", 1],
+ ["2d173cf50d8f1e79", 1],
+ ["46c332682382642a", 1],
+ ["a44038d925ae344c", 1],
+ ["aeea4bd627fa9527", 1],
+ ["4bea4551e83ed616", 1],
+ ["295993c3f4cd710a", 1],
+ ["a9967cc1dd08f8bf", 1],
+ ["98bbaf0ab09e2fa6", 4],
+ ["e6574f5e8be9c61c", 1],
+ ["fc77ed1e9c18d9ae", 1],
+ ["4b69ddd58083ac63", 1],
+ ["1fc77ffbb223d384", 1],
+ ["686fc8bce0a9c349", 1],
+ ["fb2f3fae520d42c6", 1],
+ ["f22a362cd42c6714", 1],
+ ["6be6c0d885d45919", 1],
+ ["85415ecb13da7782", 1],
+ ["3d7a03ed4d525930", 1]
+ ],
+ "timeline": [
+ [0.0, 27]
+ ],
+ "id": "sha256:57bd08e1068fa51cab856ccf2dc8a228bf88e18968d60fd719d0d2e13d9885c8"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 2.6,
+ "frames": [
+ ["2e842802bccef91c", 2],
+ ["f7341d705bd02391", 1],
+ ["f9a82ec04b3dfbe5", 1],
+ ["bf8e44e07fe31f37", 1],
+ ["ae24721c096ef5d7", 1],
+ ["3df214768596a70a", 1],
+ ["baa5c6b10b49d279", 1],
+ ["d668bb90967f3007", 1],
+ ["14eb5f7343880a83", 1],
+ ["556d3b094bc70a2d", 1],
+ ["564416975b4f1ea8", 1],
+ ["e67df3bc7e2ce5d9", 3],
+ ["df281d4c5ad7e733", 1],
+ ["55ebaf52573ea136", 1],
+ ["8ce454eb5075f5f5", 1],
+ ["44ffa9df33ee6b24", 1],
+ ["f7341d705bd02391", 1],
+ ["708df0b29785c140", 1],
+ ["288cb987a764e8d8", 1],
+ ["fe3654df27e44cfe", 1],
+ ["54c69392487bf851", 1]
+ ],
+ "timeline": [
+ [0.0, 2],
+ [0.3, 10],
+ [1.3, 2],
+ [1.6, 10]
+ ],
+ "id": "sha256:60f5705bf23f8e8027f11348e12d7a852991f9e8a0ed0aeea8f3dd2cd433df9b"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 0.0, 0.0, 0.0, 0.0],
+ [1, 1, 0.0, 0.0, 0.0, 0.0],
+ [1, 2, 0.0, 0.0, 0.0, 0.0],
+ [2, 3, 1.57, 0.03, 0.18, 5.0],
+ [3, 4, 1.69, 0.03, 0.18, 13.0],
+ [4, 5, 1.69, 0.03, 0.18, 13.0],
+ [5, 6, 1.67, 0.03, 0.18, 13.0],
+ [6, 7, 1.57, 0.03, 0.18, 5.0],
+ [7, 8, 1.73, 0.03, 0.18, 12.0],
+ [8, 9, 1.61, 0.03, 0.18, 5.0],
+ [9, 10, 1.67, 0.03, 0.18, 13.0],
+ [10, 11, 1.76, 0.03, 0.18, 13.0],
+ [11, 12, 1.69, 0.03, 0.18, 13.0],
+ [12, 13, 1.57, 0.03, 0.18, 5.0],
+ [13, 14, 1.57, 0.03, 0.18, 5.0],
+ [13, 15, 1.57, 0.03, 0.18, 5.0],
+ [14, 16, 1.57, 0.03, 0.18, 5.0],
+ [15, 17, 1.57, 0.03, 0.18, 5.0],
+ [16, 18, 1.59, 0.03, 0.18, 5.0],
+ [17, 19, 1.59, 0.03, 0.18, 7.0],
+ [18, 20, 1.59, 0.03, 0.18, 7.0],
+ [19, 21, 1.57, 0.03, 0.18, 5.0],
+ [20, 22, 1.57, 0.03, 0.18, 7.0],
+ [21, 23, 1.59, 0.03, 0.18, 7.0],
+ [22, 24, 1.57, 0.03, 0.18, 5.0],
+ [23, 25, 1.59, 0.03, 0.18, 5.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/moving_camera_center/ce.mkv.sha256 b/tests/integration/cases/moving_camera_center/ce.mkv.sha256
new file mode 100644
index 00000000..48b67fc8
--- /dev/null
+++ b/tests/integration/cases/moving_camera_center/ce.mkv.sha256
@@ -0,0 +1 @@
+fc85ad94915b3b8e0f7b9a078f063aad41ae187d09a659222159f2ea8b965366 ce.mkv
diff --git a/tests/integration/cases/moving_camera_center/manimgx.mkv.sha256 b/tests/integration/cases/moving_camera_center/manimgx.mkv.sha256
new file mode 100644
index 00000000..ea84230b
--- /dev/null
+++ b/tests/integration/cases/moving_camera_center/manimgx.mkv.sha256
@@ -0,0 +1 @@
+924d802810a56b8e3a45ff9a7716eb9978152bb24089d13fa86afaf4684f1fc3 manimgx.mkv
diff --git a/tests/integration/cases/moving_camera_center/scene.py b/tests/integration/cases/moving_camera_center/scene.py
new file mode 100644
index 00000000..89f57ada
--- /dev/null
+++ b/tests/integration/cases/moving_camera_center/scene.py
@@ -0,0 +1,13 @@
+# Source: manim/scene/moving_camera_scene.py
+import manimgx as m
+
+
+class MovingCameraCenter(m.MovingCameraScene):
+ def construct(self):
+ s = m.Square(color=m.RED, fill_opacity=0.5).move_to(2 * m.LEFT)
+ t = m.Triangle(color=m.GREEN, fill_opacity=0.5).move_to(2 * m.RIGHT)
+ self.wait(0.3)
+ self.add(s, t)
+ self.play(self.camera.frame.animate.move_to(s))
+ self.wait(0.3)
+ self.play(self.camera.frame.animate.move_to(t))
diff --git a/tests/integration/cases/three_d_camera_illusion_rotation/case.json b/tests/integration/cases/three_d_camera_illusion_rotation/case.json
new file mode 100644
index 00000000..b5da782e
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_illusion_rotation/case.json
@@ -0,0 +1,79 @@
+{
+ "source": "sha256:7aad97958b9eeb07d358fe0ead87c82778a87077a4a9d88064fc3404a24698bb",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 1.570796327,
+ "frames": [
+ ["1593b94584578a0b", 1],
+ ["7f249099917a5e3f", 1],
+ ["2625aa988f295965", 1],
+ ["b9d3921a71fccf9c", 1],
+ ["a3e346220cee4334", 1],
+ ["e99025e6e3b4dad7", 1],
+ ["86ea1796bbfa8bad", 1],
+ ["2866d5304c29a2c6", 1],
+ ["9f307961638f9009", 1],
+ ["89808a35e67b5cf5", 1],
+ ["2a1c5307d69d98d8", 1],
+ ["7bfb7a4841cabab0", 1],
+ ["ab33019d0b0c07e5", 1],
+ ["973d97dad3621725", 1],
+ ["4e0e0d6481da3268", 1],
+ ["0503fee313269f53", 1],
+ ["9d6b40d8057c4768", 1]
+ ],
+ "timeline": [
+ [0.0, 17]
+ ],
+ "id": "sha256:e57c4fe334d742edb666f1c27d4bb819591e603f2dada28a80c181cd44ad6059"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 1.570796327,
+ "frames": [
+ ["2b5c858891f1ea1a", 1],
+ ["dae3da93ef2f7839", 1],
+ ["903dd774a84156a7", 1],
+ ["93883f9cf87c37a2", 1],
+ ["08ea380306db8ba9", 1],
+ ["92aa6fa2eb26d747", 1],
+ ["40ac6ded7406164d", 1],
+ ["a87f086f69e11152", 1],
+ ["82009fed24a28b1e", 1],
+ ["899bca316ef4ba04", 1],
+ ["ff0cb43e738bfdff", 1],
+ ["1e35b2bf70555672", 1],
+ ["cd257f74cefad2a3", 1],
+ ["9166c2556d2bfe20", 1],
+ ["09146abe9bac31f7", 1],
+ ["882748642f054c78", 1]
+ ],
+ "timeline": [
+ [0.0, 16]
+ ],
+ "id": "sha256:47585e052e94db2c7be8fe15f6cb43a1c1331fc944520f54f69cc6268dd1e20a"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 15.12, 0.07, 1.08, 122.0],
+ [1, 1, 15.69, 0.07, 1.1, 133.0],
+ [2, 2, 15.27, 0.07, 1.12, 131.0],
+ [3, 3, 14.98, 0.07, 1.09, 121.0],
+ [4, 4, 14.84, 0.07, 1.09, 125.0],
+ [5, 5, 15.76, 0.07, 1.1, 123.0],
+ [6, 6, 15.98, 0.07, 1.11, 170.0],
+ [7, 7, 15.24, 0.07, 1.08, 121.0],
+ [8, 8, 15.43, 0.07, 1.08, 122.0],
+ [9, 9, 15.84, 0.07, 1.08, 119.0],
+ [10, 10, 15.96, 0.07, 1.1, 123.0],
+ [11, 11, 15.33, 0.07, 1.1, 159.0],
+ [12, 12, 15.33, 0.07, 1.08, 134.0],
+ [13, 13, 15.33, 0.07, 1.06, 134.0],
+ [14, 14, 15.29, 0.07, 1.07, 132.0],
+ [15, 15, 15.31, 0.07, 1.06, 120.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/three_d_camera_illusion_rotation/ce.mkv.sha256 b/tests/integration/cases/three_d_camera_illusion_rotation/ce.mkv.sha256
new file mode 100644
index 00000000..3c621832
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_illusion_rotation/ce.mkv.sha256
@@ -0,0 +1 @@
+8cc6f599ff5ed9ede2630aa56d95d96b6e20b704491ce46f37de006d13a230f6 ce.mkv
diff --git a/tests/integration/cases/three_d_camera_illusion_rotation/manimgx.mkv.sha256 b/tests/integration/cases/three_d_camera_illusion_rotation/manimgx.mkv.sha256
new file mode 100644
index 00000000..848007f3
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_illusion_rotation/manimgx.mkv.sha256
@@ -0,0 +1 @@
+1185df0ac24445f33e4aab9797ff2f19050a797df77e58646165b0a78aefec5e manimgx.mkv
diff --git a/tests/integration/cases/three_d_camera_illusion_rotation/scene.py b/tests/integration/cases/three_d_camera_illusion_rotation/scene.py
new file mode 100644
index 00000000..04706cb6
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_illusion_rotation/scene.py
@@ -0,0 +1,13 @@
+# Source: docs/source/examples.rst
+import manimgx as m
+
+
+class ThreeDCameraIllusionRotation(m.ThreeDScene):
+ def construct(self):
+ axes = m.ThreeDAxes()
+ circle = m.Circle()
+ self.set_camera_orientation(phi=75 * m.DEGREES, theta=30 * m.DEGREES)
+ self.add(circle, axes)
+ self.begin_3dillusion_camera_rotation(rate=2)
+ self.wait(m.PI / 2)
+ self.stop_3dillusion_camera_rotation()
diff --git a/tests/integration/cases/three_d_camera_rotation/case.json b/tests/integration/cases/three_d_camera_rotation/case.json
new file mode 100644
index 00000000..c0960344
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_rotation/case.json
@@ -0,0 +1,103 @@
+{
+ "source": "sha256:d5dd2547735b8be8b3e5eb4351c7095924c64a5f2873431ee1fdc00305e610f4",
+ "size": [960, 540],
+ "fps": 10,
+ "manimgx": {
+ "duration": 3.0,
+ "frames": [
+ ["1593b94584578a0b", 1],
+ ["2da22f41a55d637a", 1],
+ ["8f41ac59708f9770", 1],
+ ["eba2847217f92f27", 1],
+ ["759de714046c6465", 1],
+ ["aabe640964b3aa9e", 1],
+ ["e77f2fb3049bbcef", 1],
+ ["38e27ffd4e1ad088", 1],
+ ["9422c3bf06a83d3d", 1],
+ ["3f2febfed08a78f4", 1],
+ ["9bd186bf25d7df63", 1],
+ ["c57bdef2a5a23562", 1],
+ ["b4702c83b0aca18c", 1],
+ ["e0c6d39a32799c27", 1],
+ ["6f0dbef698118b45", 1],
+ ["aabe640964b3aa9e", 1],
+ ["d86f2e406e5c0363", 1],
+ ["d1b4d1078152d2fc", 1],
+ ["476a29f895944e26", 1],
+ ["db2ae1f43e33b4f4", 1],
+ ["1593b94584578a0b", 11]
+ ],
+ "timeline": [
+ [0.0, 31]
+ ],
+ "id": "sha256:1fb4f871acb32d94ab3288be752256149033088f4e8558ef83b0d757a826c7c4"
+ },
+ "ce": {
+ "manim": "0.21.0",
+ "duration": 3.0,
+ "frames": [
+ ["2b5c858891f1ea1a", 1],
+ ["11cc84ba5f43211f", 1],
+ ["cc2db0eab221b3d1", 1],
+ ["0b147d046eb62c94", 1],
+ ["0b06a21136bdeb6b", 1],
+ ["3c801f6815c6f9be", 1],
+ ["dc9253906a6b956f", 1],
+ ["589420eae7e05b26", 1],
+ ["cc31db6c5c7c44a8", 1],
+ ["5cc959b748aebe16", 2],
+ ["12acca8286808efd", 1],
+ ["b79082760be83eab", 1],
+ ["82663d402c55532b", 1],
+ ["a054db5683755977", 1],
+ ["058516c315ca6cd3", 1],
+ ["5e05dc28387e8f19", 1],
+ ["039027cb44a3da44", 1],
+ ["898f4268d2784e32", 1],
+ ["cdc0d74de66fc1dd", 1],
+ ["2b5c858891f1ea1a", 10]
+ ],
+ "timeline": [
+ [0.0, 10],
+ [1.0, 10],
+ [2.0, 10]
+ ],
+ "id": "sha256:0061789917c4212fdf96af388302259c7a8c2fc9ab573a7f8a71bb6e9413dcf8"
+ },
+ "comparison": {
+ "metrics": ["local_max", "mae", "rmse", "max"],
+ "pairs": [
+ [0, 0, 15.12, 0.07, 1.08, 122.0],
+ [1, 1, 15.39, 0.07, 1.09, 118.0],
+ [2, 2, 16.59, 0.07, 1.07, 129.0],
+ [3, 3, 15.2, 0.07, 1.08, 119.0],
+ [4, 4, 16.02, 0.07, 1.09, 146.0],
+ [5, 5, 18.49, 0.07, 1.12, 168.0],
+ [6, 6, 18.06, 0.07, 1.11, 159.0],
+ [7, 7, 17.45, 0.07, 1.13, 168.0],
+ [8, 8, 17.41, 0.07, 1.13, 167.0],
+ [9, 9, 15.43, 0.07, 1.1, 139.0],
+ [10, 10, 144.22, 0.67, 9.87, 255.0],
+ [11, 11, 142.57, 0.66, 9.8, 255.0],
+ [12, 12, 137.29, 0.65, 9.62, 255.0],
+ [13, 13, 132.02, 0.61, 9.13, 255.0],
+ [14, 14, 115.47, 0.52, 8.03, 255.0],
+ [15, 15, 84.35, 0.38, 6.0, 255.0],
+ [16, 16, 45.9, 0.22, 3.56, 236.0],
+ [17, 17, 20.35, 0.12, 1.9, 136.0],
+ [18, 18, 15.27, 0.08, 1.25, 131.0],
+ [19, 19, 15.16, 0.07, 1.1, 123.0],
+ [20, 20, 15.12, 0.07, 1.08, 122.0],
+ [21, 21, 15.12, 0.07, 1.08, 122.0],
+ [22, 22, 15.12, 0.07, 1.08, 122.0],
+ [23, 23, 15.12, 0.07, 1.08, 122.0],
+ [24, 24, 15.12, 0.07, 1.08, 122.0],
+ [25, 25, 15.12, 0.07, 1.08, 122.0],
+ [26, 26, 15.12, 0.07, 1.08, 122.0],
+ [27, 27, 15.12, 0.07, 1.08, 122.0],
+ [28, 28, 15.12, 0.07, 1.08, 122.0],
+ [29, 29, 15.12, 0.07, 1.08, 122.0]
+ ],
+ "unpaired": []
+ }
+}
diff --git a/tests/integration/cases/three_d_camera_rotation/ce.mkv.sha256 b/tests/integration/cases/three_d_camera_rotation/ce.mkv.sha256
new file mode 100644
index 00000000..d5239d82
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_rotation/ce.mkv.sha256
@@ -0,0 +1 @@
+6bdbf7c8ed26eb9743434f6e8e698328b6bf7ea0b319dbfa090eab3a83f9c6ee ce.mkv
diff --git a/tests/integration/cases/three_d_camera_rotation/manimgx.mkv.sha256 b/tests/integration/cases/three_d_camera_rotation/manimgx.mkv.sha256
new file mode 100644
index 00000000..87657e8e
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_rotation/manimgx.mkv.sha256
@@ -0,0 +1 @@
+d1dd8bb06f58979d4710b6a09cebffe31ce1cf0417a3d13ea520c37641003e27 manimgx.mkv
diff --git a/tests/integration/cases/three_d_camera_rotation/review.json b/tests/integration/cases/three_d_camera_rotation/review.json
new file mode 100644
index 00000000..708b9216
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_rotation/review.json
@@ -0,0 +1,8 @@
+{
+ "verdict": "working",
+ "note": "",
+ "source": "sha256:d5dd2547735b8be8b3e5eb4351c7095924c64a5f2873431ee1fdc00305e610f4",
+ "manimgx": "sha256:1fb4f871acb32d94ab3288be752256149033088f4e8558ef83b0d757a826c7c4",
+ "ce": "sha256:0061789917c4212fdf96af388302259c7a8c2fc9ab573a7f8a71bb6e9413dcf8",
+ "at": "2026-10-04"
+}
diff --git a/tests/integration/cases/three_d_camera_rotation/scene.py b/tests/integration/cases/three_d_camera_rotation/scene.py
new file mode 100644
index 00000000..aa35de8e
--- /dev/null
+++ b/tests/integration/cases/three_d_camera_rotation/scene.py
@@ -0,0 +1,15 @@
+# Source: docs/source/examples.rst
+import manimgx as m
+
+
+class ThreeDCameraRotation(m.ThreeDScene):
+ def construct(self):
+ axes = m.ThreeDAxes()
+ circle = m.Circle()
+ self.set_camera_orientation(phi=75 * m.DEGREES, theta=30 * m.DEGREES)
+ self.add(circle, axes)
+ self.begin_ambient_camera_rotation(rate=0.1)
+ self.wait()
+ self.stop_ambient_camera_rotation()
+ self.move_camera(phi=75 * m.DEGREES, theta=30 * m.DEGREES)
+ self.wait()