Post-processing Puzzles Reference — Soft8Soft
Description: How to enable bloom, DOF, grayscale, SSR and other post-processing effects with Verge3D Puzzles.

# Post-processing Puzzles

These puzzles are used to setup various post-processing effects.

For usage example, check out the Postprocessing demo (source files available in the Asset Store).

Post-processing puzzles does not yet supported inside AR/VR sessions.

## Contents

- Live Preview
- Puzzles Reference
  - afterimage
  - bloom
  - brightness/contrast
  - depth of field
  - grayscale
  - simple refraction
  - screen space reflection/refraction
  - remove post-effects

#

## Live Preview

The post-processing puzzles support the live preview feature. With live preview enabled, you can tweak the post-processing effects and get the result in the Puzzles viewport without the need to run or save/reload your puzzles.

Live preview feature is enabled by default and supported when there are no inputs connected to your puzzle:

#

## Puzzles Reference

#

### afterimage

Enable or change parameters of the afterimage (motion blur) effect.

Parameters:

- level — image smearing factor.

#

### bloom

Enable or change parameters of the bloom effect.

Parameters:

- threshold — minimum lighting intensity to render the bloom effect.
- strength — bloom strength.
- radius — bloom blur radius.

#

### brightness/contrast

Allows for tweaking brightness and contrast of the rendering.

Parameters:

- brightness — image brightness factor.
- contrast — image contrast factor.

#

### depth of field

Enable or change parameters of the depth of field (DOF) effect.

Parameters:

- focus — DOF focus distance.
- aperture — camera aperture factor.
- maxblur — DOF blur radius.
- depth leak threshold — threshold to eliminate DOF distance artifacts.

#

### grayscale

Enables the grayscale effect.

#

### simple refraction

Enables a simple refraction effect for a specified material.

Parameters:

- material — material used to assign the effect to.
- distance — maximum length of the refracted ray.
- render after refraction — object(s) to be excluded from the normal rendering queue and to be rendered after the refraction effect is applied.

For usage example, check out the Ring demo (source files available in the Asset Store).

#

### screen space reflection/refraction

Enables screen space reflection/refraction (SSR) effect.

Parameters:

- for material(s) — material used to assign the effect to.
- steps — number of depth search steps along the reflected/refracted ray (higher value = better quality, lower performance).
- max distance — maximum length of the reflected/refracted ray.
- resolution — resolution multiplier for the depth buffer (from 0 to 1; 1 = best quality).
- stride — stride of search steps (in pixels) (higher value = lower quality, better performance, 1 pixel = max quality).
- binary search steps — number of binary search iterations (higher value = better quality, lower performance).
- jitter — noise factor to improve depth search (from 0 to 1).
- render after ssr — objects to be rendered after SSR applied.

Setting up the params for this puzzle's refraction mode can be tricky. When configuring it, make sure:

1. the steps and max distance params are high enough
2. the stride param is quite low (preferably set to 1)
3. materials you configure the refraction effect for are transmissive
4. these materials have a quite low IOR ratio (<1.5)

For usage example, check out the Jewelry Configurator demo (source files available in the Asset Store).

#

### remove post-effects

Removes post-processing effects. The puzzles mode removes all effects except outline and ambient occlusion, which is assigned in the modelling suite.

## Having Troubles with Puzzles?

Seek help on the forums!