Scene settings (3Dscene)
Description
3Dscene it the module that allows the user to set the scene by adding some
options such as the base or the background color.
An example of a scene setting that could be obtained is shown in the
following screen shot:
Tree
The module is configurable with the options in the tree.
The following options are available:
-
Base
Allow to show or hide the base. When this option is selected
a toolbox is shown at the bottom of the tree. This toolbox is
explained latter.
-
Color
Change the base color.
-
Square
The base is divided into little squares drawn with alternated colors.
-
Lighted
Allow to illuminate or not the base. When the base is illuminated,
it reflects the lights as any object in the scene. Otherwise, the
base has a constant color.
-
Bitmaps
Allow replacing the uniform base color by a preloaded bitmap.
Other bitmaps can be loaded via the menu.
-
Light
These options allow setting the main light parameters. When one of these
options is selected, a toolbox is displayed at the bottom of the tree,
as explained latter.
-
Fixed
The light is fixed in the scene if this option is checked.
Otherwise the light is attached to the camera.
-
Ambient
Light ambient color. This color is generally gray.
-
Diffuse
Light diffuse color.
-
Specular
Light specular color.
-
Background
These options allow setting the scene background.
-
Color
Background uniform color of the scene.
-
3D environment
This list of options allows replacing the static uniform
background color by a dynamic cubmap that is able to rotate
with the scene. Other cubmaps could be loaded via the option
menu.
Toolbox
Some tree options are associated with the following toolbox:
-
Base
-
Altitude
Allow to change the base altitude. Altitude zero is on the
bottom most position in the scene.
-
Size
Size modification in percentage of the scene sphere diameter.
-
Tile
Change the number of squares in a squared base.
-
Opacity
Change the base opacity from 0 (transparent) to 100 (opaque).
-
Light
-
Shininess
Change the size of the specular.
-
Background
-
3D environment
-
Rotate
Allow to rotate the cubmap around the
scene in order to let the choice of the visible
cubmap portion from a given point of view.
Menu
Two menu entries are added in the Option menu:
-
Load a base
Allow to load a base bitmap of any supported image formats.
-
Load a 3D environment
Allow to load any cubmap. Six images must
be in the loaded for the six cubic faces; the names are
name-front.extension,
name-back.extension,
nane-top.extension,
name-bottom.extension,
nane-right.extension and
name-left.extension. Only one of them is needed
to be loaded.
Interaction
The base is an interactive 3D object. Its altitude and its size can
be changed by clicking its body with the ALT keyboard key pressed or
by double clicking and dragging the base.
A double-clic without dragging on the base restores its default size (120%
of the scene size) and its default position (immediately under the scene's
bottom most object).