GLOBAL
Prev | Chapter 3. XML elements and attributes | Next

## GLOBAL

### Description

Level: 2nd

Global setting of the movie such as light, mouse, and view. Some parameters of this element are inherited to the scene local setting.

### Parent Elements

WMXML

### Child Elements

ATOM, BOND, RIBBON, COIL, SHAPE, OBJ3D, LABEL, CAMERA, PROTECT, WHEEL, MATRIX, RADIUS, AUTOSCALE

ATOM, BOND, RIBBON, COIL, SHAPE, OBJ3D, LABEL elements are the default setting of these primitives. The settings such as color, radius here define the global default. Setting here is used as the default in all the SCENEs.

### Attributes

light (type:Point3D) = "-1 1 -1"

  Direction of light. Only one directional light is available in wm3d. The inputted direction will be automatically normalized.

arrate (type:Float) = "1.5"

  The rate of automatic rotation in degree/frame. Set to 0 if you want to prevent automatic rotation.

framerate (type:Int) = ?

  The framerate of the flash movie. Default value is determined at the compilation.

play (type:Int) = 0

  After loading scene, scenes are played forward or backward for positive or negative value, respectively. If there is only one scene, this attribute does not make sense.

  You can start playing by typing "p"(forward) or "P"(backward) without setting this option.

  Even when this value is 0, the scenes are automatically played once while loading scenes. To prevent this playing while loading function, set readbackground attribute below.

playrate (type:Float) = 3.0

  The framerate of play. The value means number of the frames (at most) played in a second.

readbackground (abbr.:bgread,readbg) (type:Void)

  If this parameter is set to any value, wm3d does not play scenes during loading them. Parameter to this attribute is simply ignored, though you must give dummy parameter. If there is only one scene, this attribute does nothing.

Prev | Up | Next
Chapter 3. XML elements and attributes | Home | CAMERA