01_user_documentation:03_interacting_with_groimp:02_panels:19_assets_libraries:02_spectrallight
Differences
This shows you the differences between two versions of the page.
| 01_user_documentation:03_interacting_with_groimp:02_panels:19_assets_libraries:02_spectrallight [2026/09/22 13:51] – created Tim | 01_user_documentation:03_interacting_with_groimp:02_panels:19_assets_libraries:02_spectrallight [2026/09/22 14:09] (current) – Tim | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Spectral Light ====== | ====== Spectral Light ====== | ||
| - | provided by the plugin LightLibrary | + | //provided by the plugin LightLibrary// |
| - | This library provides predefined SPD files for light sources. | + | This library provides predefined SPD files for light sources. |
| + | {{ : | ||
| + | |||
| + | ====== Functionalities ====== | ||
| + | |||
| + | From the panel it is possible to use the following functions on a selected spectral: | ||
| + | |||
| + | * __add as map__: to add a SpectralLightNode to the [[01_user_documentation: | ||
| + | * __add as light source__: to add as a light source to the [[01_user_documentation: | ||
| + | * __add to scene__: to create a lightNode with a light source with the spectral as input and add it to the current scene | ||
| + | * __apply__: apply on a selected object if possible (if the object is a light Node, or a light source). If the current light source of this object is not spectral it will be used as light input on the spectral Light | ||
| + | * __Light Sources__: open the Light explorer | ||
| + | |||
| + | |||
| + | ====== RGG usage ====== | ||
| + | |||
| + | |||
| + | To use this SPD through RGG code a set of functions can be used: | ||
| + | |||
| + | to get a SPD: | ||
| + | |||
| + | <code java> | ||
| + | spdLib(" | ||
| + | </ | ||
| + | |||
| + | to get a SpectralLightMapNode object: | ||
| + | |||
| + | <code java> | ||
| + | spectralMapLib(" | ||
| + | </ | ||
| + | |||
| + | to get a SpectralLight object. | ||
| + | |||
| + | <code java> | ||
| + | spectralLightLib(" | ||
| + | </ | ||
| + | |||
| + | to get a SpectralLight with a PhysicalLight as a source (see Spectral library). | ||
| + | <code java> | ||
| + | spectralPhysicalLightLib(High-PressureSodium(HPS)," | ||
| + | </ | ||
| + | |||
| + | A simple working example could be: | ||
| + | |||
| + | <code java> | ||
| + | protected void init () | ||
| + | [ | ||
| + | Axiom ==> LightNode().(setLight(spectralLightLib(" | ||
| + | ] | ||
| + | </ | ||
01_user_documentation/03_interacting_with_groimp/02_panels/19_assets_libraries/02_spectrallight.txt · Last modified: by Tim
