Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable framerate fix for all branches #1189

Closed
wants to merge 351 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
351 commits
Select commit Hold shift + click to select a range
8f81195
Replace np.clip with clip
3b1b Feb 19, 2020
065979e
A few small formatting changes
3b1b Feb 19, 2020
b504899
Replace np.clip with clip
3b1b Feb 19, 2020
ba0d677
Small fixes
3b1b Feb 19, 2020
dd7f8aa
Default unlock triangulation for pi creature
3b1b Feb 19, 2020
0ed5acd
Adding directory for mobject_points
3b1b Feb 19, 2020
f147546
Just moving things around
3b1b Feb 19, 2020
0be5abc
Small bug fix
3b1b Feb 19, 2020
d24a757
Have LaggedStartMap remember group
3b1b Feb 19, 2020
671042c
Replace np.clip with clip, and other small changes
3b1b Feb 19, 2020
07cda69
Finally, some work on the beta video
3b1b Feb 19, 2020
b373b79
Move rendering to Mobject, and be smarter about caching data and vbo
3b1b Feb 20, 2020
51167e1
Rename and move around lock_static_mobject_data
3b1b Feb 20, 2020
ad1caca
Remove get_moving_mobjects
3b1b Feb 20, 2020
b7f9257
New small beta scene
3b1b Feb 20, 2020
0176bda
Replace np.apply_along_axis with arr.min
3b1b Feb 20, 2020
c794039
Replacing apply_along_axis
3b1b Feb 20, 2020
57b1523
Various bits of cleanup and micro speedups
3b1b Feb 20, 2020
c88bcc1
Get rid of get_point_mobject
3b1b Feb 20, 2020
16ea2a0
Fix bug with pi creature
3b1b Feb 20, 2020
ec017bd
Insignificant style edit
3b1b Feb 20, 2020
eb121c9
Small edits
3b1b Feb 20, 2020
306344e
Add possibility for add_line to add more points...makes for better sv…
3b1b Feb 20, 2020
8d3ec1a
Don't worry about aligning points of vmobjects with same number of po…
3b1b Feb 21, 2020
bafc8c8
subdivide_sharp_curves -> should_subdivide_sharp_curves
3b1b Feb 21, 2020
6be41fe
Add simple function to measure runtime
3b1b Feb 21, 2020
b825b36
Slight fix to triangulation
3b1b Feb 21, 2020
ea59950
Have mobjects track family and parents more directly
3b1b Feb 21, 2020
fa7f340
Replace np.<trig> with math.<trig>
3b1b Feb 21, 2020
68ac16e
Move rendering back to camera
3b1b Feb 21, 2020
41e2fd7
Make Rotate a subclass of Rotation, not Transform
3b1b Feb 21, 2020
2ca0726
Add self.shader_data_is_locked condition to get_shader_info_list
3b1b Feb 21, 2020
0b0dbcb
Replace np.tan with math.tan...because why not
3b1b Feb 21, 2020
c8befa5
Fix bug with eyes
3b1b Feb 22, 2020
11a4d76
Change implementation of pointwise_become_partial not to change the n…
3b1b Feb 22, 2020
ed6085d
Add replace_submobject
3b1b Feb 22, 2020
7b19854
Get rid of old methods
3b1b Feb 22, 2020
f4a33c5
Small fix
3b1b Feb 22, 2020
34ae76a
Have restructure_list_to_exclude_certain_family_members work with the…
3b1b Feb 22, 2020
b0c80a7
More scenes for beta
3b1b Feb 22, 2020
da8dc4e
Unlock pi creature triangulation
3b1b Feb 23, 2020
26dccfe
Make input_to_graph_point always use a binary search, since graph's h…
3b1b Feb 23, 2020
d794ff8
Revert last change
3b1b Feb 23, 2020
8159f70
Typo fix
3b1b Feb 23, 2020
8485ff8
Have vmob.set_opacity default to opacity 1 if it's not specified
3b1b Feb 23, 2020
60b1e28
Don't embed when writing to file with no preview
3b1b Feb 23, 2020
d4790be
Adding pi_font
3b1b Feb 23, 2020
1b497d3
New scenes for beta
3b1b Feb 23, 2020
f477662
Shorten name to index_labels
3b1b Feb 27, 2020
3cc9bf7
Bug fix to refresh_triangulation
3b1b Feb 27, 2020
40b651d
Reformat
3b1b Feb 27, 2020
6e0ae83
Small fixes
3b1b Feb 27, 2020
6593eab
Change default stroke width of number line
3b1b Feb 27, 2020
ed1cbe3
Don't copy a mobject's parents
3b1b Feb 27, 2020
06123f9
Don't deepcopy Arrow by default
3b1b Feb 27, 2020
8fc6c81
Latest beta animations
3b1b Feb 27, 2020
cfe7292
Have rotate_vector return same type as input
3b1b Mar 6, 2020
7785a06
Move where refreshing shader uniforms happens
3b1b Mar 6, 2020
f83cfc4
Fix set_fill
3b1b Mar 6, 2020
ace2b7f
Don't deepcopy parents
3b1b Mar 6, 2020
0ad6432
Fix to NumberPlane
3b1b Mar 6, 2020
2c80b6f
Latest scenes from beta
3b1b Mar 6, 2020
5a780df
Flash did not use stroke_width
3b1b Mar 8, 2020
e8b0ecf
Fix endscreen
3b1b Mar 8, 2020
aa016bf
Dumb
3b1b Mar 8, 2020
3e84a2f
Latest beta animations
3b1b Mar 8, 2020
85bfde6
All animations for the covid video, done in a frantic fugue state
3b1b Mar 8, 2020
627f122
Remove VMobject.set_fill defaulting
3b1b Mar 13, 2020
d5b2160
Updating end screen
3b1b Mar 13, 2020
b0aacda
Add count in from
3b1b Mar 13, 2020
0c9447a
Final edits for covid video
3b1b Mar 13, 2020
6c391a7
Changes to beta before early release of beta1
3b1b Mar 13, 2020
ab817c0
Fix blink
3b1b Mar 14, 2020
23440d0
Add pfp as abreviation for point_from_proportion
3b1b Mar 14, 2020
04459ae
Most animations for second beta video
3b1b Mar 14, 2020
6880ebc
Finishing touches before beta1 public and beta2 private releases
3b1b Mar 17, 2020
f7ad9e7
Separate time_based_updaters and non_time_updaters
3b1b Mar 19, 2020
6fee2f5
Simulations for an SIR epidemic model
3b1b Mar 19, 2020
7c0bf2c
Add args to VMobject.flip
3b1b Mar 27, 2020
8384b8b
Fix bug with clock
3b1b Mar 27, 2020
2ce0b72
Final scenes for SIR video
3b1b Mar 27, 2020
6eabbe9
Changed -1 to -1.0 for broader GPU suppot.
kolibril13 Mar 30, 2020
13f0ef3
Small video-specific tweaks
3b1b Apr 6, 2020
94c121b
Default arrange_in_grid should have it draw rows first
3b1b Apr 7, 2020
427ad69
Animation for reworked beta2
3b1b Apr 7, 2020
1525d5f
Make patron screen scroll time a variable
3b1b Apr 9, 2020
50e00a3
Updates to scenes before early release of (the actual) beta2
3b1b Apr 9, 2020
0b8cb3b
Leaving a note for the better color-preserving encoding
3b1b Apr 12, 2020
2d02575
End scenes after embed
3b1b Apr 12, 2020
6e523ed
Clearer defaults
3b1b Apr 12, 2020
9655648
Published pdf video
3b1b Apr 12, 2020
ec4a70a
Merge pull request #950 from kolibril13/patch-1
eulertour Apr 16, 2020
d83fa90
Fix Text Class's bugs in shaders branch (the same as #1030) (#1031)
TonyCrane May 7, 2020
ccb47db
fix pixel_coords_to_space_coords
3b1b May 30, 2020
593c249
Tiny comment
3b1b May 30, 2020
9a8323c
Changes for recent videos
3b1b May 30, 2020
270e93f
Merge
3b1b May 30, 2020
00dcc14
Fixed the random-dimples-on-zeros bug while fixing up the fill shaders
3b1b Jun 1, 2020
e882356
Small cleanups to the shader files
3b1b Jun 1, 2020
725a7e3
Enable 3d rotations
3b1b Jun 1, 2020
38cc0a7
Added glossiness to VMobjects
3b1b Jun 2, 2020
a232c32
Changed camera frame from working in quaternions to working in Euler …
3b1b Jun 3, 2020
adac569
Have banner remember pis
3b1b Jun 4, 2020
23bbdc6
Fix up fill shaders to work when being viewed from different orientat…
3b1b Jun 4, 2020
e441920
Got stroke shaders working in 3d
3b1b Jun 4, 2020
4c33b99
Very rudimentary 3dSurface type
3b1b Jun 4, 2020
2b931dc
Improvements to surfaces, with textured surfaces available
3b1b Jun 5, 2020
54598f9
Remove unnecessary import
3b1b Jun 5, 2020
a62a4ae
Make sure Point has points of type float
3b1b Jun 5, 2020
efe15cf
normalize_along_axis
3b1b Jun 5, 2020
cacfe67
ParametricSurface replaces the role of SurfaceMobject, and instead of…
3b1b Jun 5, 2020
b2137f2
Fixed z_to_vector for vectors on z-axis
3b1b Jun 5, 2020
b4fb095
Get rid of sheen factor
3b1b Jun 5, 2020
a3e7633
Nix shade_in_3d stuff
3b1b Jun 5, 2020
e5a215c
Have rectangles drawn in ccw order
3b1b Jun 5, 2020
a204e42
Get rid of do-nothing self.ctx.multisample line
3b1b Jun 5, 2020
51eb9de
A little cleaning up of 3d axes. More to come
3b1b Jun 5, 2020
83b2932
A few more surface types
3b1b Jun 5, 2020
d89bf9b
Added SGroups
3b1b Jun 5, 2020
cbc5bff
Setup for new project
3b1b Jun 5, 2020
5c23e93
Reconfigure NumberLine, the whole interface felt very weird
3b1b Jun 6, 2020
fbe917d
Add height to DecimalNumber config
3b1b Jun 6, 2020
1a5fb20
Reconfigured how to initialize axes and number planes. Hopefully muc…
3b1b Jun 6, 2020
274ebe7
Change stroke shader to effectively project down to a flat plane befo…
3b1b Jun 6, 2020
4385fc7
Change TipableVMobject to take in all tip_config at one spot
3b1b Jun 6, 2020
98ac6a0
Small cleanup
3b1b Jun 6, 2020
7c1f560
Change fallback unit normal to be in negative y-direction
3b1b Jun 6, 2020
7cec2e5
Rename: ParametricFunction -> ParametricCurve
3b1b Jun 6, 2020
58fe0c7
Reconfigured ParametricCurve
3b1b Jun 6, 2020
b8a1853
Change meaning of resolution for surfaces to be the number of posts, …
3b1b Jun 6, 2020
017961e
Changed min_samples
3b1b Jun 6, 2020
b32c293
Added SurfaceMesh
3b1b Jun 6, 2020
ba7a519
Add shadow, and pull out lighting information to Mobject
3b1b Jun 6, 2020
a5f16f0
Make sure light styling is interpolated properly
3b1b Jun 7, 2020
58df38f
Let FadeIn and FadeOut take in directions
3b1b Jun 7, 2020
3a111cf
Get rid of this color nonsense
3b1b Jun 7, 2020
4a3e4df
Change cube face order
3b1b Jun 7, 2020
4968c7a
Small note
3b1b Jun 7, 2020
046caa7
Bug fixes
3b1b Jun 7, 2020
7e0566c
Honestly, this file should be killed
3b1b Jun 7, 2020
919f267
Create Chessboard and Coin types
3b1b Jun 7, 2020
2d19d76
Replace all FadeInFrom with simple FadeIn, and likewise for FadeOutFr…
3b1b Jun 7, 2020
97304d9
Added multisampling to camera
3b1b Jun 8, 2020
596b7c0
Get rid of unneeded import
3b1b Jun 8, 2020
39230a8
Better handling of textures, now letting multiple get passed in to a …
3b1b Jun 8, 2020
bab809b
Allow for passing shader uniforms from mobjects
3b1b Jun 8, 2020
be90477
Treat joint_type as a uniform
3b1b Jun 8, 2020
5d34cee
Move frame resizing to get_gl_Position so that the screen rotation ma…
3b1b Jun 9, 2020
ccefbc0
Add is_fixed_in_frame uniform which allows mobjects to not get rotate…
3b1b Jun 9, 2020
f0a3632
Changed get_quadratic_approximation_of_cubic
3b1b Jun 9, 2020
b91284b
Small shader fixes
3b1b Jun 9, 2020
ee72187
Fixed FunctionGraph bug
3b1b Jun 9, 2020
940432e
Remove unneeded import
3b1b Jun 9, 2020
c7a50ac
Tried, but failed, to write a better smooth bezier function
3b1b Jun 9, 2020
1f129f4
Clean up parametric function
3b1b Jun 9, 2020
3e913b6
Have make_smooth work directly from the quadratic bezier curves, with…
3b1b Jun 9, 2020
7c4874b
Changed how focal_distance works
3b1b Jun 10, 2020
5584521
Change default focal distance
3b1b Jun 10, 2020
2208b51
Lock triangulation and unit normal by default
3b1b Jun 10, 2020
cf8790e
switched to get_triangle_indices
3b1b Jun 10, 2020
a4d4ae9
Don't get rid of null curves each frame, instead do it once for SVG m…
3b1b Jun 10, 2020
8a060df
Add axis_normalized option to quaternion_from_angle_axis
3b1b Jun 10, 2020
2317a7d
Torus
3b1b Jun 10, 2020
429d63e
Add special methods for setting angles
3b1b Jun 10, 2020
62e5efe
SGroups should be considered to have resolution (0, 0)
3b1b Jun 10, 2020
512c42f
CoinFlip animation
3b1b Jun 10, 2020
9d5282b
New scene for chessboard video
3b1b Jun 13, 2020
61a3bd8
Small change to make the ctx enable flag a little clearer
3b1b Jun 13, 2020
81cedfb
Cleanup to the __init__ functions on a few geometry objects
3b1b Jun 13, 2020
46bcf93
Stretch to fit should apply to all 3 dimensions
3b1b Jun 13, 2020
f5b4a86
Add get_color function
3b1b Jun 13, 2020
145c6a7
Remove already commented out alternate pix_fmt
3b1b Jun 13, 2020
222b6d1
Push depth test decision to the mobject level, as opposed to the camera
3b1b Jun 15, 2020
00ad9d7
Cleanup to square and rectangle init
3b1b Jun 15, 2020
7a152fe
Some TODO stubs. Honestly, this whole file should probably be deleted
3b1b Jun 15, 2020
9d77249
Removes the need to be able to recover shader_info from shader_id
3b1b Jun 15, 2020
1e6eef8
Have shader_info remember its own id
3b1b Jun 15, 2020
edec91e
Unfactor internals of batch_by_property for easier readibility, and s…
3b1b Jun 15, 2020
739667f
Turn on depth test for SurfaceMesh
3b1b Jun 15, 2020
6a45854
Bug fix
3b1b Jun 15, 2020
c45fe52
Rather than calling get_shader_info a bunch, remember a tempalte
3b1b Jun 15, 2020
e6f7307
Remember triangle indices, rather than recomputing each frame
3b1b Jun 15, 2020
8c9ea90
Remove triangulation lock after animation
3b1b Jun 15, 2020
d1f1ed6
Adds DiagramOfProgression
3b1b Jun 15, 2020
5ce8d08
Go back to recomputing shader id
3b1b Jun 18, 2020
138c48c
Remove old commented out window timing code
3b1b Jun 18, 2020
b16b107
Add depth test update when fill and stroke shader info are created
3b1b Jun 18, 2020
eee4054
Cleaup how colors are updated
3b1b Jun 18, 2020
a000642
Fix Line3D
3b1b Jun 18, 2020
0a89a77
Clean up some family matters
3b1b Jun 18, 2020
48801f2
Don't give arrow tip stroke width by default
3b1b Jun 18, 2020
d4635ab
Chessbaord scenes up to ShowCube
3b1b Jun 18, 2020
bb66a7c
Releases moderngl buffers after use
3b1b Jun 18, 2020
4fdd655
changes default Line3D resolution
3b1b Jun 18, 2020
81f6063
Change string format style
3b1b Jun 18, 2020
fd1f431
Lock shader data during interaction
3b1b Jun 18, 2020
687d70e
Changes default int_func on ShowIncreasingSubsets to np.round
3b1b Jun 22, 2020
09df42a
Acutually uses Arrow.preserve_tip_size_when_scaling
3b1b Jun 22, 2020
c653610
Add Checkmark and Exmark
3b1b Jun 22, 2020
c8195f7
New chessboard scenes
3b1b Jun 22, 2020
1f63085
Only remove null curves for tex mobjects
3b1b Jun 23, 2020
5b1ce54
Update ending scroll
3b1b Jun 23, 2020
6451371
Final(?) animations for chessbaord puzzle part 1
3b1b Jun 23, 2020
21bf3c3
VMobject was not correctly incorporating background stroke on init
3b1b Jun 26, 2020
c2feb6f
Add shorted method for setting background stroke
3b1b Jun 26, 2020
a05621e
Changes to end scroll
3b1b Jun 26, 2020
9b9dca7
Final(?) Chessbaord animations
3b1b Jun 26, 2020
72bfb00
Prep for antipode animations
3b1b Jun 26, 2020
212cdbb
Speed improvements. Camera saves vbo for static mobjects, data in sh…
3b1b Jun 27, 2020
9795beb
Removes locked_shader_data notion
3b1b Jun 27, 2020
9d03f40
Keep tex mobject from calling itself twice
3b1b Jun 27, 2020
9a2b2ec
Small repositioning
3b1b Jun 27, 2020
4910501
Clean up end scroll
3b1b Jun 27, 2020
5d371bf
Fix broken import
3b1b Jun 27, 2020
661b81a
By default, don't recursively check for updaters unless there's somet…
3b1b Jun 27, 2020
60e1c88
Slight tweaks to how shader_info id is found and stored
3b1b Jun 27, 2020
6ba1eae
Use ctx.vertex_array instead of ctx.simple_vertex_array
3b1b Jun 27, 2020
26ce1d8
Remove unlock_shader_data calls
3b1b Jun 27, 2020
10c6bfe
Add refresh_shader_info_id insetead of having create_shader_info_id c…
3b1b Jun 27, 2020
54bde86
Some small performance improvements to VMobject
3b1b Jun 27, 2020
90db32e
Have camera_frame remember rotation matrix by default
3b1b Jun 27, 2020
b443c9e
Fixed bug at a = 1 for partial_bezier
3b1b Jun 27, 2020
6a735e4
Refresh rotation matrix after interpolation
3b1b Jun 27, 2020
14cac5c
Make stroke width array a float
3b1b Jun 28, 2020
13bcd72
Adds a small todo
3b1b Jun 28, 2020
41fd6d4
Simply reorders where some methods are defined
3b1b Jun 28, 2020
1cab58a
Change how arrow is implemented to be all fill no stroke
3b1b Jun 28, 2020
8af8792
Make gloss and shadow uniforms
3b1b Jun 28, 2020
279f66c
A little refactoring and performance improvement
3b1b Jun 28, 2020
439e83f
set_array_by_interpolation
3b1b Jun 28, 2020
0b58572
Removes magic number
3b1b Jun 28, 2020
f11cb5a
Small cleanups to arrow
3b1b Jun 29, 2020
978137b
Use super()
3b1b Jun 29, 2020
2b3bd2b
Use an index buffer for shaders to save memory
3b1b Jun 29, 2020
cd371dc
Add Mobject.has_updaters which is distinct from Mobject.suspend_updating
3b1b Jun 29, 2020
feb6a33
Account for fixed_in_frame in set_value
3b1b Jun 30, 2020
165bf2f
Small bug fix
3b1b Jun 30, 2020
2671817
Refactor away from treating shader_info as a dictionary, and make it …
3b1b Jun 30, 2020
61424db
Factor out get_render_group_list
3b1b Jun 30, 2020
5e7913f
Implemented pointwise_become_partial for parametric surfaces
3b1b Jun 30, 2020
46b52a1
Small fix to VMobject.pointwise_become_partial for cases when points …
3b1b Jun 30, 2020
9a44794
Removes default color for polygon
3b1b Jun 30, 2020
81715ad
End of chess
3b1b Jul 23, 2020
f31cf2e
Changes to Fourier series for name animations
3b1b Jul 23, 2020
dbe33f9
Change axis defaults
3b1b Jul 23, 2020
cf0afb0
New name in name_map (which really should exist not in source code)
3b1b Jul 23, 2020
93f7671
Fixes to Arrow
3b1b Jul 23, 2020
5ee4b94
Not great, but adding an alternate implementation of make_smooth in a…
3b1b Jul 23, 2020
ae8e804
New implementation of smooth
3b1b Jul 23, 2020
72472c5
Refactor in terms of a ShaderWrapper object
3b1b Jul 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/source/animation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Fade

