Changeset 298 for osgVisual/trunk/src


Ignore:
Timestamp:
Jul 18, 2011, 8:48:00 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
osgVisual/trunk/src
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/draw2D/visual_debug_hud.cpp

    r221 r298  
    1616
    1717#include <visual_debug_hud.h>
     18#include <osgSim/HeightAboveTerrain>
    1819
    1920using namespace osgVisual;
     
    141142
    142143        util::getWGS84ofCamera( sceneCamera, csn, lat, lon, alt );
    143         util::queryHeightAboveTerrainInWGS84(hat, csn, lat, lon, alt);
    144         util::queryHeightOfTerrain(hot, csn, lat, lon);
     144        //util::queryHeightAboveTerrainInWGS84(hat, csn, lat, lon, alt);
     145        //util::queryHeightOfTerrain(hot, csn, lat, lon);
     146
     147        double x = 0;
     148        double y = 0;
     149        double z = 0;
     150
     151        util::getXYZofCamera( sceneCamera, x, y, z );
     152        hat = osgSim::HeightAboveTerrain::computeHeightAboveTerrain(csn, osg::Vec3d(x,y,z), false);
     153        hot = osgSim::HeightAboveTerrain::computeHeightOfTerrain(csn, osg::Vec3d(x,y,z), false);
    145154
    146155
  • osgVisual/trunk/src/sky_Silverlining/skySilverLining_skyDrawable.cpp

    r296 r298  
    8080        //direction = view * direction;
    8181        direction.normalize();
    82                 OSG_NOTIFY( osg::ALWAYS) << "X: "<<direction.x()<<"  Y: "<<direction.y()<<"  Z:"<<direction.z()<< std::endl;
    83                
    84 double cx,cy,cz;
    85 util::getXYZofCamera(_view->getCamera(), cx, cy, cz);
    86 osg::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);
    89 util::AddCylinderBetweenPoints(osg::Vec3d(0,0,0), direction*15000000 , 5000.0, osg::Vec4d(0.0, 1.0, 1.0, 1 ), sceneRoot);
    90 
    9182
    9283        light->setAmbient(ambient);
Note: See TracChangeset for help on using the changeset viewer.