Ignore:
Timestamp:
Jun 6, 2011, 11:16:54 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/sky_Silverlining/skySilverLining_skyDrawable.cpp

    r293 r295  
    6767        atmosphere->GetAmbientColor(&ra, &ga, &ba);
    6868        atmosphere->GetSunOrMoonColor(&rd, &gd, &bd);
    69         atmosphere->GetSunOrMoonPosition(&x, &y, &z);
     69        //atmosphere->GetSunOrMoonPosition(&x, &y, &z);
     70                atmosphere->GetSunOrMoonPositionGeographic(&x, &y, &z);
     71               
    7072
    7173        direction = osg::Vec3(x, y, z);
     
    7981        direction.normalize();
    8082               
    81 //OSG_NOTIFY(osg::ALWAYS)       << "Light Vector: X:"<<direction.x()<<" Y:"<<direction.y()<<" Z:"<<direction.z() << std::endl;
    82 util::AddCylinderBetweenPoints(osg::Vec3d(0,0,0), direction , 10000.0, 15000000.0, osg::Vec4d(1.0, 1.0, 0.0, 1 ), sceneRoot);
     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);
     88
    8389
    8490        light->setAmbient(ambient);
    8591        light->setDiffuse(diffuse);
    86         //light->setSpecular(osg::Vec4(0,0,0,1));
     92        light->setSpecular(osg::Vec4(0,0,0,1));
    8793                //light->setSpecular(osg::Vec4(1.0,1.0,1.0,1)); // Test
    8894        light->setPosition(osg::Vec4(direction.x(), direction.y(), direction.z(), 0));
Note: See TracChangeset for help on using the changeset viewer.