Blender Git Loki

Git Commits -> Revision f770bc4

Revision f770bc4 by Sergey Sharybin (master)
December 24, 2014, 21:50 (GMT)
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

Commit Details:

Full Hash: f770bc4757a2b471d5aaee048359096c1c79a6b2
Parent Commit: 57d235d
Lines Changed: +344, -178

9 Modified Paths:

/intern/cycles/bvh/bvh.cpp (+4, -61) (Diff)
/intern/cycles/bvh/bvh.h (+0, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_shadow.h (+8, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_subsurface.h (+7, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_traversal.h (+6, -1) (Diff)
/intern/cycles/kernel/geom/geom_bvh_volume.h (+8, -1) (Diff)
/intern/cycles/kernel/geom/geom_triangle.h (+3, -1) (Diff)
/intern/cycles/kernel/geom/geom_triangle_intersect.h (+292, -111) (Diff)
/intern/cycles/util/util_math.h (+16, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021