Commit Graph

  • f86245517d Merge pull request #2147 from osMrPigHead/fix-animation-time_span Grant Sanderson 2024-08-26 08:20:11 -07:00
  • 36ea70d990 Remove whitespace Grant Sanderson 2024-08-26 09:14:53 -05:00
  • cd5c436ce4 Tighter (albeit arbitrary) constraint on path end detection Grant Sanderson 2024-08-26 09:14:42 -05:00
  • 827f4db5e2 Clarify where normal is being inverted Grant Sanderson 2024-08-26 09:13:39 -05:00
  • 441ac77eae Change Euler axis limits for xz flat plane Grant Sanderson 2024-08-26 08:22:29 -05:00
  • 51de1fb650 For some reason RenderGroups must be groups for camera reorientation to function Grant Sanderson 2024-08-23 14:56:35 -05:00
  • 8785eb1844 Don't have quiet default changes to stroke_behind Grant Sanderson 2024-08-23 14:46:34 -05:00
  • a823901b98 Only form render groups from Mobjects of the same type Grant Sanderson 2024-08-23 14:45:27 -05:00
  • 513de19657 Clarify that ShaderWrapper id is an int Grant Sanderson 2024-08-23 14:44:00 -05:00
  • fcc5dc00f9 Treat objects fixed in frame as having flat stroke Grant Sanderson 2024-08-23 14:17:26 -05:00
  • 566fc87a60 Don't keep an outer_vert_indices attribute Grant Sanderson 2024-08-23 14:11:05 -05:00
  • 499803159c Remove methods and tracking associated with triangulation and non-winding fill Grant Sanderson 2024-08-23 14:08:56 -05:00
  • 487c714d9b Remove stray new line Grant Sanderson 2024-08-23 13:56:16 -05:00
  • e939e1de09 Tweak the correction for angle_diffs in get_joint_angles Grant Sanderson 2024-08-23 13:56:08 -05:00
  • c26ebfc10f Have is_closed use the last path Grant Sanderson 2024-08-23 13:55:42 -05:00
  • 5d6a1f30c4 Count joints near 180 degrees as straight Grant Sanderson 2024-08-23 13:55:10 -05:00
  • a08523d746 Fix get_subpath_end_indices_from_points Grant Sanderson 2024-08-23 13:29:31 -05:00
  • bcafcbf490 Don't have VMobject refresh joint angles on shift, scale and rotate Grant Sanderson 2024-08-23 12:32:17 -05:00
  • e4007f6915 Add glow dot to show light in SurfaceExample Grant Sanderson 2024-08-22 15:31:22 -05:00
  • ada66ee8fb Remove stray comment Grant Sanderson 2024-08-22 15:31:10 -05:00
  • bd2947be28 Use preferred group type for FadeTransform Grant Sanderson 2024-08-22 15:31:03 -05:00
  • 9a7bfdd1c9 For Surface, calculate normals with neighboring points Grant Sanderson 2024-08-22 15:21:40 -05:00
  • c8d5e91422 Rename shader_dtype -> data_dtype Grant Sanderson 2024-08-22 14:52:35 -05:00
  • 09bed1f8f4 Allow more file_writer configuration in default_config.yml Grant Sanderson 2024-08-22 14:24:26 -05:00
  • eda7f81fb9 Update VMobject.is_smooth Grant Sanderson 2024-08-21 17:22:34 -05:00
  • d5575cf1ef Change how joint_angles are computed Grant Sanderson 2024-08-21 17:19:42 -05:00
  • 11df256369 Fix error rect Grant Sanderson 2024-08-21 16:49:08 -05:00
  • cfe70ca869 Don't let Write override stroke_behind default Grant Sanderson 2024-08-21 16:47:51 -05:00
  • bda894959b Keeps stroke width as a function of pixels, independent of zoom level Grant Sanderson 2024-08-21 16:12:56 -05:00
  • d870bb29de Fix the non-flat stroke edge case for tangents near line of sight Grant Sanderson 2024-08-21 16:12:13 -05:00
  • 442206faad Go back to non-flat-stroke as the default Grant Sanderson 2024-08-21 16:05:02 -05:00
  • ceac4fbe1a Fix up FillArrow Grant Sanderson 2024-08-21 15:58:57 -05:00
  • 22ee13a884 Have FillArrow take the place of StrokeArrow as the main Arrow Grant Sanderson 2024-08-21 14:52:54 -05:00
  • eea8416d57 Default to allowing null lines, except for SVGPaths Grant Sanderson 2024-08-21 14:44:33 -05:00
  • b3386ad7a7 Add an option for VMobject.add_line to add a null line Grant Sanderson 2024-08-21 14:29:40 -05:00
  • c83d03aeb7 Simplify get_subpath_end_indices_from_points Grant Sanderson 2024-08-21 14:29:16 -05:00
  • 0a89725090 Tweaking what triggers refreshes Grant Sanderson 2024-08-21 13:57:54 -05:00
  • 0cb7a8f691 Only recompute subpath_end_indices as needed Grant Sanderson 2024-08-21 13:44:24 -05:00
  • 43f1704f69 Fix computation of joint_angles to handle zero division case Grant Sanderson 2024-08-21 13:44:00 -05:00
  • 941513d68c Only recompute VMobject.get_unit_normal as needed Grant Sanderson 2024-08-21 12:26:42 -05:00
  • 9a5386b022 Instead of passing in joint_products to stroke shader, just track joint_angles and pass in global unit normal Grant Sanderson 2024-08-21 11:59:48 -05:00
  • 67bedc6d1f Fix fill_depth_vert_format Grant Sanderson 2024-08-21 09:14:23 -05:00
  • 79ec791fc2 Move get_fill_canvas into VShaderWrapper Grant Sanderson 2024-08-21 09:02:22 -05:00
  • 748780378b Have stroke_behind default to True for VMobjects with fill and no stroke Grant Sanderson 2024-08-21 08:43:57 -05:00
  • dfc5f152dd Have border width pre-multiply by alpha, and don't use a separate texture for that border width Grant Sanderson 2024-08-20 22:03:45 -05:00
  • d0cb5b4eea Fix normal orientation on Surface Grant Sanderson 2024-08-20 14:47:47 -05:00
  • 35ce4c6704 Use Mobject.set_uniform in Mobject.set_shading Grant Sanderson 2024-08-20 14:44:48 -05:00
  • 7ddbd13e38 Ensure mobject uniforms get passed to ShaderWrapper on init Grant Sanderson 2024-08-20 14:44:09 -05:00
  • 304856e6e0 Remove indices_list argument on ShaderWrapper.read_in Grant Sanderson 2024-08-20 14:21:37 -05:00
  • 82582d08bd Fewer parameters for stroke frag shader Grant Sanderson 2024-08-20 13:32:52 -05:00
  • a8784692e8 Reference new shader file structure Grant Sanderson 2024-08-20 12:58:53 -05:00
  • 0a313eb119 Reorganize quadratic bezier shader files Grant Sanderson 2024-08-20 12:58:34 -05:00
  • 5eb5a11499 Don't have absolute stroke width change with frame size (at least temporarily) Grant Sanderson 2024-08-20 12:36:28 -05:00
  • 0a585b123c Use stash_mobject_pointers on Mobject.deepcopy Grant Sanderson 2024-08-20 12:15:37 -05:00
  • 910f28f52e Don't have a default flat stroke in set_style Grant Sanderson 2024-08-20 12:13:18 -05:00
  • 7474ae17b0 Change default to flat stroke, except in 3d situations Grant Sanderson 2024-08-20 11:52:05 -05:00
  • b8931e7b9c When shader_id is updated, have ancestors mark data as changed Grant Sanderson 2024-08-20 11:36:37 -05:00
  • 0414f8786c Use Mobject.set_uniform to reassign flat_stroke Grant Sanderson 2024-08-20 11:35:42 -05:00
  • e0191d81d9 Instead of tracking _shaders_initialized, just check if self.shader_wrapper is None Grant Sanderson 2024-08-20 10:48:43 -05:00
  • 0ac9ee1fbf Don't deepcopy ShaderWrapper Grant Sanderson 2024-08-20 10:15:53 -05:00
  • b9645ad196 Only update shader wrapper when stroke_behind genuinely changes Grant Sanderson 2024-08-20 10:00:52 -05:00
  • 87ca6e56aa Don't treat font size as a uniform Grant Sanderson 2024-08-20 10:00:07 -05:00
  • e61957a4e0 Fix wrong check for path_func in last commit Grant Sanderson 2024-08-20 09:25:30 -05:00
  • a8ef9629eb More direct lerp in Mobject.interpolate Grant Sanderson 2024-08-20 09:10:33 -05:00
  • e796a0c6d6 Remove stray TODO Grant Sanderson 2024-08-20 09:10:14 -05:00
  • 5ff80ffc6c Fix matplotlib color map import Grant Sanderson 2024-08-20 08:54:06 -05:00
  • f12b143d16 Unify get_shader_wrapper_list, and and better subdivide render groups by ShaderWrapper ids Grant Sanderson 2024-08-20 08:53:51 -05:00
  • 08e33faab8 Ensure scene properly updates on an embed Grant Sanderson 2024-08-19 21:49:39 -05:00
  • 0b2c59ac6b More explicitly unpack v_base_normal Grant Sanderson 2024-08-19 21:45:26 -05:00
  • 6223623b40 Ensure border width blends better within filled VMobject for opacity < 1 Grant Sanderson 2024-08-19 21:39:53 -05:00
  • 7217c9fca5 Reorganize VShaderWrapper.render_fill Grant Sanderson 2024-08-19 20:51:37 -05:00
  • b288d5301e Get rid of cached _has_stroke and _has_fill parameters Grant Sanderson 2024-08-19 17:27:47 -05:00
  • 058914fdd2 Mildly more efficient CameraFrame.get_view_matrix() Grant Sanderson 2024-08-19 16:54:29 -05:00
  • c064b11e2a Interleave base_point and unit_normal in the same array Grant Sanderson 2024-08-19 16:50:49 -05:00
  • b7337f0781 Remove some ShaderWrapper methods which are no longer needed Grant Sanderson 2024-08-19 14:45:12 -05:00
  • 195264f079 Stop pretending to support non-winding fill in the fill shader. Grant Sanderson 2024-08-19 14:37:11 -05:00
  • 09d147c8ef Set default border width to 0.5, and keep it for opacities < 1 Grant Sanderson 2024-08-19 14:35:19 -05:00
  • 39bcead679 Clean up Grant Sanderson 2024-08-19 14:22:10 -05:00
  • 28eba26bee Remove stray new line Grant Sanderson 2024-08-19 14:09:23 -05:00
  • 3b5d63d2fa Add depth shader to handle winding fill depth test. Grant Sanderson 2024-08-19 14:09:07 -05:00
  • 4cb16dfc0b Don't apply depth test during winding fill Grant Sanderson 2024-08-19 11:28:58 -05:00
  • a12fa0c03d Remove attributes from VMobject which are now handled in VShaderWrapper Grant Sanderson 2024-08-19 10:04:28 -05:00
  • 4174f314b4 Reorganize, and ensure get_shader_wrapper_list works for general Groups Grant Sanderson 2024-08-19 09:17:58 -05:00
  • f2bca0045f Add border width and backstroke Grant Sanderson 2024-08-19 08:18:45 -05:00
  • 24b160f9f9 Update VMobject shader wrapper Grant Sanderson 2024-08-19 08:05:32 -05:00
  • f9b9cf69fd Update so that vbo is not recreated on each from, but is read into Grant Sanderson 2024-08-17 07:11:56 -05:00
  • 0efa96e399 Just use L-inf norm for point equality Grant Sanderson 2024-08-16 16:18:37 -05:00
  • 12d39ef37c Merge pull request #2161 from 3b1b/video-work Grant Sanderson 2024-08-16 13:25:40 -07:00
  • ccc84f4ab1 Give Numbers a default border width Grant Sanderson 2024-08-16 15:21:29 -05:00
  • bb42b66201 Include fill border width in style Grant Sanderson 2024-08-16 15:21:20 -05:00
  • c20ce8d633 Have arrows default to flat stroke Grant Sanderson 2024-08-16 15:10:40 -05:00
  • 0267740bde Change STROKE_WIDTH_CONVERSION width back to older value Grant Sanderson 2024-08-16 15:03:47 -05:00
  • d8edccdab4 Fix zero stroke width issue Grant Sanderson 2024-08-16 14:59:18 -05:00
  • 108db87087 Rather than ignoring border with for non-one opacity, go back to having set_fill default to setting 0 border width for intermediate opacities Grant Sanderson 2024-08-16 12:38:11 -05:00
  • 21c0bcb8b6 Don't wait for animations while skipping Grant Sanderson 2024-08-16 12:20:49 -05:00
  • 902a4f264e Add white space after assert statements Grant Sanderson 2024-08-16 12:15:55 -05:00
  • 3f15715ff1 Use _data_defaults for initializing fill border width Grant Sanderson 2024-08-16 12:10:37 -05:00
  • 174f318602 Push _data_default initialization into init_data Grant Sanderson 2024-08-16 12:10:07 -05:00
  • 430a88cf13 Change default border width to 0, and only draw it for opacity 1 Grant Sanderson 2024-08-16 12:05:47 -05:00
  • 4a6e6ca646 Double the size of the fill canvas, to effectively do msaa Grant Sanderson 2024-08-16 12:04:27 -05:00