.. code-block:: python

class AnimationFadeInFrom(Scene):
class AnimationFadeIn(Scene):
def construct(self):
square = Square()
for label, edge in zip(
Expand All @@ -71,7 +71,7 @@ Fade
anno.shift(2 * DOWN)
self.add(anno)

self.play(FadeInFrom(square, edge))
self.play(FadeIn(square, edge))
self.remove(anno, square)


Expand All @@ -84,7 +84,7 @@ Fade

.. code-block:: python

class AnimationFadeOutAndShift(Scene):
class AnimationFadeOut(Scene):
def construct(self):
square = Square()
for label, edge in zip(
Expand All @@ -94,7 +94,7 @@ Fade
anno.shift(2 * DOWN)
self.add(anno)

self.play(FadeOutAndShift(square, edge))
self.play(FadeOut(square, edge))
self.remove(anno, square)


Expand Down Expand Up @@ -203,7 +203,7 @@ You can combine cardinal directions to form diagonal animations
def construct(self):
square = Square()
for diag in [UP + LEFT, UP + RIGHT, DOWN + LEFT, DOWN + RIGHT]:
self.play(FadeInFrom(square, diag))
self.play(FadeIn(square, diag))

.. note::
You can also use the abbreviated forms like ``UL, UR, DL, DR``.
Expand Down
2 changes: 1 addition & 1 deletion example_scenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def construct(self):
VGroup(title, basel).arrange(DOWN)
self.play(
Write(title),
FadeInFrom(basel, UP),
FadeIn(basel, UP),
)
self.wait()

Expand Down
6 changes: 6 additions & 0 deletions from_3b1b/active/antipode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from manimlib.imports import *


class NewSceneName(ThreeDScene):
def construct(self):
pass
Loading