[osg-users] [Re: to draw landscapes beginning from a matrix]
aurora restivo
aurora_re at tiscali.it
Wed Mar 5 03:12:17 PST 2008
Hi!
why getGeometry doesn't it work?
during the execution it launches an exception.
my code is:
osgTerrain::GeometryTechnique* geometryTechnique = new
osgTerrain::GeometryTechnique();
terrainNode->setTerrainTechnique(geometryTechnique);
osg::Vec3d center=
geometryTechnique->computeCenterModel(terrainNode->getLocator());
osgTerrain::Locator* locator= terrainNode->getLocator();
geometryTechnique->generateGeometry(locator, center);
Thanks Aurora
More information about the osg-users
mailing list