User Tools

Site Tools


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.

Link to this comparison view

01_user_documentation:03_interacting_with_groimp:02_panels:19_assets_libraries:02_spectrallight [2026/09/22 13:51] – created Tim01_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. 
  
 +{{ :01_user_documentation:03_interacting_with_groimp:02_panels:19_assets_libraries:spectral_light.png?direct&400 |}}
 +
 +====== 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:03_interacting_with_groimp:02_panels:02_explorers:14_light_spectra|Spectra explorer]] 
 +  * __add as light source__: to add as a light source to the [[01_user_documentation:03_interacting_with_groimp:02_panels:02_explorers:17_lightsources|]]
 +  * __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("LED Red (660 nm)"
 +</code>
 +
 +to get a SpectralLightMapNode object:
 +
 +<code java>
 +spectralMapLib("LED Red (660 nm)"
 +</code>
 +
 +to get a SpectralLight object.
 +
 +<code java>
 +spectralLightLib("LED Red (660 nm)"
 +</code>
 +
 +to get a SpectralLight with a PhysicalLight as a source (see Spectral library).
 +<code java>
 +spectralPhysicalLightLib(High-PressureSodium(HPS),"LED Red (660 nm)"
 +</code>
 +
 +A simple working example could be:
 +
 +<code java>
 +protected void init ()
 +[
 +  Axiom ==> LightNode().(setLight(spectralLightLib("LED Red (660 nm)")));
 +]
 +</code>
  
01_user_documentation/03_interacting_with_groimp/02_panels/19_assets_libraries/02_spectrallight.txt · Last modified: by Tim