blender/intern/cycles/bvh
Sergey Sharybin f770bc4757 Cycles: Implement watertight ray/triangle intersection
Using this paper: Sven Woop, Watertight Ray/Triangle Intersection

  http://jcgt.org/published/0002/01/05/paper.pdf

This change is expected to address quite reasonable amount of reports from the
bug tracker, plus it might help reducing the noise in some scenes.

Unfortunately, it's currently about 7% slower than the previous solution with
pre-computed triangle plane equations, but maybe with some smart tweaks to the
code (tests reshuffle, using SIMD in a nice way or so) we can avoid the speed
regression.

But perhaps smartest thing to do here would be to change single triangle / ray
intersection with multiple triangles / ray intersections. That's how Embree does
this and it's watertight single ray intersection is not any faster that this.

Currently only triangle intersection is modified accordingly to the paper, in
the future we would also want to modify the node / ray intersection.

Reviewers: brecht, juicyfruit

Subscribers: dingto, ton

Differential Revision: https://developer.blender.org/D819
2014-12-25 02:50:49 +05:00
..
bvh_binning.cpp Code cleanup: Add -Werror=float-conversion to Cycles 2014-05-03 07:31:46 +10:00
bvh_binning.h Cycles: merging features from tomato branch. 2012-04-28 08:53:59 +00:00
bvh_build.cpp Cycles: Code cleanup, typo 2014-12-10 00:08:33 +05:00
bvh_build.h Cycles: optimization for hair BVH build, allow max 2 hair curves per leaf. 2014-04-22 17:15:41 +02:00
bvh_node.cpp Cycles: Use proper node counter to allocate QBVH nodes 2014-12-25 02:50:49 +05:00
bvh_node.h Cycles: Use proper node counter to allocate QBVH nodes 2014-12-25 02:50:49 +05:00
bvh_params.h Cycles: Speedup BVH build for certain compilers 2014-11-24 18:50:46 +05:00
bvh_sort.cpp Cycles code refactor: changes to make adding new primitive types easier. 2014-03-29 13:03:46 +01:00
bvh_sort.h style cleanup: block comments 2012-06-09 17:22:52 +00:00
bvh_split.cpp Cycles: optimization for hair BVH build, allow max 2 hair curves per leaf. 2014-04-22 17:15:41 +02:00
bvh_split.h Cycles: optimization for hair BVH build, allow max 2 hair curves per leaf. 2014-04-22 17:15:41 +02:00
bvh.cpp Cycles: Implement watertight ray/triangle intersection 2014-12-25 02:50:49 +05:00
bvh.h Cycles: Implement watertight ray/triangle intersection 2014-12-25 02:50:49 +05:00
CMakeLists.txt code cleanup: 2012-10-17 04:13:03 +00:00