1738876f43
fix bad 3D overlapping using z_index
2024-10-27 14:06:35 -03:00
2dd0256af6
Instantiate the IPython shell without a local ns
2024-10-12 22:02:43 -03:00
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
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
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
1f55832a6a
Clean up around z_index
2024-09-06 12:20:26 -05:00
aebf2220a6
Merge pull request #2057 from germanzhu/add-zorder-mobject
...
add zorder to mobject
2024-09-06 10:11:40 -07:00
08f7cb8d3e
zorder -> z_index
2024-09-06 10:11:31 -07:00
55a798676a
Always stop skipping after checkpoint_paste
2024-08-26 11:41:50 -05:00
51de1fb650
For some reason RenderGroups must be groups for camera reorientation to function
2024-08-23 14:56:35 -05:00
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
fcc5dc00f9
Treat objects fixed in frame as having flat stroke
2024-08-23 14:17:26 -05:00
11df256369
Fix error rect
2024-08-21 16:49:08 -05:00
7474ae17b0
Change default to flat stroke, except in 3d situations
2024-08-20 11:52:05 -05:00
f12b143d16
Unify get_shader_wrapper_list, and and better subdivide render groups by ShaderWrapper ids
2024-08-20 08:53:51 -05:00
08e33faab8
Ensure scene properly updates on an embed
2024-08-19 21:49:39 -05:00
21c0bcb8b6
Don't wait for animations while skipping
2024-08-16 12:20:49 -05:00
902a4f264e
Add white space after assert statements
2024-08-16 12:15:55 -05:00
65d5947966
Change ignore_skipping name to force_draw
2024-08-15 14:05:32 -05:00
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
bbc89d13e9
Don't save state after each embed cell call
2024-07-31 15:32:08 +02:00
c1efd14904
Add touch and notouch to embed vocabulary
2024-07-31 15:24:50 +02:00
a07ccf4aca
Include *args, **kwargs in embed shell event pre_cell and post_cell functions
2024-06-24 15:22:22 -07:00
83cd5d6246
Clean up updater matters, prune unused functions
2024-03-07 16:07:39 -03:00
9432a73a9f
Let checkpoint_paste work on methods of the current scene
2024-03-02 16:49:54 -05:00
ffbe5c8114
Add type hints for affects_mobject_list
2024-03-02 16:49:35 -05:00
4a89376fdd
Add method for resetting which plane in 3d space behaves like the floor when panning
2024-02-21 12:42:59 -08:00
d44e248277
Specify type of argument in Mobject.add
2024-02-09 17:48:25 -06:00
0b5e9d4a8b
add zorder to mobject
2023-08-27 15:35:22 +08:00
cb02066f22
Add always_depth_test option to ThreeDScene, default to true
2023-06-10 09:23:19 -07:00
c918e84784
Change default progress bar format
2023-02-03 18:10:29 -08:00
b8fe7b0172
Note that restoring state affects the mobject list
2023-02-03 17:28:00 -08:00
7f940fbee4
Change how ShaderWrapper uniforms are handled
2023-02-02 17:45:52 -08:00
e5eed7c36a
Batch render groups by Mobject type
2023-02-02 13:28:06 -08:00
eeadbe4542
Small reshuffling
2023-02-01 22:52:02 -08:00
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
6eafdc63cc
Merge branch 'video-work' into render-groups
2023-02-01 20:17:01 -08:00
57deab6617
Fix ControlsExample
2023-01-31 09:08:38 -08:00
33116f8af1
Remove stray import
2023-01-30 20:37:27 -08:00
9628adc957
Ensure scroll zooming works better in 3d
2023-01-30 15:03:05 -08:00
71bd3edb09
Fix frame scaling
2023-01-30 15:02:04 -08:00
277c471c90
Refactor so that view matrix incorporates frame scaling
2023-01-30 14:15:39 -08:00
abdcb64461
Fix panning for off-center frame
2023-01-28 23:05:52 -08:00
e58aea9e2f
Change to a default where scrolling zooms, and dragging pans
2023-01-28 22:59:54 -08:00
901d40ba11
Fix scroll zooming
2023-01-28 22:53:56 -08:00
0d9bb71d3c
Increase scroll sensitivity
2023-01-28 22:42:33 -08:00
0fe5922253
Clean up scrolling
2023-01-28 22:40:57 -08:00
09900456f7
Clean up pixel_coords_to_space_coords to work better in 3d
2023-01-28 22:30:46 -08:00
c08e111911
Default to applying depth test for non-fixed objects added to a 3d scene
2023-01-28 15:02:00 -08:00
5deef1c249
Allow for setting a default frame orientation
2023-01-28 12:02:19 -08:00