|
楼主 |
发表于 2011-1-11 15:52:06
|
显示全部楼层
代码如下:
locator->setCoordinateSystemType(osgTerrain:ocator::GEOCENTRIC);
locator->setTransformAsExtents(-osg:I, -osg::PI_2, osg::PI, osg::PI_2);
demLayer->setLocator(locator.get());
terrainTile->setElevationLayer(demLayer);
locator1->setCoordinateSystemType(osgTerrain::Locator::GEOCENTRIC);
locator1->setTransformAsExtents(0, -osg::PI_4, -osg::PI_4, 0);
imageLayer->setLocator(locator1.get());
terrainTile->setColorLayer(0, imageLayer.get());
地形定义的是全球,纹理定义的是部分,结果其余部分均填充了,就按照纹理的边缘值填充了 |
|