Blender Git Commit Log

Git Commits -> Revision 697fd86

Revision 697fd86 by Mai Lavelle (master)
August 27, 2019, 18:27 (GMT)
Cycles: Stitching of subdivided and displaced meshes

This patch stitches the vertices along patch edges so that cracks can
no longer form when applying subdivision or displacement a mesh.

Subpatches are now formed in a way that ensures vertex indices along
subpatch edges are equal for adjacent subpatches. A mapping of vertices
along patch edges is built to preform stitching. Overall performance is
roughly the same, some gains were made in splitting, but some was lost
in stitching.

This fixes:
- T49049 (cracks between patches from material and uv seams)
- T49048 (discontinuous normals with true displacement)

Reviewers: sergey, brecht

Differential Revision: https://developer.blender.org/D3692

Commit Details:

Full Hash: 697fd86506fd0caaa41e2fbf0463b5229d09251e
Parent Commit: 7aef075
Lines Changed: +1134, -437

2 Added Paths:

/intern/cycles/subd/subd_subpatch.h (+210, -0) (View)
/intern/cycles/util/util_deque.h (+28, -0) (View)

12 Modified Paths:

/intern/cycles/render/mesh.cpp (+3, -0) (Diff)
/intern/cycles/render/mesh.h (+8, -0) (Diff)
/intern/cycles/render/mesh_displace.cpp (+73, -2) (Diff)
/intern/cycles/render/mesh_subdivision.cpp (+62, -71) (Diff)
/intern/cycles/subd/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/subd/subd_dice.cpp (+90, -166) (Diff)
/intern/cycles/subd/subd_dice.h (+16, -59) (Diff)
/intern/cycles/subd/subd_patch.h (+3, -8) (Diff)
/intern/cycles/subd/subd_split.cpp (+611, -120) (Diff)
/intern/cycles/subd/subd_split.h (+27, -11) (Diff)
/intern/cycles/util/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/util/util_map.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021