Search Results for

    Show / Hide Table of Contents

    Reflections

    Reflections

    One of the key aspects in bringing realism into your scenes is creating a proper reflection environment. Many materials like metals, marbles or shiny plastics rely on having reflections in all directions. Flax Engine offers a wide variety of features to setup scenes for reflections.

    Environment Probes

    Environment Probe

    The best way to add reflections into your scene is to use an Environment Probe actor. It's a dedicated object that captures the scene around its origin and creates a 360-degree cubemap that is later used to calculate per-pixel reflections on materials.

    Reflection probes should generally be placed at strategic points, where the appearance of a reflective object would change noticeably (eg. tunnels, areas near buildings and places where the ground colour changes). When a reflective object passes near a probe, the reflection sampled by the probe can be used for the object’s reflection map. Furthermore, when several probes are nearby or even overlap, Flax can interpolate between them to allow for gradual changes in reflections. Thus, the use of reflection probes can create quite convincing reflections with acceptable processing overhead.

    To learn more about placing and using environment probes see this dedicated page.

    DDGI Reflections

    DDGI Reflections

    When using Realtime Global Illumination change Reflections mode to DDGI in Post Process Settings (in Graphics Settings or on PostFX Volume) to enable realtime rough reflections from automatically placed probes.

    Those probes are reusing results from indirect diffuse lighting radiance raytracing but convolve traces into radiance that is stored at 14x14 resolution per-probe (octahedral mapping). Output reflections are lower quality than Environment probes but are far more scalable and provide dynamic reflections by default. Average scene can utilize for example 50,000 probes at memory cost of 49MB of VRAM. Performance overhead varies on resolution, scene and GPU but is usually rather small: 0.5ms - 0.9ms (RTX 2080Ti).

    Debug view of DDGI Specular probes:

    DDGI Specular Probes

    Note

    To preview reflection probes, enable Global Illumination Debug View mode and edit DDGIDebugProbes material (in engine) to use #define DEBUG_MODE 2 (inside Custom Global Code node).

    Screen Space Reflections

    Screen Space Reflections

    Using environment probes may be very limited, and in many situations objects may suffer from invalid reflection color. For those situations, using the Screen Space Reflections (SSR) effect helps with creating realistic local reflections. This effect is rendered in screen space, which means only objects that are already on the screen can be reflected (it doesn't work for offscreen or obscured objects).

    This means SSR works well in enclosed areas such as corridors and rooms, but less well in open spaces, where you'd expect more of the world to be reflected. They also work best on bumpy surfaces, which hide imperfections in reflections, and less well on very glossy, mirror-like surfaces. Missing reflections are noticeable in mirrors, for example. As a fallback, values from existing Environment Probes are used for reflection color.

    To learn more about using Screen Space Reflections see the dedicated page.

    Visualizing

    Reflections Debug

    Flax Editor provides a built-in option to debug full scene reflections right inside the editor viewport. To do this, click the View widget and select the option Debug View -> Reflections Buffer. This will change the view mode. To revert choose Default option.

    Reflections Debug

    Note

    To learn more about Debug View and other debugging tools see the related page here.

    • Improve this Doc
    In This Article
    Back to top Copyright © 2012-2026 Wojciech Figat