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.
Update Viewports
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.
Colors
- Background - The background color. This color may be separate from 3DS Max, synchronized to 3DS Max, or copied from the 3DS Max Environment settings.
- Ambient Light - The ambient light color. This color may be separate from 3DS Max, synchronized to 3DS Max, or copied from the 3DS Max Environment settings.
Environment Range
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.
Fog
- 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 3DS Max, synchronized to 3DS Max, or copied from the 3DS Max environment settings. In order to synchronize the values to or from 3DS Max, fog must first be enabled within the 3DS Max Environment settings.
The 3DS Max Environment settings are accessed through the Rendering Menu.
A Fog atmospheric effect should be added.
The Type must be set to 'Standard'.
The following settings are handled by OgreMax.
- Color - The fog color.
- Near % - The environment near distance percentage. This is relative to the OgreMax Scene Environment far distance.
- Far % - The environment far distance percentage. This is relative to the OgreMax Scene Environment far distance.
Shadows
- 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.
Shadow Texture
- 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.