Hi,

I created virtual earth as follows,

osg::Node* createEarth()
        {
            osg::TessellationHints* hints = new osg::TessellationHints;
            hints->setDetailRatio(5.0f);
        
           
            osg::ShapeDrawable* sd = new osg::ShapeDrawable(new 
osg::Sphere(osg::Vec3(0.0,0.0,0.0), osg::WGS_84_RADIUS_POLAR), hints);
           
            osg::Geode* geode = new osg::Geode;
            geode->addDrawable(sd);
           
            std::string filename = 
osgDB::findDataFile("Images/land_shallow_topo_2048.jpg");
            geode->getOrCreateStateSet()->setTextureAttributeAndModes(0, new 
osg::Texture2D(osgDB::readImageFile(filename)));
           
            osg::CoordinateSystemNode* csn = new osg::CoordinateSystemNode;
            csn->setEllipsoidModel(new osg::EllipsoidModel());
            csn->addChild(geode);
           
            return csn;
           
        }

But with the above ellipsoidal model I could not locate any geographic location 
accurately. Means that, not able to locate any position for given latitude and 
longitude accurately. What should be done more?

Thanks

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=47727#47727





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to