Changes between Version 5 and Version 6 of XmlModelConfiguration
- Timestamp:
- Feb 18, 2011, 8:39:35 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XmlModelConfiguration
v5 v6 5 5 = XML configuration of visual_object based models = 6 6 7 The complete XML Configuration of a visual_Object is: 7 To visualize models, you can place visual_objects in teh scenery. 8 you have to specify the object name (=osg::Node Name), the tracking ID to allow easy tracking of the objects (currently, extLinkVCL can only transport numbers, so tracking by name is not possible - therfor a tracking ID was introduced). You can add a text label to the object, which is attached to the object. 9 10 The flag "dynamic" indicates if an updater should be created and added to the object. If no <updater> entry is found, this updater will be the default updater. Otherwise, the updater slots are reconfigured according to the XML values. If dynamic is "no", no updater class will be added, even if an updater is specified in the XML configuration section. 11 12 The XML Configuration of a complete visual_Object is: 8 13 {{{ 9 14 #!xml 10 <!-- Models can be loaded and placed in the scenery.11 - objectname: Name of the object to identify it in the scenegraph.12 - tracking ID: ID to manage which object should be tracked13 - label: text to label the model with.14 - dynamic: "yes" to add an standard updater to the model.15 -->16 15 <model objectname="TestObject" trackingid="1" label="TestText!" dynamic="no"> 17 16 <position lat="47.8123" lon="12.94088" alt="700.0"></position> … … 58 57 59 58 == Camera Offset == 60 To use the "Object mounted" camera manipulator, you have to define for yourwhat the camera coordinates relative to your visual_object are. You can define a rotational (in degree) und translational offset.59 To use the "Object mounted" camera manipulator, you have to define what the camera coordinates relative to your visual_object are. You can define a rotational (in degree) und translational offset. 61 60 62 61 The defition of the camera offset in the XML configuration file is: