Commit Graph

  • 1c432dd6dc Small refactor to stroke geom shader Grant Sanderson 2023-01-27 10:48:06 -08:00
  • 3a0916fe3a Reorganize fbo initialization Grant Sanderson 2023-01-27 10:12:53 -08:00
  • 40ae481979 Marginally better vbo/ibo tracking Grant Sanderson 2023-01-27 10:01:37 -08:00
  • 97e4c25453 Add comment Grant Sanderson 2023-01-27 08:29:41 -08:00
  • 1707958e0f Clean up fill shader a bit Grant Sanderson 2023-01-27 08:26:54 -08:00
  • 746b52cda5 Okay, actually fix Arrow Grant Sanderson 2023-01-26 23:51:05 -08:00
  • 86fb1d82f5 Typo fix Grant Sanderson 2023-01-26 23:44:33 -08:00
  • de7545e5fa Tiny tweak to array_is_constant Grant Sanderson 2023-01-26 23:43:34 -08:00
  • b21e470e69 In append_vectorized_mobject, append data as well as points Grant Sanderson 2023-01-26 23:43:21 -08:00
  • 79039bde61 Fix Arrow Grant Sanderson 2023-01-26 23:42:03 -08:00
  • 2863672740 Small clean up Grant Sanderson 2023-01-26 23:05:09 -08:00
  • 422c9cebd2 Only trigger triangulation for non-winding fill Grant Sanderson 2023-01-26 23:05:01 -08:00
  • 6388647860 Change to using glBlendFuncSeparate Grant Sanderson 2023-01-26 22:51:14 -08:00
  • eab8edd51d Remove needless list(...) Grant Sanderson 2023-01-26 22:41:36 -08:00
  • 8f6c14ad5f Increase threshold for discarding fill fragments Grant Sanderson 2023-01-26 22:41:23 -08:00
  • 7a59cc2f03 Use gl.MAX to blend alphas in fill Grant Sanderson 2023-01-26 22:40:29 -08:00
  • 0f89349bb8 Small clean up Grant Sanderson 2023-01-26 21:00:20 -08:00
  • ab57b0acf0 Ensure positive orientation on all SVG, not just PathStrings Grant Sanderson 2023-01-26 21:00:07 -08:00
  • 1bd6a77151 Don't use @stash_mobject_pointers on copy, be more explicit Grant Sanderson 2023-01-26 20:59:36 -08:00
  • bf2a609246 Have animation group collect parts as a VGroup if it can Grant Sanderson 2023-01-26 20:39:05 -08:00
  • e9333a908c Move camera.clear call into 'capture' Grant Sanderson 2023-01-26 20:38:38 -08:00
  • 5803a00598 Use smaller fill_texture, adjusting winding-fill blending hack as is necessary Grant Sanderson 2023-01-26 20:14:22 -08:00
  • 9ee9e1946a Use non-window fbo in scene.get_image Grant Sanderson 2023-01-26 20:02:50 -08:00
  • 3a175c1a4c Note that sorting surface indices affects data Grant Sanderson 2023-01-26 20:02:28 -08:00
  • 258bc2256a Provide a check that shader uniforms really need updating before setting value Grant Sanderson 2023-01-26 20:01:59 -08:00
  • adfef48418 Merge pull request #1973 from 3b1b/video-work Grant Sanderson 2023-01-26 16:54:44 -08:00
  • acdc2654d3 Account for 'target_mobject is None' case Grant Sanderson 2023-01-26 16:52:25 -08:00
  • 9696827213 Allow for adding null subpath Grant Sanderson 2023-01-26 16:50:22 -08:00
  • 6d4782506a Account for null fill cases in invinisble_copy Grant Sanderson 2023-01-26 16:49:36 -08:00
  • 28c875c2c3 Finish Transforms with a call to Mobject.become Grant Sanderson 2023-01-26 16:49:13 -08:00
  • 164c9ba754 Use copy in set_data Grant Sanderson 2023-01-26 16:46:05 -08:00
  • 8ef71bb930 Don't use 'become' for interpolate at alpha = 0 or 1 Grant Sanderson 2023-01-26 16:43:40 -08:00
  • a8da171adb Make sure a group inherits the fixed_in_frame status of its parts Grant Sanderson 2023-01-26 15:58:56 -08:00
  • 65afed1bd1 Move shading from fill geom to fill frag shader Grant Sanderson 2023-01-26 15:50:27 -08:00
  • 14cda7e908 Don't show progress bar in embed by default Grant Sanderson 2023-01-26 15:28:10 -08:00
  • 37f0bf8c11 Fix winding fill blending Grant Sanderson 2023-01-26 15:27:48 -08:00
  • 3f5df432ce Consider winding_fill alphas pre-multiplied Grant Sanderson 2023-01-26 12:17:21 -08:00
  • a33b24310e Fix non-winding-fill orientation Grant Sanderson 2023-01-26 12:15:30 -08:00
  • c6c23a1fe7 Unnecessary refresh_bounding_box Grant Sanderson 2023-01-26 12:06:13 -08:00
  • f5cb2bfa52 Check for mismatched keys in uniform interpolation Grant Sanderson 2023-01-26 12:06:05 -08:00
  • 05dd399270 Ensure svgs have positive orientation by default Grant Sanderson 2023-01-26 12:04:58 -08:00
  • 72590a8fef Note that using winding fill changes data Grant Sanderson 2023-01-26 12:04:34 -08:00
  • a1595a9e2f Use separate fbo for writing to file when window is active Grant Sanderson 2023-01-25 22:34:11 -08:00
  • a68bc1271b Have FillShaders all share the same texture used for intermediary rendering Grant Sanderson 2023-01-25 19:43:16 -08:00
  • cb36fda6d7 In interpolate, only update data status if some keys are unlocked Grant Sanderson 2023-01-25 19:24:19 -08:00
  • 88590e5a05 Remove serializing deepcopy Grant Sanderson 2023-01-25 19:23:55 -08:00
  • a601384211 Remove stray imports Grant Sanderson 2023-01-25 19:23:22 -08:00
  • f96a697ee3 Use become for interpolating at 0 or 1 Grant Sanderson 2023-01-25 19:21:24 -08:00
  • 3c8e3792e7 Remove references to refresh_static_mobjects Grant Sanderson 2023-01-25 19:20:11 -08:00
  • 2beb55727f Change naming logic for recorded inserts Grant Sanderson 2023-01-25 17:30:12 -08:00
  • 7609b1db78 Set up by-hand anti-aliasing for FillShaderWrapper Grant Sanderson 2023-01-25 17:19:44 -08:00
  • 018b07212f Change how joint_products are updated in pointwise_become_partial Grant Sanderson 2023-01-25 16:50:52 -08:00
  • d2af6a5f4b Keep track of when Mobject data has changed, and used that to determine when ShaderWrapper generates new buffers Grant Sanderson 2023-01-25 16:43:47 -08:00
  • 4dfabc1c28 Make sure FillShaderWrapper works without a window Grant Sanderson 2023-01-25 14:20:36 -08:00
  • 424707d035 Move rendering more fully away from Camera to Mobject and ShaderWrapper Grant Sanderson 2023-01-25 14:13:56 -08:00
  • 2c737ed540 Move most of rendering logic to ShaderWrapper Grant Sanderson 2023-01-25 13:45:18 -08:00
  • c94d8fd3b0 Move Texture handling and vao creation outside of Camera Grant Sanderson 2023-01-25 12:10:39 -08:00
  • 3299741359 Move program code to ShaderWrapper, away from Camera Grant Sanderson 2023-01-25 11:23:31 -08:00
  • 10047773f7 Have ShaderWrapper track OpenGL context Grant Sanderson 2023-01-25 10:49:30 -08:00
  • 16d773f1b3 Remove refresh_shader_data Grant Sanderson 2023-01-25 10:48:59 -08:00
  • 80729c0cb8 Only initialize ShaderWrappers as needed Grant Sanderson 2023-01-25 10:37:12 -08:00
  • 8c1e5f3b42 Change use_clip_plane to be a function Grant Sanderson 2023-01-25 10:31:05 -08:00
  • 3339aad29e Separate CameraFrame into its own file Grant Sanderson 2023-01-25 10:19:44 -08:00
  • a9a3ca08cd Merge pull request #1972 from 3b1b/winding-fill Grant Sanderson 2023-01-25 10:01:31 -08:00
  • bc5c78de83 Add winding fill to VMobject args Grant Sanderson 2023-01-25 09:56:07 -08:00
  • 0ea91f22b2 Merge pull request #1971 from 3b1b/video-work Grant Sanderson 2023-01-25 09:54:55 -08:00
  • 7deaf4cb11 Small clean up Grant Sanderson 2023-01-25 09:51:27 -08:00
  • 93dd9f687b Ensure align_family works well with VMobject fill Grant Sanderson 2023-01-25 09:50:16 -08:00
  • 4cb9c9c2fc Remove unnecessary normalize Grant Sanderson 2023-01-25 08:18:10 -08:00
  • 6cf8c8d2e8 Do refresh in pointwise_become_partial Grant Sanderson 2023-01-24 21:47:12 -08:00
  • 272925fa19 Change winding fill blend_func Grant Sanderson 2023-01-24 21:46:52 -08:00
  • 0e2d21bed3 Don't necessarily use VGroup with FadeTransform Grant Sanderson 2023-01-24 21:46:34 -08:00
  • 346d252451 Don't save triangulation, but do orient svg paths positively Grant Sanderson 2023-01-24 21:33:00 -08:00
  • 088a2f65a3 Misc. clean up Grant Sanderson 2023-01-24 21:10:57 -08:00
  • 307487e087 Don't pre-normalize joint_products Grant Sanderson 2023-01-24 21:10:26 -08:00
  • 98eccab977 Ensure background rectangle matches orientation Grant Sanderson 2023-01-24 20:03:33 -08:00
  • f0df5c759d Make winding fill optional, and make winding additive rather than toggling Grant Sanderson 2023-01-24 20:03:23 -08:00
  • e9c70dbfd9 Ensure vert_indices are always of type int Grant Sanderson 2023-01-24 16:58:47 -08:00
  • 72da9786a3 Use null array for vert indices in place of None Grant Sanderson 2023-01-24 15:53:43 -08:00
  • 516fe9155e Small tweaks Grant Sanderson 2023-01-24 15:29:35 -08:00
  • b93e284695 In aligning families, scale inserted submobjects to 0 Grant Sanderson 2023-01-24 15:29:09 -08:00
  • 88ed1a2fdb Have init_fill_fbo take in ctx as an argument Grant Sanderson 2023-01-24 15:28:09 -08:00
  • 945aa9713f Fix aligned subpaths bug Grant Sanderson 2023-01-24 15:02:06 -08:00
  • aa6c321a0a Change InteractiveScene dot config Grant Sanderson 2023-01-24 14:25:02 -08:00
  • 87afdac6a4 Small clean up Grant Sanderson 2023-01-24 14:09:41 -08:00
  • 6e56c31d67 Use gl_InstanceID instead of hacking triangle_strip Grant Sanderson 2023-01-24 13:49:43 -08:00
  • 4774d2bc3b First pass at a winding-based fill approach Grant Sanderson 2023-01-24 13:29:34 -08:00
  • d01658bc5b Fix multi-color setting Grant Sanderson 2023-01-24 13:04:13 -08:00
  • 97789fff35 Swap buffers when resetting to default position Grant Sanderson 2023-01-24 12:05:39 -08:00
  • b1f0270316 Change threshold for bevel reduction Grant Sanderson 2023-01-24 12:05:25 -08:00
  • b99b88fd25 Update Scene.get_image to resize window if needed Grant Sanderson 2023-01-24 12:05:08 -08:00
  • 1dda706335 Small cleanup Grant Sanderson 2023-01-24 12:04:43 -08:00
  • 8a6deb4068 Enable recording during a Scene embed Grant Sanderson 2023-01-23 17:10:18 -08:00
  • e2421a650c Don't disable clip plane Grant Sanderson 2023-01-23 17:06:49 -08:00
  • b0cca9e4b6 Camera pixel_shape should reflect the drawn fbo Grant Sanderson 2023-01-23 17:04:44 -08:00
  • c13495deeb Blit based on window's viewport, when in preview mode Grant Sanderson 2023-01-23 17:03:46 -08:00
  • 03080a10a7 Small style tweaks Grant Sanderson 2023-01-23 15:05:10 -08:00
  • 8d729eef5a Rename perspective to view_matrix Grant Sanderson 2023-01-23 14:41:17 -08:00
  • e8b75941e0 Get rid of pixel_width and pixel_height attrs on Camera Grant Sanderson 2023-01-23 14:02:06 -08:00
  • 1d4fcf020b Refer directly to fbo viewports in get_raw_fbo_data Grant Sanderson 2023-01-23 11:54:01 -08:00