Related Softimage shader: Bokeh (mia)
"Bokeh" is a Japanese term meaning "blur", that is often used to describe how the out-of-focus regions in a photograph are perceived. The term Depth of Field (DOF) does not actually describe the blur itself, but the depth of the region that is in focus. The Bokeh shader is essentially a depth of field shader.
You can use this shader with an RGB Bokeh map to simulate chromatic aberration of the lens. Chromatic aberration is an artifact often seen when using low-end or wide angle lenses, and it is seen as "fringes" of color around the elements in an image. When using the Bokeh Lens shader, you will notice that you only get the chromatic aberration effect on the out-of-focus regions of the rendered image.
Name |
The name of the shader node displayed in the render tree. Enter any name you like, or leave the default. |
on |
Enables or disables the shader. |
plane |
The distance to the focal plane from the camera: a point at this distance from the camera is completely in focus. |
radius |
Radius of the circle of confusion. This is an actual measurement in scene units, and for a real-world camera this is approximately the radius of the iris (and it depends on the cameras f-stop). It is a good rule of thumb to keep it at a couple of centimeters in size (expressed in the current scene units), otherwise the scene may look unrealistic and be perceived as miniature. Keep in mind that a small radius of confusion creates a deeper depth of field effect, while a large radius of confusion creates a more shallow depth of field effect. |
samples |
Defines how many rays are shot. Fewer samples are faster to render, but produce grainier results. More samples are slower to render, but create smoother results. |
bias |
When Sampling Bias is 1.0, the circle of confusion is sampled as a uniform disk. Lower values push the sample probability towards the center, creating a "softer" looking DOF effect with a more "misty" look. Higher values push the sample probability towards the edge, creating a "harder" looking DOF effect where bright spots actually resolve as small circles. |
blade_count |
The blade count defines how many "edges" the circle of confusion has. A zero value makes it a perfect circle. |
blade_angle |
Sets the angle for the blade, which is expressed such that 0.0 is zero degrees and 1.0 is 360 degrees. |
use_bokeh |
Enables the use of a specific bokeh map. When enabled, the Sampling Bias, Blade Count and Angle parameters have no effect. The bokeh map defines the shape of the depth of field, so that a filled white circle on a black background is equivalent to the standard blur. Generally, you need more samples to accurately resolve a custom bokeh map. |
bokeh |
To apply your own bokeh map, add the image to the scene as a clip (Get > Clip > Create Clip From File), and then add it to the render tree from the Clips menu. Connect the new clip node to the bokeh input port to replace the noIcon_pic image. For more information about working with image clips and sources, see Managing Image Sources & Clips [Data Exchange]. |
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License