Changeset 204 for osgVisual


Ignore:
Timestamp:
Jan 21, 2011, 10:48:18 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
osgVisual/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/bin/osgVisualConfig.xml

    r202 r204  
    4141    <animationpath filename="salzburg.path"></animationpath>
    4242    <models>
     43      <!-- Models can be loaded and placed in the scenerey.
     44        - filename: 3D model to load. Leave empty to use model without 3D model.
     45        - type: [plain] ? todo
     46        - label: text to label the model with.
     47        - dynamic: Add an standard updater to the model. todo
     48        - position: Poisition to place the model
     49        - attitude: Orientation to place the model
     50        - updater [optional]: Channels to use for position and attitude update
     51        - modeloffset [optional]: Offset for the loaded 3D model to the visual_object (if the 3D model has a wrong coordinate frame)
     52        - cameraoffset [optional]: Offset for the object mounted camera manipulator to the visual_object   
     53      -->
    4354      <model filename="cessna.osg" type="plain" label="TestText!" dynamic="yes">
    4455        <position lat="47.12345" lon="11.234567" alt="1500.0"></position>
    4556        <attitude rot_x="0.0" rot_y="0.0" rot_z="0.0"></attitude>
     57        <updater>
     58          <position lat="channelXYZ" lon="channelXYZ" alt="channelXYZ"></position>
     59          <attitude rot_x="channelXYZ" rot_y="channelXYZ" rot_z="channelXYZ"></attitude>
     60        </updater>
     61        <modeloffset>
     62          <translation trans_x="0.0" trans_y="0.0" trans_z="0.0"></translation>
     63          <rotation rot_x="0.0" rot_y="0.0" rot_z="0.0"></rotation>
     64        </modeloffset>
    4665        <cameraoffset>
    4766          <translation trans_x="0.0" trans_y="0.0" trans_z="0.0"></translation>
  • osgVisual/trunk/src/core/visual_core.cpp

    r203 r204  
    456456
    457457
    458         // Sky settings:
    459         if(sky.valid())
    460         {
    461 
    462         }
    463 
    464 
    465458        //testObj = new visual_object( rootNode, "testStab", objectMountedCameraManip );
    466459        //testObj->setNewPosition( osg::DegreesToRadians(47.7123), osg::DegreesToRadians(12.84088), 600 );
  • osgVisual/trunk/src/object/visual_object.cpp

    r203 r204  
    7474        //osg::ref<visual_object> object = new visual_object( root, nodeName);
    7575
     76        std::string filename="", type
    7677
    7778                        /*
Note: See TracChangeset for help on using the changeset viewer.