Changeset 112 for osgVisual/src


Ignore:
Timestamp:
Jul 30, 2010, 10:08:44 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/core/visual_core.cpp

    r89 r112  
    296296        //testObj->addUpdater( new object_updater(testObj) );
    297297
    298         osg::ref_ptr<visual_object> testObj2 = new visual_object( rootNode, "cessna" ); // todo memleak
     298        osg::ref_ptr<visual_object> testObj2 = new visual_object( rootNode, "neuschwanstein" ); // todo memleak
    299299        //testObj2->setNewPosition( osg::DegreesToRadians(47.8123), osg::DegreesToRadians(12.94088), 600 );
    300         testObj2->setNewPosition( osg::DegreesToRadians(50.8123), osg::DegreesToRadians(8.94088), 600 );
    301         testObj2->loadGeometry( "../models/cessna.osg" );
    302         testObj2->addUpdater( new object_updater(testObj2) );   // todo memleak
     300        testObj2->setNewPosition( osg::DegreesToRadians(47.557523564234), osg::DegreesToRadians(10.749646398595), 950 );
     301        testObj2->loadGeometry( "../models/neuschwanstein.osgb" );
     302        //testObj2->addUpdater( new object_updater(testObj2) ); // todo memleak
    303303
    304304        osg::ref_ptr<visual_object> testObj3 = new visual_object( rootNode, "SAENGER1" );       // todo memleak
     
    323323        // Manipulatoren auf dieses Objekt binden (Primärobjekt)
    324324        if (objectMountedCameraManip.valid())
    325                 objectMountedCameraManip->setAttachedObject( testObj4 );
     325                objectMountedCameraManip->setAttachedObject( testObj2 );
    326326        if (mouseTrackerManip.valid())
    327327        {
    328                 mouseTrackerManip->setTrackNode( testObj4->getGeometry() );
     328                mouseTrackerManip->setTrackNode( testObj2->getGeometry() );
    329329                mouseTrackerManip->setMinimumDistance( 100 );
    330330        }
Note: See TracChangeset for help on using the changeset viewer.