[ Back to Geeks3D.com ]
 GeeXLab
Laboratory for Real Time 3D Programming (prototyping and demos) OpenGL, Lua, Python, GLSL, PhysX and more...Reference Guide XML Nodes
» Back to homepage
» Back to Developer's Guide Index
<gizmo> XML Node
<gizmo
name=""
render="TRUE"
auto_spin="FALSE"
>
<position
x="0.0"
y="0.0"
z="0.0"
>
</position>
<orientation
pitch="0.0"
yaw="0.0"
roll="0.0"
>
</orientation>
<spin_values
x="0.0"
y="0.0"
z="0.0"
>
</spin_values>
<add_child
name=""
>
</add_child>
</gizmo>
<gizmo>
The gizmo is an immaterial object which is used as a pivot point or a reference during animations.
It is very useful when developping complex scenes because it makes it possible to accurately visualize, for example,
the position of a particular point in the 3d environment. The gizmo is a traditional concept in most of
3d modeling softwares: it is often called helper or dummy object.
gizmo element has 3 attributes and 4 sub-element(s)
- name [STRING]: name of the gizmo
- render [BOOLEAN]: enables or disables rendering. - Default value = TRUE - Values = TRUE|FALSE
- auto_spin [BOOLEAN]: enables or disables the rotation around the local axis. The values of the rotation angles are specified with the spin_values element. - Default value = FALSE - Values = TRUE|FALSE
:
<gizmo name="gizmo01" render="TRUE" auto_spin="FALSE" >
<position x="0.0" y="10.0" z="0.0" />
<orientation pitch="0.0" yaw="0.0" roll="0.0" />
<spin_values x="0.0" y="0.0" z="0.0" />
</gizmo>
<position>
Specifies the gizmo's position.
position element has 3 attributes and 0 sub-element(s)
- x [REAL]: X position - Default value = 0.0
- y [REAL]: Y position - Default value = 0.0
- z [REAL]: Z position - Default value = 0.0
<orientation>
Specifies the gizmo's orientation.
orientation element has 3 attributes and 0 sub-element(s)
- pitch [REAL]: rotation angle in degrees around the X axis - Default value = 0.0
- yaw [REAL]: rotation angle in degrees around the Y axis - Default value = 0.0
- roll [REAL]: rotation angle in degrees around the Z axis - Default value = 0.0
<spin_values>
Specifies the auto-spin rotation angles around the X, Y and Z axis.
spin_values element has 3 attributes and 0 sub-element(s)
- x [REAL]: rotation angle in degrees around the X axis - Default value = 0.0
- y [REAL]: rotation angle in degrees around the Y axis - Default value = 0.0
- z [REAL]: rotation angle in degrees around the Z axis - Default value = 0.0
<add_child>
Allows to add a child to the current gizmo.
add_child element has 1 attributes and 0 sub-element(s)
- name [STRING]: name of the child
|