Blender Git Loki

Git Commits -> Revision 3e9947c

Revision 3e9947c by Antonis Ryakiotakis (master)
March 19, 2015, 14:18 (GMT)
Depth of field high quality:

A new checkbox "High quality" is provided in camera settings to enable
this. This creates a depth of field that is much closer to the rendered
result and even supports aperture blades in the effect, but it's more
expensive too. There are optimizations to do here since the technique is
very fill rate heavy.

People, be careful, this -can- lock up your screen if depth of field
blurring is too extreme.

Technical details:

This uses geometry shaders + instancing and is an adaptation of
techniques gathered from

http://bartwronski.com/2014/04/07/bokeh-depth-of-field-going-insane-

http://advances.realtimerendering.com/s2011/SousaSchulzKazyan%20-
%20in%20Real-Time%20Rendering%20Course).ppt

TODOs:

* Support dithering to minimize banding.
* Optimize fill rate in geometry shader.

Commit Details:

Full Hash: 3e9947c4d4714a4752c768bb78fe6d227fc6be97
Parent Commit: 9304887
Lines Changed: +981, -288

3 Added Paths:

/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl (+166, -0) (View)
/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_geo.glsl (+50, -0) (View)
/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_vert.glsl (+58, -0) (View)

11 Modified Paths:

/intern/cycles/blender/addon/ui.py (+4, -1) (Diff)
/release/scripts/startup/bl_ui/properties_data_camera.py (+3, -0) (Diff)
/source/blender/gpu/CMakeLists.txt (+6, -0) (Diff)
/source/blender/gpu/GPU_compositing.h (+7, -2) (Diff)
/source/blender/gpu/GPU_extensions.h (+9, -4) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_compositing.c (+515, -248) (Diff)
/source/blender/gpu/intern/gpu_extensions.c (+135, -32) (Diff)
/source/blender/gpu/intern/gpu_simple_shader.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_gpu_types.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+24, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021