Commit graph

91 commits

Author SHA1 Message Date
Grant Sanderson
585a4ff864 Bug fix to camera_center 2018-11-29 17:29:12 -08:00
Grant Sanderson
71d5851dd0 Fixed frame_center bug 2018-10-05 17:18:21 -07:00
Grant Sanderson
9cf4dfac3d Preliminary finish to quat3d preamble 2018-10-04 18:23:18 -07:00
Grant Sanderson
656a1d8b8e Added get_z_index_reference_point 2018-09-27 17:34:45 -07:00
Grant Sanderson
5782c13813 Back to old way of z-indexing 2018-08-30 14:23:48 -07:00
Grant Sanderson
8a1f121207 Don't even try to display points with nan or infinity 2018-08-30 14:23:26 -07:00
Grant Sanderson
0d95fe7234 Change where z-sorting happens in 3d camera 2018-08-29 00:09:09 -07:00
Grant Sanderson
bfa37e251f Got rid of ValueTracker special cases in camera 2018-08-29 00:08:46 -07:00
Grant Sanderson
62f0a20843 Dumb perspective hack 2018-08-28 09:43:45 -07:00
Grant Sanderson
9960ae177c Added option for projection type to ThreeDCamera 2018-08-27 16:31:36 -07:00
Grant Sanderson
35a59474fe Camera shouldn't try to display ValueTrackers 2018-08-27 16:30:41 -07:00
Grant Sanderson
90b21a4a8a Better ThreeDCamera.add_fixed_orientation_mobjects 2018-08-23 14:44:22 -07:00
Grant Sanderson
98801413e9 Fixed camera bugs 2018-08-22 21:22:50 -07:00
Grant Sanderson
7912f6f2d3 Implmented ThreeDScene.add_fixed_orientation_mobjects and ThreeDScene.add_fixed_in_frame_mobjects 2018-08-22 14:48:42 -07:00
Grant Sanderson
0149f4a496 Better ThreeDVMobject implementation 2018-08-21 19:58:48 -07:00
Grant Sanderson
98a7f254ee Remaining submobject_family -> get_family 2018-08-21 19:16:51 -07:00
Grant Sanderson
51e6b66c95 submobject_family -> get_family 2018-08-21 19:15:16 -07:00
Grant Sanderson
ff134b7903 Remove z_coordinate display ordering 2018-08-20 15:48:50 -07:00
Grant Sanderson
6f57a8bc5e Performance improvements to 3d constructs 2018-08-16 22:25:51 -07:00
Grant Sanderson
daffec0034 Fixed projection 2018-08-15 21:55:42 -07:00
Grant Sanderson
365093c0b5 np.linalg.norm -> get_norm 2018-08-15 17:30:24 -07:00
Grant Sanderson
f926611d34 Added preliminary 3d animation abilities with (as of now poorly shaded) parametric curves 2018-08-15 16:23:29 -07:00
Grant Sanderson
d6996452e5 Make sure cairo transform accounts for frame center 2018-08-13 14:12:45 -07:00
Grant Sanderson
3ba33d543e Fixed some ThreeDCamera bugs 2018-08-12 19:04:52 -07:00
Grant Sanderson
3f6376af39 Fixed MovingCamera bug where frame was not updated properly 2018-08-12 12:46:57 -07:00
Grant Sanderson
114a37f32c DEFAULT_POINT_THICKNESS -> DEFAULT_STROKE_WIDTH 2018-08-12 00:35:54 -07:00
Grant Sanderson
d551fa6b24 Updated background_colored_vmobject displaying 2018-08-11 20:54:27 -07:00
Grant Sanderson
22d889f6dc Fixed some camera bugs 2018-08-11 19:20:09 -07:00
Grant Sanderson
0a423f7736 Updated ThreeDCamera color methods 2018-08-11 16:52:37 -07:00
Grant Sanderson
3d5826229b Prevent ned to create new cairo ImageSurface with each frame 2018-08-11 16:52:06 -07:00
Grant Sanderson
087715e538 Reimplented svg rendering using cairo, and changed vmobject color model to allow for gradeints and strokes with opacities. Many errors associated with python 2 to python 3 conversion are likely still present at this point. 2018-08-10 15:12:49 -07:00
Grant Sanderson
858051a806 After running 2to3 2018-08-09 17:56:05 -07:00
Grant Sanderson
f9ce36c6f6 Camera background is opacity 0 when -t is passed in, otherwise 1 2018-08-08 11:50:34 -07:00
Grant Sanderson
3dc5b10e8b Add background stroke width to mobjects 2018-08-08 11:15:45 -07:00
Grant Sanderson
151a270913 Modernize Python 2 for Python 3 2018-07-11 11:38:59 -07:00
Grant Sanderson
d72483e909 Fixed Camera.is_in_frame 2018-06-18 13:03:56 -07:00
Grant Sanderson
2eebaccde2 Small setup for possible shift to general camera implementation 2018-06-11 10:41:04 -07:00
Grant Sanderson
60caf2312c Quick fix to a bug where ImageMobjects of size zero weren't displayed 2018-06-08 17:15:30 -07:00
Grant Sanderson
978e7c1799 Pillow was giving some troubles with creating an image from an array while setting a mode 2018-06-07 11:49:46 -07:00
Grant Sanderson
49fe36b048 Added is_in_frame method to camera 2018-05-30 12:01:47 -07:00
Grant Sanderson
13d7228918 Revert "Merge branch 'master' of github.com:3b1b/manim into alt-calc"
This reverts commit 17a1ea6db5, reversing
changes made to c8c6e6d9ba.
2018-05-21 12:11:46 -07:00
Ben Hambrecht
b2b66947db reverted to earlier version 2018-05-16 21:17:14 +02:00
Grant Sanderson
ecd48d885e Start tracking pixel_height and pixel_width instead of pixel_shape, since all uses of it involved unpacking anyway, and the ordering makes it harder to read and edit. 2018-05-14 13:52:44 -07:00
Grant Sanderson
f04b2e270c Refactoring how Camera frame height and width are handled 2018-05-11 17:41:37 -07:00
Grant Sanderson
f0b8ae7647 Refactoring and bug fixes to moving_camera, multi_camera, zoomed_scene mix 2018-05-11 13:15:34 -07:00
Grant Sanderson
80176f0940 Replaced background_alpha with background_opacity 2018-05-10 19:55:06 -07:00
Grant Sanderson
d36a68f756 Cleanup of ZoomedScene updates 2018-05-10 19:46:10 -07:00
Grant Sanderson
8703e2336c Fixing various in ZoomedScene 2018-05-10 19:20:18 -07:00
Grant Sanderson
7ee85faadd Reimplemented ZoomedScene, using a new MultiCamera 2018-05-10 15:55:31 -07:00
Grant Sanderson
1f394ca2eb Reimplemented Camera.display_image_mobject 2018-05-09 18:55:12 -07:00