blender/intern/cycles
Sergey Sharybin dc7bbd731a Cycles: Fix wrong hair render results when using BVH motion steps
The issue here was mainly coming from minimal pixel width feature
which is quite commonly enabled in production shots.

This feature will use some probabilistic heuristic in the curve
intersection function to check whether we need to return intersection
or not. This probability is calculated for every intersection check.
Now, when we use multiple BVH nodes for curve primitives we increase
probability of that primitive to be considered a good intersection
for us. This is similar to increasing minimal width of curve.

What is worst here is that change in the intersection probability
fully depends on exact layout of BVH, meaning probability might
change differently depending on a view angle, the way how builder
binned the primitives and such. This makes it impossible to do
simple check like dividing probability by number of BVH steps.

Other solution might have been to split BVH into fully independent
trees, but that will increase memory usage of all the static
objects in the scenes, which is also not something desirable.

For now used most simple but robust approach: store BVH primitives
time and test it in curve intersection functions. This solves the
regression, but has two downsides:

- Uses more memory.

  which isn't surprising, and ANY solution to this problem will
  use more memory.

  What we still have to do is to avoid this memory increase for
  cases when we don't use BVH motion steps.

- Reduces number of maximum available textures on pre-kepler cards.

  There is not much we can do here, hardware gets old but we need
  to move forward on more modern hardware..
2017-02-15 12:45:04 +01:00
..
app Cycles: Cleanup, style 2017-01-13 15:24:56 +01:00
blender Cycles: Fix wrong pointiness caused by precision issues 2017-02-15 12:40:13 +01:00
bvh Cycles: Fix wrong hair render results when using BVH motion steps 2017-02-15 12:45:04 +01:00
cmake Fix compilation error when CUDA toolkit is not installed 2016-11-07 14:47:10 +01:00
device Use new manual URL 2017-01-23 19:10:37 -05:00
doc Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
graph Cycles: Don't use guarded vector for statically initialized data 2016-10-24 14:18:22 +02:00
kernel Cycles: Fix wrong hair render results when using BVH motion steps 2017-02-15 12:45:04 +01:00
render Cycles: Fix wrong hair render results when using BVH motion steps 2017-02-15 12:45:04 +01:00
subd Cycles: Cleanup, style 2016-10-24 12:26:12 +02:00
test Cycles: Cleanup, order of arguments to EXPECT_EQ 2017-02-03 11:35:34 +01:00
util Cycles: Update current Cycles version 2017-01-23 10:25:59 +01:00
CMakeLists.txt Cycles: Use fast math without finite optimization 2017-02-13 16:25:35 +01:00