Page History
This page provides information about Light Path Expressions.
Overview
...
Section | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Scene Setup
...
The scene setup is similar to the Light Select workflow. As LPEs are a mode of the Light Select render element, the expression will capture captures contributions of the light(s) added to the Light Select set. If the Light Select is empty, the expression will capture captures contributions for all scene lights.
LPEs also allow extracting information from the environment, for example allow , capturing the GI that comes from the environment only. This does not require adding lights to the Light Select set.
...
For example, if you need to capture GI that bounced off of one object onto another, the light will travel from the light , onto the object that casts GI, then onto the object that receives GI, and end at the camera. But in LPEs, just like in ray tracing, the expression will be in reverse, starting from the camera, asking for what object receives GI, then what object casts the GI and end at the light source.
LPE Symbols
...
The LPE alphabet consists of the symbols representing a ray event/type and additional regular expression symbols (“.”, “+”,“*”, “<”, “>”, “[“, “]”, “|”, “?”, “^” and additional label strings).
A valid expression starts from the camera (C), captures ray spawn and scattering events, and ends at light (L), emissive object (O), or the environment (B).
Ray spawn events other than C or V can be combined with scattering types (e.g. <RD> - capture only diffuse reflection) to get a more specific ray event, or they can be used directly (e.g. R - capture reflections of any scattering type. This is also equivalent to <R.>)
Ray termination events can also be combined with each other when you want to capture the contribution of a light together with emissive objects, e.g. , C<RD>.*[LO] will capture the GI coming from lights or emissive objects.
See a full list of LPE Symbols below:
UI Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Presets
...
A number of presets are available for Light Path Expressions.
There are preset equivalents to already available render elements (like Beauty, Lighting, GI, Light Select types, etc).
The Misc and masking presets are useful in common-use cases.
Any preset can be used as a starting point for building other expressions, and like any LPE, they can be combined with boolean operations.
UI Expand | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
|
Boolean operations
...
Boolean operations allow us to combine expressions. We can complement (^), intersect (&), or unite (|) expressions, or we can subtract (-) one expression from another.
Boolean operations can also be very useful in a number of scenarios to simplify the compositing workflow.
UI Expand | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||
|