MVL files are specific to Model Editor. They are only used to view models under different lighting conditions. You can create, load, save, and configure them as required, but they are only used in Model Editor. World Editor uses XML files to describe lights.
Mentioned in document Content Tools Reference Guide's section Model Editor → Panel summary → Materials Settings panel.
The grammar for the MVL light configuration files is described below:
<root> <Lights> +<Light> ?<Type> [Ambient|Directional|Omni|Spot|Empty] </Type> ?<Color>float
float
float
</Color> ?<Enabled> [true|false] </Enabled> <! If Type != Ambient > <Location>float
float
float
</Location> <! If Type = Directional or Type = Spot > ?<Orientation>float
float
float
</Orientation> <! If Type = Omni or Type = Empty > ?<Full_Radius>float
</Full_Radius> ?<Falloff_Radius>float
</Falloff_Radius> <! If Type = Spot > ?<Cone_Size>float
</ConeSize> </Light> </Lights> </root>
Grammar of MVL light configuration file
The list below describes the tags in the MVL light configuration file:
-
Color (Available for Ambient, Directional, Omni, and Spot)
Colour of the light,
-
Cone_Size (Available for Spot)
Size of the cone of light generated by spot light.
-
Enabled (Available for Ambient, Directional, Omni, and Spot)
Boolean specifying if light is activated.
-
Falloff_Radius (Available for Omni)
Total area influenced by light.
Must be greater than Full_Radius.
-
Full_Radius (Available for Omni)
Area over which the light will be at full intensity.
-
Light
Section containing settings for a specific light.
-
Lights
Section containing definition of one or more Light sections.
-
Location (Available for Directional, Omni, and Spot)
Point of origin for the light.
-
Orientation (Available for Directional and Spot)
Direction at which light will be projected.
-
Type
Type of light being set. Possible values are:
-
Ambient — Covers entire scene with omnidirectional light.
-
Directional — Allows you to direct a wide area of radiance at a particular area or object.
-
Omni — Radiates from a three-dimensional point, giving more control over the concentration of light in certain areas.
-
Spot — Produces a small, concentrated, and directed source of light.
-
Empty — Defaults to Omni.
-