Portal Material
The OctaneRender® Portal material is used to optimize the rendering of light sources in interiors by helping the render kernel find important light sources in the scene. For example, interior scenes illuminated by an outside light source that comes through windows can be difficult for the path tracer to optimize the light as it enters the interior environment. To help the path tracer find these light sources, polygonal planes can be placed outside the window, with a Portal material assigned to the plane.
The image below consists of a room with a small, single window. This would be a difficult scene to light with a sun/sky or HDRI file with no lighting on the room’s interior. A single plane is placed over the window (highlighted in blue) with the normal for the plane facing into the room (the small yellow line). A Portal material will be applied to this plane.
To create a Portal material, go to _Live Viewer > Materials > Create** **_menu and select Octane Portal Material. A new Portal material will be placed into the Material manager.
Portal materials work best when every window or opening in the environment is covered by a portal plane. It will not work if only one window has a portal over it when all other windows do not have a portal over them. The normal direction of the portal plane should be facing inwards towards the interior, or the scene will not render properly. Don’t block portal planes with other geometry like glass surfaces. Objects with the Portal material are invisible in the rendering.
Portal planes should have very few polygons. A few simple rectangular planes are best, as complex geometry used for portal planes can slow down rendering. It is possible to use a single piece of portal geometry to cover several openings such as multiple windows on a single wall. However, if the geometry is too large, that can reduce rendering efficiency. It’s important to strike a balance between an opening’s coverage and the size of the geometry that uses the Portal material.
| NOTE
Use Portal materials only with the Pathtracing and PMC kernels, as Portals will not work when rendering with the Direct Light kernel. | | —- |
The two images below show the rendering results with and without a Portal material. The scene shows a glass sphere rendered in a room lit by light coming through a window. The scene is rendered using 500 samples. The first image does not have a portal plane placed over the opening, and it is noisier than the second image, which does have a portal plane.