Blender Git Loki
Git Commits -> Revision b03e66e
Revision b03e66e by Sergey Sharybin (master) July 7, 2016, 15:25 (GMT) |
Cycles: Implement unaligned nodes BVH builder This is a special builder type which is allowed to orient nodes to strands direction, hence minimizing their surface area in comparison with axis-aligned nodes. Such nodes are much more efficient for hair rendering. Implementation of BVH builder is based on Embree, and generally idea there is to calculate axis-aligned SAH and oriented SAH and if SAH of oriented node is smaller than axis-aligned SAH we create unaligned node. We store both aligned and unaligned nodes in the same tree (which seems to be different from what Embree is doing) so we don't have any any extra calculations needed to set up hair ray for BVH traversal, hence avoiding any possible negative effect of this new BVH nodes type. This new builder is currently not in use, still need to make BVH traversal code aware of unaligned nodes. |
Commit Details:
Full Hash: b03e66e75fb79b503d48bc21dab0d67415516d4a
Parent Commit: 1a20121
Lines Changed: +1349, -253
2 Added Paths:
/intern/cycles/bvh/bvh_unaligned.cpp (+178, -0) (View)
/intern/cycles/bvh/bvh_unaligned.h (+81, -0) (View)
/intern/cycles/bvh/bvh_unaligned.h (+81, -0) (View)
19 Modified Paths:
/intern/cycles/bvh/bvh.cpp (+343, -93) (Diff)
/intern/cycles/bvh/bvh.h (+37, -3) (Diff)
/intern/cycles/bvh/bvh_binning.cpp (+51, -21) (Diff)
/intern/cycles/bvh/bvh_binning.h (+34, -5) (Diff)
/intern/cycles/bvh/bvh_build.cpp (+199, -71) (Diff)
/intern/cycles/bvh/bvh_build.h (+16, -11) (Diff)
/intern/cycles/bvh/bvh_node.cpp (+70, -0) (Diff)
/intern/cycles/bvh/bvh_node.h (+44, -3) (Diff)
/intern/cycles/bvh/bvh_params.h (+18, -0) (Diff)
/intern/cycles/bvh/bvh_sort.cpp (+27, -6) (Diff)
/intern/cycles/bvh/bvh_sort.h (+9, -1) (Diff)
/intern/cycles/bvh/bvh_split.cpp (+92, -23) (Diff)
/intern/cycles/bvh/bvh_split.h (+74, -8) (Diff)
/intern/cycles/bvh/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+7, -4) (Diff)
/intern/cycles/render/mesh.cpp (+39, -1) (Diff)
/intern/cycles/render/mesh.h (+14, -2) (Diff)
/intern/cycles/util/util_boundbox.h (+1, -1) (Diff)
/intern/cycles/util/util_transform.h (+13, -0) (Diff)
/intern/cycles/bvh/bvh.h (+37, -3) (Diff)
/intern/cycles/bvh/bvh_binning.cpp (+51, -21) (Diff)
/intern/cycles/bvh/bvh_binning.h (+34, -5) (Diff)
/intern/cycles/bvh/bvh_build.cpp (+199, -71) (Diff)
/intern/cycles/bvh/bvh_build.h (+16, -11) (Diff)
/intern/cycles/bvh/bvh_node.cpp (+70, -0) (Diff)
/intern/cycles/bvh/bvh_node.h (+44, -3) (Diff)
/intern/cycles/bvh/bvh_params.h (+18, -0) (Diff)
/intern/cycles/bvh/bvh_sort.cpp (+27, -6) (Diff)
/intern/cycles/bvh/bvh_sort.h (+9, -1) (Diff)
/intern/cycles/bvh/bvh_split.cpp (+92, -23) (Diff)
/intern/cycles/bvh/bvh_split.h (+74, -8) (Diff)
/intern/cycles/bvh/CMakeLists.txt (+2, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+7, -4) (Diff)
/intern/cycles/render/mesh.cpp (+39, -1) (Diff)
/intern/cycles/render/mesh.h (+14, -2) (Diff)
/intern/cycles/util/util_boundbox.h (+1, -1) (Diff)
/intern/cycles/util/util_transform.h (+13, -0) (Diff)