Scene Settings Dialog - Environment
The Environment page of the Scene Settings dialog:
Export Environment Settings
Indicates whether the settings on this page should be exported.
Most of the settings on the Environment page will be reflected in real-time in the OgreMax viewports, but the shadow texture size and count are not. If those values are modified and there is at least one OgreMax scene viewport open, this button will be enabled so that the values can be updated without having to close the Scene Settings dialog.
Ambient Light Color
The ambient light color may be separate from Maya, synchronized to Maya, or copied from Maya. The Maya ambient lighting is defined by adding a single Ambient Light:
The background color may be separate from Maya, synchronized to Maya, or copied from Maya. The Maya background color is unique for each view, defined in the view's camera attributes. The camera for the currently active view is used when synchronizing.
The environment range is used in calculating environmental effects such as fog.
- Near Distance - The near distance relative to the camera. This setting is not used directly by OgreMax, but it is exported in case an application needs it.
- Far Distance - The far distance relative to the camera.
- Far Box Object - If specified, references an object (typically a box) that bounds the environment far range.
- Mode - The fog mode.
- Start/End - The fog range, as a fraction of the environment far distance.
- Color - The fog color.
The fog settings may be separate from Maya, synchronized to Maya, or copied from Maya. In order to synchronize the values to or from Maya, an Environment Fog material must first be created in the Maya Hypershade editor.
The following settings are handled by OgreMax:
- Color - The fog color.
- Saturation Distance - The fog distance. This value is clamped to be no greater than the OgreMax Scene Environment far distance.
- Technique - The shadow technique.
- Self Shadow - Indicates whether self shadowing is allowed.
- Depth Texture - Indicates whether the texture(s) created for shadowing should be depth textures.
- Color - The shadow color.
- Far Distance - The distance beyond which no shadows are displayed.
- Camera Type - The shadow texture camera type.
- Plane Object - The plane used by the 'Plane Optimal' camera type.
- Texture Size - The dimensions of the shadow textures.
- Texture Count - The number of shadow textures. This number corresponds to the number of shadow-casting lights.
- Texture Offset - An offset used with directional lights to improve the shadow quality.
- Fade Start/End - The range over which shadows are gradually faded out.
- Caster Material - The default material used to draw objects into the shadow texture.
- Receiver Material - The default material used to apply shadows on objects.