Houdini 20.5 Nodes Copernicus nodes

Bokeh Copernicus node

Creates a Bokeh effect by expanding each pixel by an aperture shape.

On this page

This node produces a Bokeh effect by spreading each pixel’s color out over the provided aperture shape. This simulates the light from that pixel being spread by the lens over a region of the camera film.

Unlike blurs where a pixel is usually given the value of surrounding pixels according to that pixel’s blur scale, this spreads the light out to other pixels according to the pixel’s scale.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

Bokeh Map Filter

The aperture map can be filtered to give a higher quality Bokeh effect.

See Filters for more information.

Mask

The amount of the new value to mix in with the original value. Higher values mix in more of the new value. Lower values mix in less of the new value. You can also set the RGBA channels to which you apply the effects of this node.

The default value is 1, which means this node uses only the new value. See Mask for more information.

Toggle RGB

Turns the Red, Green, and Blue channels on and off.

Red (default)

Applies this node’s effects to the Red channel.

Green (default)

Applies this node’s effects to the Green channel.

Blue (default)

Applies this node’s effects to the Blue channel.

Alpha (default)

Applies this node’s effects to the Alpha channel.

Radius

The maximum radius of the bokeh effect, in pixels. This can be expensive for a large radius as a lot of scattering has to be done.

Bokeh Gain

The aperture mask is normalized so the Bokeh doesn’t change the total brightness, but it can be useful to boost the result to gain or lose total luminance.

Bokeh Resolution

The aperture layer is resampled to this resolution. This speeds up filtering of the aperture layer, ensuring high resolution apertures cause issues.

Inputs

source

The image to apply an bokeh effect to.

aperture

An optional mono mask providing the shape to spread pixels into. For example, a white star causes the bokeh to appear star-like. If not provided, a circular bokeh is used.

radiusscale

An optional per-pixel scale of the bokeh size. This is clamped to 1 to avoid excessive computations.

mask

An optional per-pixel mask amount that’s scaled by the Mask parameter.

Outputs

bokeh

The final bokeh effect.

See also

Copernicus nodes