Lights 2.1

Category / Domain : C3D3 Plugin
SCOL Voy@ger Compatibility : V 3.2 or above
Update : 2000/06

Function

This plugin is used to add or delete light sources. The light model is the following: the level of lights varies between 0 and 63: 0 is black, 31 is true color, 63 is white (saturated). There is a base level for the light: 31. This means that for each polygon and for each light, the level of light will be calculated by adding or subtracting the values from their base value. The user can activate these light sources using a button (Button module, for example).
This plugin can be on-line edited using the DynEditor plugin.

Configuration


Figure 1 : Lights plugin interface

(1) : Type =>

Type Application Luminosity
LIGHT_AMBIENT This will affect the whole cell, as LightBase does. Baselight + a
LIGHT_PARA This is a parallel light. Baselight + a ( Where is the light source)
Baselight + a - b (At the back extremity of the light)
Baselight + a + b (In the front extremity of the light)
LIGHT_OMNI This light will produce the effect of a light bulb or a sphere. Baselight + a + b (where is the light source)
Baselight + a ( p1 cm from the light source)
LIGHT_SPOT This will produce The effect of a projector. Baselight + a + b (where is the light source)
Baselight + a (p1 cm from the light source)

(2) : a => numeric value

(3) : b => numeric value

(4) : p1 => Distance in cm

(5) : p2 => Distance in cm

(6) : p3 => Distance in cm

(7) : init state => Initializes or not the Lights plugin when the instance is launched.

Implementation

Action Function
module.event à C3D3.instance.switch Triggers the Lights instance :simulates a switch.

Event Function

Zone Function Interface Assignment
None