2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
set(INC
|
Cycles: Make all #include statements relative to cycles source directory
The idea is to make include statements more explicit and obvious where the
file is coming from, additionally reducing chance of wrong header being
picked up.
For example, it was not obvious whether bvh.h was refferring to builder
or traversal, whenter node.h is a generic graph node or a shader node
and cases like that.
Surely this might look obvious for the active developers, but after some
time of not touching the code it becomes less obvious where file is coming
from.
This was briefly mentioned in T50824 and seems @brecht is fine with such
explicitness, but need to agree with all active developers before committing
this.
Please note that this patch is lacking changes related on GPU/OpenCL
support. This will be solved if/when we all agree this is a good idea to move
forward.
Reviewers: brecht, lukasstockner97, maiself, nirved, dingto, juicyfruit, swerner
Reviewed By: lukasstockner97, maiself, nirved, dingto
Subscribers: brecht
Differential Revision: https://developer.blender.org/D2586
2017-03-28 18:39:14 +00:00
|
|
|
..
|
2014-10-07 20:46:19 +00:00
|
|
|
../../glew-mx
|
2012-09-20 09:04:43 +00:00
|
|
|
)
|
2012-10-17 04:13:03 +00:00
|
|
|
|
2012-09-20 09:04:43 +00:00
|
|
|
set(INC_SYS
|
2014-12-29 09:48:21 +00:00
|
|
|
${GLEW_INCLUDE_DIR}
|
2011-11-08 20:27:37 +00:00
|
|
|
)
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
set(SRC
|
2015-02-14 12:29:47 +00:00
|
|
|
util_aligned_malloc.cpp
|
2016-01-12 11:00:48 +00:00
|
|
|
util_debug.cpp
|
2014-09-08 12:01:24 +00:00
|
|
|
util_logging.cpp
|
2015-10-26 14:20:40 +00:00
|
|
|
util_math_cdf.cpp
|
2011-04-27 11:58:34 +00:00
|
|
|
util_md5.cpp
|
|
|
|
util_path.cpp
|
|
|
|
util_string.cpp
|
2014-06-13 19:13:18 +00:00
|
|
|
util_simd.cpp
|
2011-04-27 11:58:34 +00:00
|
|
|
util_system.cpp
|
Cycles: merging features from tomato branch.
=== BVH build time optimizations ===
* BVH building was multithreaded. Not all building is multithreaded, packing
and the initial bounding/splitting is still single threaded, but recursive
splitting is, which was the main bottleneck.
* Object splitting now uses binning rather than sorting of all elements, using
code from the Embree raytracer from Intel.
http://software.intel.com/en-us/articles/embree-photo-realistic-ray-tracing-kernels/
* Other small changes to avoid allocations, pack memory more tightly, avoid
some unnecessary operations, ...
These optimizations do not work yet when Spatial Splits are enabled, for that
more work is needed. There's also other optimizations still needed, in
particular for the case of many low poly objects, the packing step and node
memory allocation.
BVH raytracing time should remain about the same, but BVH build time should be
significantly reduced, test here show speedup of about 5x to 10x on a dual core
and 5x to 25x on an 8-core machine, depending on the scene.
=== Threads ===
Centralized task scheduler for multithreading, which is basically the
CPU device threading code wrapped into something reusable.
Basic idea is that there is a single TaskScheduler that keeps a pool of threads,
one for each core. Other places in the code can then create a TaskPool that they
can drop Tasks in to be executed by the scheduler, and wait for them to complete
or cancel them early.
=== Normal ====
Added a Normal output to the texture coordinate node. This currently
gives the object space normal, which is the same under object animation.
In the future this might become a "generated" normal so it's also stable for
deforming objects, but for now it's already useful for non-deforming objects.
=== Render Layers ===
Per render layer Samples control, leaving it to 0 will use the common scene
setting.
Environment pass will now render environment even if film is set to transparent.
Exclude Layers" added. Scene layers (all object that influence the render,
directly or indirectly) are shared between all render layers. However sometimes
it's useful to leave out some object influence for a particular render layer.
That's what this option allows you to do.
=== Filter Glossy ===
When using a value higher than 0.0, this will blur glossy reflections after
blurry bounces, to reduce noise at the cost of accuracy. 1.0 is a good
starting value to tweak.
Some light paths have a low probability of being found while contributing much
light to the pixel. As a result these light paths will be found in some pixels
and not in others, causing fireflies. An example of such a difficult path might
be a small light that is causing a small specular highlight on a sharp glossy
material, which we are seeing through a rough glossy material. With path tracing
it is difficult to find the specular highlight, but if we increase the roughness
on the material the highlight gets bigger and softer, and so easier to find.
Often this blurring will be hardly noticeable, because we are seeing it through
a blurry material anyway, but there are also cases where this will lead to a
loss of detail in lighting.
2012-04-28 08:53:59 +00:00
|
|
|
util_task.cpp
|
2016-06-03 23:29:13 +00:00
|
|
|
util_thread.cpp
|
2011-04-27 11:58:34 +00:00
|
|
|
util_time.cpp
|
2011-11-08 20:27:37 +00:00
|
|
|
util_transform.cpp
|
2016-06-03 23:29:13 +00:00
|
|
|
util_windows.cpp
|
2011-11-08 20:27:37 +00:00
|
|
|
)
|
2011-05-01 10:00:21 +00:00
|
|
|
|
2013-08-30 17:34:27 +00:00
|
|
|
if(WITH_CYCLES_STANDALONE AND WITH_CYCLES_STANDALONE_GUI)
|
2011-11-08 20:27:37 +00:00
|
|
|
list(APPEND SRC
|
|
|
|
util_view.cpp
|
|
|
|
)
|
2011-08-16 16:15:34 +00:00
|
|
|
endif()
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
set(SRC_HEADERS
|
2011-04-27 11:58:34 +00:00
|
|
|
util_algorithm.h
|
2015-02-14 12:29:47 +00:00
|
|
|
util_aligned_malloc.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_args.h
|
2014-12-02 10:36:44 +00:00
|
|
|
util_atomic.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_boundbox.h
|
|
|
|
util_debug.h
|
2016-02-06 22:40:41 +00:00
|
|
|
util_guarded_allocator.cpp
|
2011-11-10 06:05:22 +00:00
|
|
|
util_foreach.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_function.h
|
2016-02-06 22:40:41 +00:00
|
|
|
util_guarded_allocator.h
|
2014-01-15 14:29:22 +00:00
|
|
|
util_half.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_hash.h
|
|
|
|
util_image.h
|
2016-11-17 11:13:22 +00:00
|
|
|
util_image_impl.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_list.h
|
2014-09-08 12:01:24 +00:00
|
|
|
util_logging.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_map.h
|
|
|
|
util_math.h
|
2015-10-26 14:20:40 +00:00
|
|
|
util_math_cdf.h
|
2015-01-30 12:56:47 +00:00
|
|
|
util_math_fast.h
|
2017-03-23 11:47:27 +00:00
|
|
|
util_math_intersect.h
|
2017-04-14 12:05:23 +00:00
|
|
|
util_math_float2.h
|
|
|
|
util_math_float3.h
|
|
|
|
util_math_float4.h
|
|
|
|
util_math_int2.h
|
|
|
|
util_math_int3.h
|
|
|
|
util_math_int4.h
|
2017-05-07 12:40:58 +00:00
|
|
|
util_math_matrix.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_md5.h
|
|
|
|
util_opengl.h
|
2014-01-14 19:39:21 +00:00
|
|
|
util_optimization.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_param.h
|
|
|
|
util_path.h
|
|
|
|
util_progress.h
|
2015-12-02 11:19:39 +00:00
|
|
|
util_queue.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_set.h
|
2013-12-27 20:30:03 +00:00
|
|
|
util_simd.h
|
2016-02-13 12:40:48 +00:00
|
|
|
util_sky_model.cpp
|
|
|
|
util_sky_model.h
|
|
|
|
util_sky_model_data.h
|
2016-10-12 11:03:15 +00:00
|
|
|
util_avxf.h
|
2014-06-13 19:13:18 +00:00
|
|
|
util_sseb.h
|
|
|
|
util_ssef.h
|
|
|
|
util_ssei.h
|
2016-03-30 08:54:35 +00:00
|
|
|
util_stack_allocator.h
|
2016-08-11 07:52:39 +00:00
|
|
|
util_static_assert.h
|
2012-12-04 14:43:42 +00:00
|
|
|
util_stats.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_string.h
|
|
|
|
util_system.h
|
Cycles: merging features from tomato branch.
=== BVH build time optimizations ===
* BVH building was multithreaded. Not all building is multithreaded, packing
and the initial bounding/splitting is still single threaded, but recursive
splitting is, which was the main bottleneck.
* Object splitting now uses binning rather than sorting of all elements, using
code from the Embree raytracer from Intel.
http://software.intel.com/en-us/articles/embree-photo-realistic-ray-tracing-kernels/
* Other small changes to avoid allocations, pack memory more tightly, avoid
some unnecessary operations, ...
These optimizations do not work yet when Spatial Splits are enabled, for that
more work is needed. There's also other optimizations still needed, in
particular for the case of many low poly objects, the packing step and node
memory allocation.
BVH raytracing time should remain about the same, but BVH build time should be
significantly reduced, test here show speedup of about 5x to 10x on a dual core
and 5x to 25x on an 8-core machine, depending on the scene.
=== Threads ===
Centralized task scheduler for multithreading, which is basically the
CPU device threading code wrapped into something reusable.
Basic idea is that there is a single TaskScheduler that keeps a pool of threads,
one for each core. Other places in the code can then create a TaskPool that they
can drop Tasks in to be executed by the scheduler, and wait for them to complete
or cancel them early.
=== Normal ====
Added a Normal output to the texture coordinate node. This currently
gives the object space normal, which is the same under object animation.
In the future this might become a "generated" normal so it's also stable for
deforming objects, but for now it's already useful for non-deforming objects.
=== Render Layers ===
Per render layer Samples control, leaving it to 0 will use the common scene
setting.
Environment pass will now render environment even if film is set to transparent.
Exclude Layers" added. Scene layers (all object that influence the render,
directly or indirectly) are shared between all render layers. However sometimes
it's useful to leave out some object influence for a particular render layer.
That's what this option allows you to do.
=== Filter Glossy ===
When using a value higher than 0.0, this will blur glossy reflections after
blurry bounces, to reduce noise at the cost of accuracy. 1.0 is a good
starting value to tweak.
Some light paths have a low probability of being found while contributing much
light to the pixel. As a result these light paths will be found in some pixels
and not in others, causing fireflies. An example of such a difficult path might
be a small light that is causing a small specular highlight on a sharp glossy
material, which we are seeing through a rough glossy material. With path tracing
it is difficult to find the specular highlight, but if we increase the roughness
on the material the highlight gets bigger and softer, and so easier to find.
Often this blurring will be hardly noticeable, because we are seeing it through
a blurry material anyway, but there are also cases where this will lead to a
loss of detail in lighting.
2012-04-28 08:53:59 +00:00
|
|
|
util_task.h
|
2016-04-15 21:01:20 +00:00
|
|
|
util_texture.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_thread.h
|
|
|
|
util_time.h
|
|
|
|
util_transform.h
|
|
|
|
util_types.h
|
2017-04-13 17:34:45 +00:00
|
|
|
util_types_float2.h
|
|
|
|
util_types_float2_impl.h
|
|
|
|
util_types_float3.h
|
|
|
|
util_types_float3_impl.h
|
|
|
|
util_types_float4.h
|
|
|
|
util_types_float4_impl.h
|
|
|
|
util_types_int2.h
|
|
|
|
util_types_int2_impl.h
|
|
|
|
util_types_int3.h
|
|
|
|
util_types_int3_impl.h
|
|
|
|
util_types_int4.h
|
|
|
|
util_types_int4_impl.h
|
|
|
|
util_types_uchar2.h
|
|
|
|
util_types_uchar2_impl.h
|
|
|
|
util_types_uchar3.h
|
|
|
|
util_types_uchar3_impl.h
|
|
|
|
util_types_uchar4.h
|
|
|
|
util_types_uchar4_impl.h
|
|
|
|
util_types_uint2.h
|
|
|
|
util_types_uint2_impl.h
|
|
|
|
util_types_uint3.h
|
|
|
|
util_types_uint3_impl.h
|
|
|
|
util_types_uint4.h
|
|
|
|
util_types_uint4_impl.h
|
|
|
|
util_types_vector3.h
|
|
|
|
util_types_vector3_impl.h
|
2011-04-27 11:58:34 +00:00
|
|
|
util_vector.h
|
2016-03-30 23:13:13 +00:00
|
|
|
util_version.h
|
2012-12-04 14:43:42 +00:00
|
|
|
util_view.h
|
2016-02-05 08:09:39 +00:00
|
|
|
util_windows.h
|
2011-11-08 20:27:37 +00:00
|
|
|
util_xml.h
|
|
|
|
)
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
include_directories(${INC})
|
2012-09-20 09:04:43 +00:00
|
|
|
include_directories(SYSTEM ${INC_SYS})
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2014-10-07 20:46:19 +00:00
|
|
|
add_definitions(${GL_DEFINITIONS})
|
|
|
|
|
2011-11-08 20:27:37 +00:00
|
|
|
add_library(cycles_util ${SRC} ${SRC_HEADERS})
|