[[TracNav(TracNav/TOC)]]
[wiki:osgVisualConfiguration << Back to XML configuration overview]
= XML configuration of visual_object based models =
The complete XML Configuration of a visual_Object is:
{{{
#!xml
}}}
== Position & Attitute ==
To position the visual_object, you have to setup a location in latitude (in degree), logitude (in degree) and altitude. Additionally you have to specify it's attitude in degree.
{{{
#!xml
}}}
== Updater ==
To update certain properties of the visual_object, you can define an updater and configure the slot names which should be used for the updates.
The attributes in the XML entries are not values but names of the slots which content should be used for updating the visual_object every frame.
To skip updating of a certain value, leave the updatername emtpy.
The updater can be defined in the XML configuration file as followed:
{{{
#!xml
}}}
== Camera Offset ==
To use the "Object mounted" camera manipulator, you have to define for your what the camera coordinates relative to your visual_object are. You can define a rotational (in degree) und translational offset.
The defition of the camera offset in the XML configuration file is:
{{{
#!xml
}}}
== Geometry ==
You can load and display a 3D geometry to visualize the 3D object. You have to specify the filename with an relative or absolute path.
If the 3D model has the wrong orientation or wrong size, you can specify an offset rotation (in degree) or scale factors. Using a geometry as well as modifying it with offset or scalefactors is optional.
The XML configuration of an geometry entry in a visual object is:
{{{
#!xml
}}}
If you do not use a geometry, a visual_object is still usefull, e.g. for dynamic positioning and upating a text label or to attach the camera.