Commit graph

556 commits

Author SHA1 Message Date
Grant Sanderson
7789038409 Fix bug with fbo initialization 2020-02-13 10:49:43 -08:00
Grant Sanderson
53abf506fc Change config defaults 2020-02-13 10:49:25 -08:00
Grant Sanderson
183bae0825 Move window operations to Scene 2020-02-13 10:42:07 -08:00
Grant Sanderson
c591954fc3 Small formatting change 2020-02-13 10:41:55 -08:00
Grant Sanderson
65828e0e36 Have mobjects pass texture data to camera, and change pixel_shape to come from the fbo viewport 2020-02-13 10:40:21 -08:00
Grant Sanderson
e5d8f83dbf Implemented ImageMobject with shaders 2020-02-13 10:39:26 -08:00
Grant Sanderson
3f0cc56665 Separate out the point_to_gl_Position function, which needs to be updated later 2020-02-12 18:05:22 -08:00
Grant Sanderson
50c7dd7d48 Don't have fill shader use quick (flawed) sdf 2020-02-12 13:24:15 -08:00
Grant Sanderson
eb89d45937 Have get_quadratic_approximation_of_cubic default to midpoint when there is no inflection 2020-02-12 12:53:21 -08:00
Grant Sanderson
cb31ce3049 Temporarily(?) allow stroke shader to sometimes cross triangles so as to avoid other artifacts 2020-02-12 12:51:36 -08:00
Grant Sanderson
ec90bb2e8a Change step size defaults on ParametricFunction 2020-02-12 12:49:46 -08:00
Grant Sanderson
5cfae1ea75 Remove unneeded import 2020-02-12 11:50:05 -08:00
Grant Sanderson
4b827adfee Rewrite insert_n_curves_to_point_list to be faster and more even. And honestly much less confusing 2020-02-12 11:49:51 -08:00
Grant Sanderson
c0a29c4c74 Have partial_bezier_points return list, not numpy array 2020-02-12 11:49:16 -08:00
Grant Sanderson
9835813679 Rename generate_points to init_points 2020-02-11 19:55:00 -08:00
Grant Sanderson
c7a99769ce Change order of camera.reset_pixel_shape args 2020-02-11 19:53:15 -08:00
Grant Sanderson
19814ecf87 Allow mobject to prepare and cleanup from animations 2020-02-11 19:52:41 -08:00
Grant Sanderson
ebd4016fb3 Small refactor of extract_scene et. al. 2020-02-11 19:52:14 -08:00
Grant Sanderson
960e918e61 Basic preview window 2020-02-11 19:51:19 -08:00
Grant Sanderson
2cf21fd0ad Add file opening operations to SceneFileWriter 2020-02-11 19:50:36 -08:00
Grant Sanderson
15e3178721 Incorporate frame_center in translation to gl_Position 2020-02-11 19:49:54 -08:00
Grant Sanderson
052aa8afe2 Changed angle methods 2020-02-11 19:48:50 -08:00
Grant Sanderson
699b886d68 Have svg paths subdivide sharper curves 2020-02-10 14:48:53 -08:00
Grant Sanderson
3634cb712d Fix triangulation 2020-02-10 14:48:28 -08:00
Grant Sanderson
f98513dfc2 Remove unneeded import 2020-02-10 14:48:07 -08:00
Grant Sanderson
7ce75bdb52 Added wrapper around mapbox triangulation to make it work for polygons with holes 2020-02-10 14:47:36 -08:00
Grant Sanderson
b243c522b1 Have Mobject pass their own render primative 2020-02-07 09:37:21 -08:00
Grant Sanderson
1018cca4eb Remove unneeded import 2020-02-07 09:36:56 -08:00
Grant Sanderson
1e0c701733 Change behavior of Z in svg commands 2020-02-07 09:35:57 -08:00
Grant Sanderson
247f3ac2c4 Change behavior of Z command in svgs 2020-02-07 09:35:28 -08:00
Grant Sanderson
050ed718e5 Small todo stubs as a reminder to relpace 3d VMobject material 2020-02-07 09:32:38 -08:00
Grant Sanderson
9b3d294464 Change fill shaders to compute orientation inside 2020-02-07 09:31:57 -08:00
Grant Sanderson
db0029c32b Fix error in get_quadratic_approximation_of_cubic 2020-02-07 09:31:06 -08:00
Grant Sanderson
1a13d32452 Get rid of join_structured_arrays 2020-02-07 09:30:47 -08:00
Grant Sanderson
6892e511fe Trying a smaller anti_alias width 2020-02-06 10:03:42 -08:00
Grant Sanderson
10b9f2224f Change fallback directory for pi creature 2020-02-06 10:03:04 -08:00
Grant Sanderson
ccef2485b2 Refactor svg reading 2020-02-06 10:02:42 -08:00
Grant Sanderson
8c07fcca24 Various add_smooth_curve_to functions 2020-02-06 10:02:13 -08:00
Grant Sanderson
cf2d8d47e6 Fixed get_quadratic_approximation_of_cubic to account for cubics with an inflection point between 0 and 1 2020-02-06 10:01:19 -08:00
Grant Sanderson
7685fd03c6 Whoops, let an accidental deletion slip through 2020-02-06 10:00:55 -08:00
Grant Sanderson
6db6e858c4 Change tuplify to listify 2020-02-05 14:47:14 -08:00
Grant Sanderson
f8d7daa14f Change geometry mobjects to work with quadratic bezier curves 2020-02-05 14:46:25 -08:00
Grant Sanderson
f8d293493f Change VMobject to operate with quadratic bezier curves 2020-02-05 14:46:04 -08:00
Grant Sanderson
0a82229ac1 Have stroke/fill vert shaders take in 3d points 2020-02-05 14:45:42 -08:00
Grant Sanderson
025f6d9524 Tiny stylistic change to rgb_to_hex 2020-02-05 14:44:35 -08:00
Grant Sanderson
c34bb7912c Added stretch_array_to_length_with_interpolation 2020-02-05 14:44:16 -08:00
Grant Sanderson
9da5ef4743 Changing patron name default 2020-02-04 15:29:05 -08:00
Grant Sanderson
0fe05ce07d Starting to chase scene to account for a shader-based camera 2020-02-04 15:28:50 -08:00
Grant Sanderson
1549998a19 Adding ANTI_ALIAS_WIDTH and SHADER_DIR, removing DEFAULT_POINT_DENSITY_* 2020-02-04 15:28:29 -08:00
Grant Sanderson
e185b87195 Moving some functions away from MovingCamera. Soon, all that should be default behavior of Camera 2020-02-04 15:27:50 -08:00