Go to file
Sergey Sharybin fe731686fb Cycles: Add support for cameras inside volume
Basically the title says it all, volume stack initialization now is aware that
camera might be inside of the volume. This gives quite noticeable render time
regressions in cases camera is in the volume (didn't measure them yet) because
this requires quite a few of ray-casting per camera ray in order to check which
objects we're inside. Not quite sure if this might be optimized.

But the good thing is that we can do quite a good job on detecting whether
camera is outside of any of the volumes and in this case there should be no
time penalty at all (apart from some extra checks during the sync state).

For now we're only doing rather simple AABB checks between the viewplane and
volume objects. This could give some false-positives, but this should be good
starting point.

Need to mention panoramic cameras here, for them it's only check for whether
there are volumes in the scene, which would lead to speed regressions even if
the camera is outside of the volumes. Would need to figure out proper check
for such cameras.

There are still quite a few of TODOs in the code, but the patch is good enough
to start playing around with it checking whether there are some obvious mistakes
somewhere.

Currently the feature is only available in the Experimental feature sey, need
to solve some of the TODOs and look into making things faster before considering
the feature is ready for the official feature set. This would still likely
happen in current release cycle.

Reviewers: brecht, juicyfruit, dingto

Differential Revision: https://developer.blender.org/D794
2014-09-25 23:28:01 +06:00
build_files Fix T41936: lender 2.72 Crashes on play on *Ubuntu 14.04 2014-09-24 16:34:12 +06:00
doc Sphinx doc script, update for change in rsync 2014-09-24 12:51:22 +10:00
extern Cycles: Add support of Glog logging 2014-09-25 17:08:32 +06:00
intern Cycles: Add support for cameras inside volume 2014-09-25 23:28:01 +06:00
release Expose show brush property for UV sculpting. 2014-09-25 15:38:32 +02:00
scons@625d446ae8 Fixed border extension for the sunbeams node. 2014-09-23 11:42:11 +02:00
source Fix previous commit rB34abb614f1344a6, which broke addons translations. 2014-09-25 14:33:19 +02:00
tests Cleanup: use static sets where possible 2014-09-18 17:45:31 +10:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Revert "ignore conflict files" 2014-08-08 06:00:49 +10:00
.gitmodules Initialize git submodules for addons, locales and scons 2013-11-15 12:19:08 +06:00
CMakeLists.txt Cycles: Add support of Glog logging 2014-09-25 17:08:32 +06:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Utility script to create release archive 2014-09-16 11:44:00 +10:00
SConstruct Fix scons leaving partially generated files when aborting 2014-09-12 22:56:37 +06:00