Mesh: Replace auto smooth with node group #108014

Merged
Hans Goudey merged 149 commits from HooglyBoogly/blender:refactor-mesh-corner-normals-lazy into main 2023-10-20 16:54:20 +02:00

149 Commits

Author SHA1 Message Date
Hans Goudey bc4dd268c1 Attempt to fix windows build error
buildbot/vexp-code-patch-coordinator Build done. Details
2023-10-20 15:19:17 +02:00
Hans Goudey 49ce7e2f1d Merge branch 'main' into refactor-mesh-corner-normals-lazy
buildbot/vexp-code-patch-coordinator Build done. Details
2023-10-20 14:55:36 +02:00
Hans Goudey 22bcc0e96d Fix obj import tests 2023-10-19 17:56:37 +02:00
Hans Goudey 95d4ba381b Fix Cycles "all sharp" case 2023-10-19 17:47:22 +02:00
Hans Goudey dd6af6ff6b Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-10-19 15:36:59 +02:00
Hans Goudey 78a34dffdd Fix subversion 2023-10-19 00:20:11 +02:00
Hans Goudey 28bc39fe08 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-10-19 00:19:25 +02:00
Hans Goudey e777069510 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-10-06 09:31:02 +02:00
Hans Goudey cd968b80de Fixes 2023-10-01 16:31:26 -04:00
Hans Goudey 7dadb241f3 Remove unhelpful and slow eager normal calculation
Calculating normals early (especially corner normals) turns out to be
slower here, and prevents optimizations like the renderer only
requesting the normals it needs, or only requesting normals based
on some scene simplify option that doesn't affect object evaluation.
It adds significant complexity too.`calc_loop_normals` was also set
but not used.
2023-09-29 14:05:59 -04:00
Hans Goudey 230177ce73 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-29 13:20:06 -04:00
Hans Goudey 9560c55236 Use a proper descriptive enum type 2023-09-29 09:45:14 -04:00
Hans Goudey 6770c55a50 Fix redundant normal layer removal 2023-09-29 09:44:56 -04:00
Hans Goudey ee05da8441 Fix Cycles mesh extraction 2023-09-29 09:44:45 -04:00
Hans Goudey 5e759bf241 Cleanup: Remove redundant check 2023-09-28 17:32:30 -04:00
Hans Goudey 8eabeb1557 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-28 15:11:24 -04:00
Hans Goudey 9b591c4a57 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-28 11:48:09 -04:00
Hans Goudey 533f8cbce7 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-27 18:54:48 -04:00
Hans Goudey 94a7e56ef9 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-21 16:20:37 -04:00
Hans Goudey 2faacfa6dd Make cache dirty tagging more solid 2023-09-11 14:08:20 -04:00
Hans Goudey 3473278610 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-11 13:52:50 -04:00
Hans Goudey beb3e1805b Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-07 18:11:08 -04:00
Hans Goudey 8d6a65df15 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-07 15:09:39 -04:00
Hans Goudey 4d027a7554 Fix missing attribute domains for set shade smooth nodes 2023-09-06 12:30:27 -04:00
Hans Goudey 91c5baadc5 Update versioning to use new nodes 2023-09-06 12:18:23 -04:00
Hans Goudey 5f89bcba7e Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-06 11:41:53 -04:00
Hans Goudey bbac27d2bb Fix missing sharp is inverse of smooth 2023-09-06 07:47:15 -04:00
Hans Goudey 253a27dd37 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-06 07:44:03 -04:00
Hans Goudey a879546ec3 Fix copy and paste mistake in last change to casting 2023-09-05 20:44:48 -04:00
Hans Goudey 4b925788b6 Use fewer casts 2023-09-05 17:21:33 -04:00
Hans Goudey 876ab8734b Replace manual virtual array implementations with ForDerivedSpan 2023-09-05 17:19:54 -04:00
Hans Goudey 0455e8caa4 Update MeshLoop.normal description 2023-09-05 16:53:32 -04:00
Hans Goudey e05fe7debc Fix typo 2023-09-05 16:22:23 -04:00
Hans Goudey c3fa88c1f2 Rename `normal_domain_all_info` to `normals_domain` 2023-09-05 16:21:47 -04:00
Hans Goudey 58da2fa2f1 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-05 15:38:38 -04:00
Hans Goudey 1f9d3596b7 Add legacy suffix to flag and float in DNA 2023-09-05 08:11:54 -04:00
Hans Goudey 25f7a516fb Adjust "edge to loop map" name and add comment 2023-09-05 08:05:42 -04:00
Hans Goudey b6d68f2345 Fix mistaken attribute domain check 2023-09-05 08:02:51 -04:00
Hans Goudey 08947d2b8e Only show "smooth by angle" operator when active object is a mesh 2023-09-05 08:01:47 -04:00
Hans Goudey 8b4f39d930 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-05 07:54:49 -04:00
Hans Goudey 0d411ddf48 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-04 17:41:29 -04:00
Hans Goudey 29d276b721 Fix obj export 2023-09-01 08:40:39 -04:00
Hans Goudey 9011eeda95 Fix after topology cache change in main 2023-09-01 08:40:34 -04:00
Hans Goudey 11668e1a66 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-09-01 08:24:01 -04:00
Hans Goudey 8baa21e981 Fix versioning after change in main
buildbot/vexp-code-patch-coordinator Build done. Details
2023-08-30 14:12:04 -04:00
Hans Goudey db77fdd44b Revert changes in BMesh normal calculation
Now the changes are as simpe as possible-- in the entry point we just
disable the tagging with the old magic number
2023-08-30 14:03:14 -04:00
Hans Goudey e2fc081882 Reduce duplication 2023-08-30 13:52:31 -04:00
Hans Goudey 37a06cbffc Check whether BMesh loop normals are required before accessing 2023-08-30 13:52:25 -04:00
Hans Goudey bc3bd71f56 Fix issues with wrapper system and deferred normal calculation 2023-08-30 12:45:55 -04:00
Hans Goudey c0a2871f72 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-08-30 12:18:17 -04:00
Hans Goudey be5de2b28d Replace incorrect / unhelpful comment 2023-08-30 08:53:50 -04:00
Hans Goudey 13c54a9aac Fix for new node tree interface UI 2023-08-30 08:33:33 -04:00
Hans Goudey cb6eb2c894 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-08-30 08:29:54 -04:00
Hans Goudey e50a8382ce Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-08-29 17:41:34 -04:00
Hans Goudey e4b0d32b23 Separate old auto smooth operator option to "shade_smooth_by_angle" operator 2023-08-28 23:39:45 -04:00
Hans Goudey 37513e174a Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-08-28 23:22:47 -04:00
Hans Goudey 693875c078 Move "add split normals" back to geometry data panel 2023-08-25 21:50:46 -04:00
Hans Goudey 5d336ebbdf Fix geometry component 2023-08-25 21:48:48 -04:00
Hans Goudey 0c0a5c9526 Use shared cache for corner normals 2023-08-25 17:20:09 -04:00
Hans Goudey 7577e5d0ae Bump file subversion 2023-08-25 17:16:17 -04:00
Hans Goudey 682e3f0431 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-08-25 17:15:58 -04:00
Hans Goudey 49d3dddae8 Fixes 2023-08-21 11:38:34 -04:00
Hans Goudey 32fa37bf83 Fix build errors 2023-08-20 23:00:05 -04:00
Hans Goudey a1fb62caca Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-08-20 22:20:49 -04:00
Hans Goudey 953919aee1 Move versioning code, more cleanup 2023-08-20 22:15:40 -04:00
Hans Goudey 6f59cab660 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-08-19 20:45:05 -04:00
Hans Goudey 2a147d27d1 Progress 2023-08-04 10:11:16 -04:00
Hans Goudey 594852f321 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-08-04 10:06:04 -04:00
Hans Goudey d0d29dd21d Fix 2023-07-26 16:29:34 -04:00
Hans Goudey 4c360a1dc6 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-07-26 16:25:57 -04:00
Hans Goudey 633219d934 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-07-26 08:35:58 -04:00
Hans Goudey fb97736f3b Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-07-25 16:30:10 -04:00
Hans Goudey 6d2644a23f Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-07-02 13:07:47 -04:00
Hans Goudey 9d2ebd5929 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-26 16:09:59 -04:00
Hans Goudey 0bc9a7e78b Fix build 2023-06-21 15:50:37 -04:00
Hans Goudey 7f8c257618 Add back multrithreading to distribute points node normal sampling 2023-06-21 15:46:11 -04:00
Hans Goudey 6e77c05f4e Cleanup 2023-06-21 15:40:46 -04:00
Hans Goudey a2ce5f5ec6 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-21 15:35:48 -04:00
Hans Goudey d378d14d43 Cleanup 2023-06-21 15:23:05 -04:00
Hans Goudey 4569af0b29 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-21 15:07:14 -04:00
Hans Goudey 4ee2813d1e Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-16 08:34:38 -04:00
Hans Goudey f159645eae Cleanup 2023-06-13 17:31:38 -04:00
Hans Goudey 69fee9e521 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-13 17:07:48 -04:00
Hans Goudey 93d81777a8 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-13 15:32:43 -04:00
Hans Goudey 8e129e4e6f Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-07 14:30:15 -04:00
Hans Goudey 4771976d54 Cleanup 2023-06-07 11:20:14 -04:00
Hans Goudey 9c8ddef516 Cleanup 2023-06-07 10:42:06 -04:00
Hans Goudey c9f50a60eb Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-07 10:41:02 -04:00
Hans Goudey 3a03cb9d07 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-06-02 21:42:46 -04:00
Hans Goudey fcd056ea8c Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-24 09:58:51 -04:00
Hans Goudey fc775c17d9 Cleanup: Rename enum 2023-05-24 09:45:32 -04:00
Hans Goudey 5d05503945 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-24 09:35:39 -04:00
Hans Goudey 4ee088cb79 Fix: Remove function again after merge mistake 2023-05-23 19:28:51 -04:00
Hans Goudey 8aefc6772b Cleanup: Rename boolean mix calc function 2023-05-23 19:25:28 -04:00
Hans Goudey 772c14d115 Cleanup 2023-05-23 19:24:22 -04:00
Hans Goudey 88d2175666 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-23 17:50:59 -04:00
Hans Goudey 79147fdff0 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-23 17:30:50 -04:00
Hans Goudey dc6d2e9a5e Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-19 14:18:05 -04:00
Hans Goudey 5866b6d227 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-18 16:15:34 -04:00
Hans Goudey 1f204b4b84 Add mesh API function tp set sharp edges from angle 2023-05-18 09:44:36 -04:00
Hans Goudey fb2433804f Also adjust sharp edge attribute in shade smooth/flat operator 2023-05-18 09:42:56 -04:00
Hans Goudey c34b92f6d1 A few fixes 2023-05-17 18:53:46 -04:00
Hans Goudey 09ec47a973 Cleanup: Make diff smaller 2023-05-17 17:09:20 -04:00
Hans Goudey 5ef39c7ff7 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-17 17:03:46 -04:00
Hans Goudey 677b823fd4 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-17 16:55:38 -04:00
Hans Goudey 9a42de4967 Add normals panel back, but just with custom normals button 2023-05-17 16:38:17 -04:00
Hans Goudey 68eb2ba9c1 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-17 16:32:50 -04:00
Hans Goudey 19b44869fa Add some more stuff to versioning node group 2023-05-17 10:31:21 -04:00
Hans Goudey 0250459456 Skip versioning node group in some cases 2023-05-17 10:06:07 -04:00
Hans Goudey 7a9a4b98d3 Better consistency in manual normal propagation 2023-05-17 10:05:50 -04:00
Hans Goudey 237e209c5b Cleanup: Remove const in header 2023-05-17 10:05:33 -04:00
Hans Goudey c055bfe93e Probably fix mesh subdivision 2023-05-16 16:36:22 -04:00
Hans Goudey ca331b969b Move bool array mix calc to array utils header 2023-05-16 16:29:11 -04:00
Hans Goudey a38672e385 Place nodes in new node group properly 2023-05-16 16:21:11 -04:00
Hans Goudey fd92da5515 Versioning node group 2023-05-16 16:07:02 -04:00
Hans Goudey 8807f27bf5 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-16 12:28:16 -04:00
Hans Goudey 5cb1a45bb5 Progress with versioning 2023-05-16 12:19:15 -04:00
Hans Goudey b6241154e2 Tag normals dirty 2023-05-16 11:45:00 -04:00
Hans Goudey c3c2cc7039 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-16 11:36:45 -04:00
Hans Goudey 29134a0b6f Fix deadlock 2023-05-10 22:03:49 -04:00
Hans Goudey aa90e9ff89 Fix crash 2023-05-10 22:03:34 -04:00
Hans Goudey d70da203e4 Add nicer comment 2023-05-10 21:40:53 -04:00
Hans Goudey 5f42d264b1 Fix compile error 2023-05-10 21:40:45 -04:00
Hans Goudey ee3fc714a4 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-05-10 20:32:42 -04:00
Hans Goudey 7e6d3dd52c Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-04-30 17:52:08 -04:00
Hans Goudey e2c241fb40 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-04-28 16:40:17 -04:00
Hans Goudey a103cbf0ea Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-04-28 08:21:54 -04:00
Hans Goudey cb2220999e Fixes/cleanup 2023-04-27 23:39:22 -04:00
Hans Goudey 24aeaa5bc1 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-04-27 22:52:16 -04:00
Hans Goudey 098c9a15bf Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-04-16 18:34:14 -04:00
Hans Goudey 737dc65234 Cleanup 2023-04-16 14:18:38 -04:00
Hans Goudey 003bf9ef0f Cleanup 2023-04-14 17:24:56 -04:00
Hans Goudey 78092b19fa Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-04-14 16:49:12 -04:00
Hans Goudey 55dd8b2db5 Progress
Need the normals shared cache changes to move forward here
2023-04-10 17:20:07 -04:00
Hans Goudey d05bba2b61 Progress 2023-04-10 15:01:28 -04:00
Hans Goudey d902497e04 Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-04-10 14:47:02 -04:00
Hans Goudey f44e13579a Progress removing auto smooth
This needs to wait until 4.0
2023-04-05 08:58:51 -04:00
Hans Goudey 5ee57e8a5c Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-04-04 18:40:42 -04:00
Hans Goudey 32ebf39bbf Merge branch 'main' into refactor-mesh-corner-normals-lazy 2023-02-27 11:43:15 -05:00
Hans Goudey 55e1ef2c23 More progress, reverting unnecessary changes 2022-12-14 09:40:41 -06:00
Hans Goudey 26cc225ed8 Merge branch 'master' into refactor-mesh-corner-normals-lazy 2022-12-13 18:48:03 -06:00
Jacques Lucke 3fe03c01ac Merge branch 'master' into refactor-mesh-corner-normals-lazy 2022-12-02 10:41:54 +01:00
Jacques Lucke cf9f495283 fix some compilation errors 2022-12-01 19:47:15 +01:00
Jacques Lucke 30502bddc0 Merge branch 'master' into refactor-mesh-corner-normals-lazy 2022-12-01 18:46:48 +01:00
Hans Goudey d6c4ef7586 Fix one build error 2022-11-29 14:02:32 -06:00
Hans Goudey ba7052caa9 Cleanup: Make function, remove function 2022-11-29 13:06:49 -06:00
Hans Goudey a15351c338 A few compilation fixes 2022-11-29 12:55:32 -06:00
Hans Goudey 80bd960d91 Merge branch 'master' into refactor-mesh-corner-normals-lazy 2022-11-29 12:35:35 -06:00
Hans Goudey 172a976273 Mesh: Start refactor of lazy face corner normals 2022-11-11 18:44:37 -06:00