Commit graph

278 commits

Author SHA1 Message Date
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
Grant Sanderson
0d9bb71d3c Increase scroll sensitivity 2023-01-28 22:42:33 -08:00
Grant Sanderson
0fe5922253 Clean up scrolling 2023-01-28 22:40:57 -08:00
Grant Sanderson
09900456f7 Clean up pixel_coords_to_space_coords to work better in 3d 2023-01-28 22:30:46 -08:00
Grant Sanderson
c08e111911 Default to applying depth test for non-fixed objects added to a 3d scene 2023-01-28 15:02:00 -08:00
Grant Sanderson
5deef1c249 Allow for setting a default frame orientation 2023-01-28 12:02:19 -08:00
Grant Sanderson
8a18967ea4 Initial implementation of render groups in Scene 2023-01-28 10:11:10 -08:00
Grant Sanderson
e9333a908c Move camera.clear call into 'capture' 2023-01-26 20:38:38 -08:00
Grant Sanderson
9ee9e1946a Use non-window fbo in scene.get_image 2023-01-26 20:02:50 -08:00
Grant Sanderson
14cda7e908 Don't show progress bar in embed by default 2023-01-26 15:28:10 -08:00
Grant Sanderson
a1595a9e2f Use separate fbo for writing to file when window is active 2023-01-25 22:34:11 -08:00
Grant Sanderson
d2af6a5f4b Keep track of when Mobject data has changed, and used that to determine when ShaderWrapper generates new buffers 2023-01-25 16:43:47 -08:00
Grant Sanderson
424707d035 Move rendering more fully away from Camera to Mobject and ShaderWrapper 2023-01-25 14:13:56 -08:00
Grant Sanderson
b99b88fd25 Update Scene.get_image to resize window if needed 2023-01-24 12:05:08 -08:00
Grant Sanderson
8a6deb4068 Enable recording during a Scene embed 2023-01-23 17:10:18 -08:00
Grant Sanderson
c13495deeb Blit based on window's viewport, when in preview mode 2023-01-23 17:03:46 -08:00
Grant Sanderson
e8b75941e0 Get rid of pixel_width and pixel_height attrs on Camera 2023-01-23 14:02:06 -08:00
Grant Sanderson
66d12a1687 Specify number of samples at the scene level, and be sure it works for Window as well 2023-01-20 16:30:39 -08:00
LucaCappelletti94
1708fbd672 Updated tqdm to support also notebooks 2023-01-12 12:03:14 +01:00
Grant Sanderson
7dde368eeb Ensure error-flash rect is fixed in frame 2022-12-29 20:18:19 -08:00
Grant Sanderson
ba68505c18 Flash around border on exceptions in Scene.embed 2022-12-29 15:08:57 -08:00
Grant Sanderson
71815fd7de Add (optional) error sound for exceptions in Scene.embed 2022-12-29 14:58:40 -08:00
Grant Sanderson
cba101995f Allow for customizable exception display mode with Scene.embed 2022-12-29 14:38:25 -08:00
Grant Sanderson
22c67df2ad Simplify Scene.remove to not require a Mobject.get_ancestors call 2022-12-26 07:46:40 -07:00
Grant Sanderson
5c7caee902 Go back to writing a new file for insert_embed, but edit the module's __file__ attribute 2022-12-19 21:14:29 -08:00
Grant Sanderson
d79e1d6ed8 Move shell instantiation to beginning of checkpoint_paste 2022-12-19 11:36:28 -08:00
Grant Sanderson
6615a912bd Add default_camera_config class variable to Scene, likewise for window and file_writer configuration 2022-12-19 11:35:43 -08:00
Grant Sanderson
99fa3ee620 Refactor Scene.embed and checkpoint_paste 2022-12-19 10:51:26 -08:00