145 Commits

Author SHA1 Message Date
d4c89e520f Reorganize methods and how triangulation gets refreshed 2021-01-15 08:55:19 -10:00
7b67f4556b Reorganize Mobject methods and remove ones that are not longer needed 2021-01-14 14:15:58 -10:00
d53dbba346 Always call super for init_data 2021-01-14 01:01:13 -10:00
38b305bb19 Fix issue with pointwise_become_partial 2021-01-13 09:21:22 -10:00
00333d0a4d Bug fix 2021-01-13 00:09:56 -10:00
d60ec48591 Track/interpolate uniforms the same way data is 2021-01-12 12:15:32 -10:00
ba8fb4a6b7 check_data_alignment by default 2021-01-12 11:21:57 -10:00
ca1c2f7797 Return unit normal as 1d vector 2021-01-12 11:13:41 -10:00
0d238417cb Allow locking data to speed up some animations 2021-01-12 11:09:53 -10:00
ddfc3a6567 Replace lingering .points references 2021-01-12 07:27:32 -10:00
6b29691e0e Allow setting of multiple colors/opacities/stroke_widths 2021-01-11 17:52:48 -10:00
6b451dcc22 Allow Mobject.get_family(recurse) for common recursive methods 2021-01-11 17:03:12 -10:00
4d9498322e Push more color functionality to Mobject 2021-01-11 16:37:51 -10:00
c408adeefa Rework DotCloud and PMobject for new data structure 2021-01-11 12:40:21 -10:00
30dc8176ff Remove append_points from VMobject, as it's now up in Mobject 2021-01-11 12:39:45 -10:00
96fbac85ad Setup Image/Surface for new data formatting 2021-01-11 12:39:14 -10:00
9314dfd933 Reframe Mobject, VMobject and SurfaceMobject with a data map 2021-01-11 10:57:23 -10:00
b3335c65fb Partial progress 2021-01-10 18:51:47 -08:00
bf73938fd1 Move joint type map to constants 2021-01-10 14:10:31 -08:00
9a1e103a7f Introduce flat_stroke uniform 2021-01-08 22:26:47 -08:00
065df65cf1 Reorganize how shader files sit in the shaders folder 2021-01-05 23:14:16 -08:00
dde085094f Refresh triangulation after general functions 2021-01-05 22:00:52 -08:00
349a9c9cea Add VMobject.get_opacity 2021-01-05 18:00:55 -08:00
131794e53c Change DotCloud initialization 2021-01-04 14:55:42 -08:00
a4ea4791e7 Added DotCloud type 2021-01-04 13:26:58 -08:00
31e6aa2ae0 Use super() 2021-01-04 13:25:42 -08:00
156ea11537 Fix the but for transforming between VMobjects with different triangulations. Turns out this is all that's needed 2021-01-03 17:17:20 -08:00
23f7bce427 Bug fix to add_smooth_curve_to 2021-01-01 20:12:34 -08:00
b64875fd55 Typo fix for primitive 2020-12-04 08:12:53 -08:00
2dac041006 Change default smoothing algorithm 2020-08-20 17:16:15 -07:00
537a2c74aa Return self on unlock_triangulation 2020-08-16 09:46:33 -07:00
dd6e99ab2e Make it possible to set a prefered direction for ShowCreation on surfaces 2020-08-16 09:46:08 -07:00
ae590e7fde Add point_to_rgb 2020-08-12 13:23:21 -07:00
72472c5836 Refactor in terms of a ShaderWrapper object 2020-07-22 18:21:42 -07:00
5ee4b94ec3 Not great, but adding an alternate implementation of make_smooth in as a comment just because it's unclear what's best right now 2020-07-22 18:18:29 -07:00
46b52a1bbc Small fix to VMobject.pointwise_become_partial for cases when points array sizes dont' match 2020-06-29 22:53:23 -07:00
5e7913fdd4 Implemented pointwise_become_partial for parametric surfaces 2020-06-29 22:52:27 -07:00
2671817ae9 Refactor away from treating shader_info as a dictionary, and make it a proper type as ShaderWrapper. This also includes some cleanup in hos Camera renders 2020-06-29 18:17:18 -07:00
2b3bd2bfce Use an index buffer for shaders to save memory 2020-06-29 11:05:09 -07:00
8af879236e Make gloss and shadow uniforms 2020-06-28 12:13:25 -07:00
14cac5ce71 Make stroke width array a float 2020-06-28 10:04:40 -07:00
54bde86c7b Some small performance improvements to VMobject 2020-06-27 12:10:22 -07:00
10c6bfe3ad Add refresh_shader_info_id insetead of having create_shader_info_id called all the time 2020-06-27 00:01:45 -07:00
60e1c88eb4 Slight tweaks to how shader_info id is found and stored 2020-06-26 23:05:25 -07:00
9795beba89 Removes locked_shader_data notion 2020-06-26 21:52:50 -07:00
212cdbb4d2 Speed improvements. Camera saves vbo for static mobjects, data in shader_data_info is saved and concatenated in raw form 2020-06-26 19:29:34 -07:00
21bf3c3e3a VMobject was not correctly incorporating background stroke on init 2020-06-26 15:31:24 -07:00
eee4054da8 Cleaup how colors are updated 2020-06-17 17:11:57 -07:00
b16b107f3e Add depth test update when fill and stroke shader info are created 2020-06-17 17:11:31 -07:00
e6f73073fe Remember triangle indices, rather than recomputing each frame 2020-06-15 12:02:24 -07:00