Adding reflections

The geometry may contain reflective parts / materials. The default reflection is the sky, like with the landscape. For indoor scene, this may not be suitable. NDunes allows to define custom reflections by using reflection probes. They are objects added to the geometry and defining a bounding volume where environment maps can be computed.

To create a new reflection probe, click on the toolbar button:

The geometry reflections panels

A probe is composed of:

There are two types of reflection probe:

Your browser does not support the HTML5 canvas tag.

Sphere vs. box probe reflection on a mirror floor

The reflection probe panel exposes properties like:

The first button at the bottom of the panel draws the reflection probe gizmos in the geometry in the viewpoint (very useful to define the volume by visualizing it). The second button sets the sun position at the moment where the reflections were computed in case of a static reflection.

Once all the parameters have been setup correctly, it's time to generate the reflection cubemaps. A single button does the job in the geometry toolbar.

Compute the reflections

All the generated reflection maps of a geometry are saved in a single .red file. This file can be set in the Reflection file property on top of the geometry panel.


To simulate multiple reflection bounces, like a mirror looking at another mirror, the cubemap can be generated multiple times in a row.