Download EPD .Visualizer User Guide - John J. Jacobs

Transcript
EPD.Visualizer Textual Graphic File
Light Definitions
Light Definitions
There are three types of lights — directional, point, and spot. Directional lights are
defined in a section identified by the key words #DIRECTIONAL_LIGHT. Point
lights are defined in a section identified by the key words #POINT_LIGHT. Spot
lights are defined in a section identified by the key words #SPOT_LIGHT. You can
define any number of lights in a graphic file. Each light must have a unique name.
The following tables show the key words, allowable values and settings, and
defaults for the light definition attributes. Certain key words are optional; others
are required and indicated with (R). If you omit an allowed value or setting, the
default is used.
Table B-1 shows the directional light definition attributes.
Table B-1
Directional Light Definition Attributes
Key Words
Allowed Values/Settings
Defaults
name (R)
1-32 characters
none
color
color name or RGB values
white
switch
on or off
on
direction (R)
XYZ coordinates in decimal
values between 0 and 1
none
The following example shows the format for defining directional lights:
#DIRECTIONAL_LIGHT
name = dir_light1
color = white
switch = on
direction = 0.3 0.2 1.0
#END
B-8
EPD.Visualizer User Guide