forked from bartvdbraak/blender
fe731686fb
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
util_algorithm.h | ||
util_args.h | ||
util_boundbox.h | ||
util_cache.cpp | ||
util_cache.h | ||
util_color.h | ||
util_debug.h | ||
util_dynlib.cpp | ||
util_dynlib.h | ||
util_foreach.h | ||
util_function.h | ||
util_half.h | ||
util_hash.h | ||
util_image.h | ||
util_list.h | ||
util_logging.cpp | ||
util_logging.h | ||
util_map.h | ||
util_math.h | ||
util_md5.cpp | ||
util_md5.h | ||
util_opengl.h | ||
util_optimization.h | ||
util_param.h | ||
util_path.cpp | ||
util_path.h | ||
util_progress.h | ||
util_set.h | ||
util_simd.cpp | ||
util_simd.h | ||
util_sseb.h | ||
util_ssef.h | ||
util_ssei.h | ||
util_stats.h | ||
util_string.cpp | ||
util_string.h | ||
util_system.cpp | ||
util_system.h | ||
util_task.cpp | ||
util_task.h | ||
util_thread.h | ||
util_time.cpp | ||
util_time.h | ||
util_transform.cpp | ||
util_transform.h | ||
util_types.h | ||
util_vector.h | ||
util_view.cpp | ||
util_view.h | ||
util_xml.h |