Blender Git Commit Log
Git Commits -> Revision 433bb9b
Revision 433bb9b by Sergey Sharybin (master) July 18, 2018, 13:42 (GMT) |
Subsurf: Begin new subdivision surface module The idea is to use this as a replacement of old CCG, now it is based on OpenSubdiv. The goal is to reduce any possible overhead which was happening with OpenSubdiv used by CCG. Currently implemented/supported: - Creation from mesh, including topology on OpenSubdiv side, its refinement. - Evaluation of limit point, first order derivatives, normal, and face-varying data for individual coarse position. - Evaluation of whole patches. Currently not optimized, uses evaluation of individual coarse positions. - Creation of Mesh from subdiv, with all geometry being real: all mvert, medge, mloop, and mpoly. This includes custom data interpolation, but all faces currently are getting separated (they are converted to ptex patches, which we need to weld back together). Still need to support lighter weights grids and such, but this is already a required part to have subsurf working in the middle of modifier stack. Annoying part is ifdef all over the place, to keep it compilable when OpenSubdiv is disabled. More cleaner approach would be to have stub API for OpenSubdiv, so everything gets ifdef-ed in a much fewer places. |
Commit Details:
Full Hash: 433bb9bbcb52fc30aa44def202ca38b4a6e7abac
Parent Commit: c64262a
Lines Changed: +2120, -0
7 Added Paths:
/source/blender/blenkernel/BKE_subdiv.h (+184, -0) (View)
/source/blender/blenkernel/intern/subdiv.c (+114, -0) (View)
/source/blender/blenkernel/intern/subdiv_converter.c (+65, -0) (View)
/source/blender/blenkernel/intern/subdiv_converter.h (+57, -0) (View)
/source/blender/blenkernel/intern/subdiv_converter_mesh.c (+471, -0) (View)
/source/blender/blenkernel/intern/subdiv_eval.c (+319, -0) (View)
/source/blender/blenkernel/intern/subdiv_mesh.c (+910, -0) (View)
/source/blender/blenkernel/intern/subdiv.c (+114, -0) (View)
/source/blender/blenkernel/intern/subdiv_converter.c (+65, -0) (View)
/source/blender/blenkernel/intern/subdiv_converter.h (+57, -0) (View)
/source/blender/blenkernel/intern/subdiv_converter_mesh.c (+471, -0) (View)
/source/blender/blenkernel/intern/subdiv_eval.c (+319, -0) (View)
/source/blender/blenkernel/intern/subdiv_mesh.c (+910, -0) (View)