Changeset 296 for osgVisual


Ignore:
Timestamp:
Jun 15, 2011, 10:26:23 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
osgVisual/trunk
Files:
3 edited

Legend:

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

    r295 r296  
    3737      <trackmodel id="2" updater_slot="TRACKING_ID"></trackmodel>
    3838    </models>
    39     <datetime day="0" month="0" year="0" hour="20" minute="20"></datetime>
     39    <datetime day="0" month="0" year="0" hour="12" minute="00"></datetime>
    4040    <visibility range="50000" turbidity="2.2" ></visibility>
    4141    <clouds>
  • osgVisual/trunk/src/sky_Silverlining/skySilverLining_skyDrawable.cpp

    r295 r296  
    8080        //direction = view * direction;
    8181        direction.normalize();
     82                OSG_NOTIFY( osg::ALWAYS) << "X: "<<direction.x()<<"  Y: "<<direction.y()<<"  Z:"<<direction.z()<< std::endl;
    8283               
    83 //double cx,cy,cz, lat, lon, height;
    84 //util::getWGS84ofCamera( _view->getCamera(), sceneRoot, lat, lon, height );
    85 //util::calculateXYZAtWGS84Coordinate(lat, lon, 0, sceneRoot, cx, cy, cz);
    86 //util::AddCylinderBetweenPoints(osg::Vec3d(cx,cy,cz), direction*-15000000 , 500.0, osg::Vec4d(1.0, 1.0, 0.0, 1 ), sceneRoot);
    87 //util::AddCylinderBetweenPoints(osg::Vec3d(0,0,0), direction*-15000000 , 500.0, osg::Vec4d(0.0, 1.0, 1.0, 1 ), sceneRoot);
     84double cx,cy,cz;
     85util::getXYZofCamera(_view->getCamera(), cx, cy, cz);
     86osg::Vec3d up(cx, cy, cz);
     87//up.normalize();
     88//util::AddCylinderBetweenPoints(osg::Vec3d(cx,cy,cz), direction*15000000 , 5000.0, osg::Vec4d(1.0, 1.0, 0.0, 1 ), sceneRoot);
     89util::AddCylinderBetweenPoints(osg::Vec3d(0,0,0), direction*15000000 , 5000.0, osg::Vec4d(0.0, 1.0, 1.0, 1 ), sceneRoot);
    8890
    8991
  • osgVisual/trunk/src/sky_Silverlining/visual_skySilverLining.cpp

    r247 r296  
    262262        double x,y,z;
    263263    util::getXYZofCamera(sceneCamera, x, y, z);
    264 
    265264    osg::Vec3d up(x, y, z);
    266 
    267265    up.normalize();
     266
    268267    osg::Vec3d north(0, 0, 1);  // Z is north
    269268    osg::Vec3d east = north ^ up;       // Cross product
Note: See TracChangeset for help on using the changeset viewer.