Blender Git Commit Log
Git Commits -> Revision 138c9db
Revision 138c9db by Bastien Montagne (master) February 5, 2015, 13:32 (GMT) |
Add Custom Loop Normals. This is the core code for it, tools (datatransfer and modifier) will come in next commits). RNA api is already there, though. See the code for details, but basically, we define, for each 'smooth fan' (which is a set of adjacent loops around a same vertex that are smooth, i.e. have a single same normal), a 'loop normal space' (or lnor space), using auto-computed normal and relevant edges, and store custom normal as two angular factors inside that space. This allows to have custom normals 'following' deformations of the geometry, and to only save two shorts per loop in new clnor CDLayer. Normal manipulation (editing, mixing, interpolating, etc.) shall always happen with plain 3D vectors normals, and be converted back into storage format at the end. Clnor computation has also been threaded (at least for Mesh case, not for BMesh), since the process can be rather heavy with high poly meshes. Also, bumping subversion, and fix mess in 2.70 versioning code. |
Commit Details:
Full Hash: 138c9dba9be67a93c91717ae3fcd8855aced9185
Parent Commit: 7bae9ee
Lines Changed: +1691, -306
23 Modified Paths:
/intern/cycles/blender/blender_mesh.cpp (+1, -1) (Diff)
/release/scripts/startup/bl_ui/properties_data_mesh.py (+6, -1) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_cdderivedmesh.h (+3, -0) (Diff)
/source/blender/blenkernel/BKE_DerivedMesh.h (+5, -0) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+53, -5) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+40, -1) (Diff)
/source/blender/blenkernel/intern/customdata.c (+12, -6) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+45, -1) (Diff)
/source/blender/blenkernel/intern/mesh.c (+10, -0) (Diff)
/source/blender/blenkernel/intern/mesh_evaluate.c (+1005, -172) (Diff)
/source/blender/blenkernel/intern/mesh_remap.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+1, -0) (Diff)
/source/blender/blenloader/intern/versioning_270.c (+65, -63) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.c (+217, -40) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.h (+5, -2) (Diff)
/source/blender/editors/mesh/mesh_data.c (+66, -0) (Diff)
/source/blender/editors/mesh/mesh_intern.h (+2, -0) (Diff)
/source/blender/editors/mesh/mesh_ops.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+5, -2) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+30, -5) (Diff)
/source/blender/makesrna/intern/rna_mesh_api.c (+112, -3) (Diff)
/source/blender/render/intern/source/convertblender.c (+1, -1) (Diff)
/release/scripts/startup/bl_ui/properties_data_mesh.py (+6, -1) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_cdderivedmesh.h (+3, -0) (Diff)
/source/blender/blenkernel/BKE_DerivedMesh.h (+5, -0) (Diff)
/source/blender/blenkernel/BKE_mesh.h (+53, -5) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+40, -1) (Diff)
/source/blender/blenkernel/intern/customdata.c (+12, -6) (Diff)
/source/blender/blenkernel/intern/editderivedmesh.c (+45, -1) (Diff)
/source/blender/blenkernel/intern/mesh.c (+10, -0) (Diff)
/source/blender/blenkernel/intern/mesh_evaluate.c (+1005, -172) (Diff)
/source/blender/blenkernel/intern/mesh_remap.c (+4, -2) (Diff)
/source/blender/blenkernel/intern/subsurf_ccg.c (+1, -0) (Diff)
/source/blender/blenloader/intern/versioning_270.c (+65, -63) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.c (+217, -40) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.h (+5, -2) (Diff)
/source/blender/editors/mesh/mesh_data.c (+66, -0) (Diff)
/source/blender/editors/mesh/mesh_intern.h (+2, -0) (Diff)
/source/blender/editors/mesh/mesh_ops.c (+2, -0) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+5, -2) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+30, -5) (Diff)
/source/blender/makesrna/intern/rna_mesh_api.c (+112, -3) (Diff)
/source/blender/render/intern/source/convertblender.c (+1, -1) (Diff)