blender/intern
Sergey Sharybin 9946cca146 Fix T48860: Cycles SSS artifacts with spatially split BVH
The issue was caused by SSS intersection code gathering all
intersections without check for duplicated ones. This caused
situations when same intersection will be recorded twice in
the case if triangle is shared by several BVH nodes.

Usually this is handled by checking intersection distance
after sorting intersections (in shadow_blocked for example)
but for SSS we don't do such sorting and using number of
intersections to calculate various things.

Didn't find anything smarter than to check intersection
distance in triangle_intersect_subsurface().

This solves render artifacts in the cost of 1.5% slowdown
of extreme case rendering (SSS object filling in whole
FullHD screen).

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2105
2016-07-18 10:04:20 +02:00
..
atomic Atomic ops: Fix atomic_add_uint32 and atomic_sub_uint32 in Windows 2016-06-11 22:15:25 +02:00
audaspace Fix warnings reported by MSVC 2016-02-23 09:44:54 +01:00
container Remove SCons building system 2016-01-04 14:20:48 +05:00
cycles Fix T48860: Cycles SSS artifacts with spatially split BVH 2016-07-18 10:04:20 +02:00
decklink Cleanup: comment blocks 2016-07-02 10:08:33 +10:00
dualcon Remove SCons building system 2016-01-04 14:20:48 +05:00
eigen Remove SCons building system 2016-01-04 14:20:48 +05:00
elbeem Silence some annoying warnings when doing full build with strict flags 2016-04-22 10:59:15 +02:00
ffmpeg Fix compilation error with FFmpeg and Ubuntu Trusty 2016-02-19 22:05:06 +01:00
ghost Cleanup: comment blocks 2016-07-15 02:39:45 +10:00
glew-mx Remove SCons building system 2016-01-04 14:20:48 +05:00
gpudirect Cleanup: comment blocks 2016-07-02 10:08:33 +10:00
guardedalloc Cleanup: comment blocks 2016-07-15 02:39:45 +10:00
iksolver CMake: add missing headers 2016-04-12 11:22:30 +10:00
itasc Remove SCons building system 2016-01-04 14:20:48 +05:00
libmv Libmv: Fix some strict compiler warnings 2016-07-14 11:49:38 +02:00
locale Remove SCons building system 2016-01-04 14:20:48 +05:00
memutil Remove SCons building system 2016-01-04 14:20:48 +05:00
mikktspace Cleanup: warning 2016-03-13 15:15:38 +11:00
moto BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
opencolorio Cleanup: glsl style 2016-05-26 18:53:09 +10:00
opensubdiv Cleanup: remove redundant check 2016-07-12 17:59:25 +10:00
openvdb Fix T48236: OpenVDB smoke cache glitches out with smokeless flames. 2016-04-22 11:46:02 +02:00
rigidbody Remove SCons building system 2016-01-04 14:20:48 +05:00
smoke Smoke (fire): Move spectrum code from C++ (intern/) to C code (BLI) 2016-01-09 04:48:31 +01:00
string Remove SCons building system 2016-01-04 14:20:48 +05:00
utfconv Remove SCons building system 2016-01-04 14:20:48 +05:00
CMakeLists.txt BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00