Commit graph

255 commits

Author SHA1 Message Date
Grant Sanderson
1248abd922
Merge pull request #2233 from mitkonikov/modifier-keys-fix
Properly check modifier keys.
2024-11-25 10:09:10 -06:00
Splines
af923a2327
Add docstring to user-facing focus() method 2024-11-10 19:10:53 +01:00
Splines
97b6e39abb
Init new focus() command 2024-11-10 18:48:33 +01:00
MathItYT
693a859caf revert changes in mobject.py and camera.py 2024-10-27 14:10:12 -03:00
MathItYT
1738876f43 fix bad 3D overlapping using z_index 2024-10-27 14:06:35 -03:00
Mitko Nikov
dc731f8bf2 Properly check modifier keys. 2024-10-25 00:01:30 +02:00
Pedro Fonini
2dd0256af6
Instantiate the IPython shell without a local ns 2024-10-12 22:02:43 -03:00
Grant Sanderson
81b17dd63e
Merge pull request #2168 from zhujisheng/patch-1
Update scene.py to make scene.time more accurate
2024-10-10 12:24:05 -07:00
Grant Sanderson
154a473a12 Get rid of globals update locals hack
It seems this issues is no longer there in the case of list constructors(?). Although it still exists for functions defined within a cell, that can be circumvented with more explicit function arguments.
2024-10-10 14:05:43 -05:00
zhujisheng
ccb9977a67
Update scene.py to make scene.time more accurate
When the time intervals are (0, dt, 2dt, ...), during the first frame processing, only the video is inserted, but the update parameter is 0, which causes scene.time to be inaccurate. The correct time intervals should be (dt, 2dt, ...)
2024-09-23 23:48:18 +08:00
Grant Sanderson
1f55832a6a Clean up around z_index 2024-09-06 12:20:26 -05:00
Grant Sanderson
aebf2220a6
Merge pull request #2057 from germanzhu/add-zorder-mobject
add zorder to mobject
2024-09-06 10:11:40 -07:00
Grant Sanderson
08f7cb8d3e
zorder -> z_index 2024-09-06 10:11:31 -07:00
Grant Sanderson
55a798676a Always stop skipping after checkpoint_paste 2024-08-26 11:41:50 -05:00
Grant Sanderson
51de1fb650 For some reason RenderGroups must be groups for camera reorientation to function 2024-08-23 14:56:35 -05:00
Grant Sanderson
a823901b98 Only form render groups from Mobjects of the same type
I.e. bias against forming such groups
2024-08-23 14:45:27 -05:00
Grant Sanderson
fcc5dc00f9 Treat objects fixed in frame as having flat stroke 2024-08-23 14:17:26 -05:00
Grant Sanderson
11df256369 Fix error rect 2024-08-21 16:49:08 -05:00
Grant Sanderson
7474ae17b0 Change default to flat stroke, except in 3d situations 2024-08-20 11:52:05 -05:00
Grant Sanderson
f12b143d16 Unify get_shader_wrapper_list, and and better subdivide render groups by ShaderWrapper ids 2024-08-20 08:53:51 -05:00
Grant Sanderson
08e33faab8 Ensure scene properly updates on an embed 2024-08-19 21:49:39 -05:00
Grant Sanderson
21c0bcb8b6 Don't wait for animations while skipping 2024-08-16 12:20:49 -05:00
Grant Sanderson
902a4f264e Add white space after assert statements 2024-08-16 12:15:55 -05:00
Grant Sanderson
65d5947966 Change ignore_skipping name to force_draw 2024-08-15 14:05:32 -05:00
Grant Sanderson
a5ba721f96 Cease useless rendering
Change so that with a live window, rendering only happens if there has been an event (mouse motion, key press, etc.) to respond to.
2024-08-15 14:03:16 -05:00
Grant Sanderson
bbc89d13e9 Don't save state after each embed cell call 2024-07-31 15:32:08 +02:00
Grant Sanderson
c1efd14904 Add touch and notouch to embed vocabulary 2024-07-31 15:24:50 +02:00
Grant Sanderson
a07ccf4aca Include *args, **kwargs in embed shell event pre_cell and post_cell functions 2024-06-24 15:22:22 -07:00
Grant Sanderson
83cd5d6246 Clean up updater matters, prune unused functions 2024-03-07 16:07:39 -03:00
Grant Sanderson
9432a73a9f Let checkpoint_paste work on methods of the current scene 2024-03-02 16:49:54 -05:00
Grant Sanderson
ffbe5c8114 Add type hints for affects_mobject_list 2024-03-02 16:49:35 -05:00
Grant Sanderson
4a89376fdd Add method for resetting which plane in 3d space behaves like the floor when panning 2024-02-21 12:42:59 -08:00
Grant Sanderson
d44e248277 Specify type of argument in Mobject.add 2024-02-09 17:48:25 -06:00
german2020
0b5e9d4a8b add zorder to mobject 2023-08-27 15:35:22 +08:00
Grant Sanderson
cb02066f22 Add always_depth_test option to ThreeDScene, default to true 2023-06-10 09:23:19 -07:00
Grant Sanderson
c918e84784 Change default progress bar format 2023-02-03 18:10:29 -08:00
Grant Sanderson
b8fe7b0172 Note that restoring state affects the mobject list 2023-02-03 17:28:00 -08:00
Grant Sanderson
7f940fbee4 Change how ShaderWrapper uniforms are handled 2023-02-02 17:45:52 -08:00
Grant Sanderson
e5eed7c36a Batch render groups by Mobject type 2023-02-02 13:28:06 -08:00
Grant Sanderson
eeadbe4542 Small reshuffling 2023-02-01 22:52:02 -08:00
Grant Sanderson
8adf2a6e07 Partition render groups based on shader type, fixed_in_frame status, depth_test and whether the mobject is changing 2023-02-01 20:39:16 -08:00
Grant Sanderson
6eafdc63cc Merge branch 'video-work' into render-groups 2023-02-01 20:17:01 -08:00
Grant Sanderson
57deab6617 Fix ControlsExample 2023-01-31 09:08:38 -08:00
Grant Sanderson
33116f8af1 Remove stray import 2023-01-30 20:37:27 -08:00
Grant Sanderson
9628adc957 Ensure scroll zooming works better in 3d 2023-01-30 15:03:05 -08:00
Grant Sanderson
71bd3edb09 Fix frame scaling 2023-01-30 15:02:04 -08:00
Grant Sanderson
277c471c90 Refactor so that view matrix incorporates frame scaling 2023-01-30 14:15:39 -08:00
Grant Sanderson
abdcb64461 Fix panning for off-center frame 2023-01-28 23:05:52 -08:00
Grant Sanderson
e58aea9e2f Change to a default where scrolling zooms, and dragging pans 2023-01-28 22:59:54 -08:00
Grant Sanderson
901d40ba11 Fix scroll zooming 2023-01-28 22:53:56 -08:00