Commit graph

244 commits

Author SHA1 Message Date
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
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