LightWave 2018

Page tree
Skip to end of metadata
Go to start of metadata

Portals

This example can be tried here: LightPortals.zip

For copyright reasons, a gradient has replaced the HDR image for this scene. The effect is more interesting with a proper HDR image.


Area and NGon lights can be used as portals. Portal lights are guides placed in indoor scenes that help the renderer to concentrate environment lighting through openings like small windows.

The circle showing the ray source and box for the portal are purely for illustrative purposes

Portal lights need an environment to work with - Image World, Textured Environment, gradient backdrop or similar. While portals can add time to renders they also bring a lot of extra detail and color that is lost when just using a light.

This scene is lit purely by the HDR image in the background coming through the window. The Area light in the window is set at 1lx but is not rendering.

The same scene, with the same light, but now rendering with Normalize turned off, and Portal turned on. The increase in detail and color, and reduction in noise,  for the interior of the room is excellent considering the little extra rendering time. The two scenes are available in the content to try for yourself.


The reason for turning Normalize off when using a portal light is that the color and intensity are coming from the backdrop environment rather than a localized light source. As such, the size of the portal has no bearing on the quality of light coming through the opening and so Normalize should be turned off when Portal is engaged.

If portal lights are sampling a background, your surfaces don't need to be and neither do your radiosity settings. In the Surface Editor Shading Model tab, make sure Reflection Options and Refraction Options are set to Raytrace Only. In the Global Illumination Settings Sample Backdrop should not be checked.

If your scene has multiple lights, or large openings for light to come in from the environment, using a portal is not necessary - it can unnecessarily slow down rendering and even create additional noise. Equally, complex material networks will benefit from direct lighting rather than the additional computation necessary for portals. Finally, if you have several small openings on a wall, consider using a single portal that spans them all instead of multiple portals that can increase render setup time.