Another way to write a HeightField is using the fact that it is a
subclass of osg::Shape.
If you have the hierarchy
osg::Geode -> osg::ShapeDrawable
and then use setShape() to set the height field as the drawable of the
ShapeDrawable you can then use writeNodeFile(geode, '...')
Paul
Luc Heischbourg wrote:
Hi @all,
I have tried to save an osg::Heightfield into a file, but it has not
succeeded. Have used the function osgDB::writeHeightFieldFile(*hf, "C:\
\heightfield.osg")).. is the extension wrong or should I install
further plugins (gdal plugin)?
sincerely yours,
Luc
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org