Skip to content
Brian Wandell edited this page Sep 26, 2021 · 4 revisions

Controlling the scene lighting

Light sources are essential in the scene. They are managed by a separate slot in the recipe, and there are special methods for creating, adding, deleting, and modifying lights.

If you already have a recipe, you may need a few simple utilities

thisR.get('light print')              % List the lights
thisR.set('lights','delete','all');   % Clear all the lights
thisR.get('light',idx);               % Return the light structure of a particular index
thisR.get('light',lightName);         % If you know the name
piLightCreate('help');                % Lists all the valid types of lights
piLightCreate('list env lights');     % Lists the EXR files we have for environmental lights

Create

Environment (skymaps)

Environmental lights (meaning they surround the whole scene and are far away) are an important class.

Spot lights

Add a light to a recipe

Modify light properties

Clone this wiki locally