Just a followup post to my original inquiry...
After appending the .gdal to my .dt1 files to get the
readHeightFieldFile() to read the DTED file format, I also had to do the
following to get the DTED to render correctly...
osg::HeightField *grid = osgDB::readHeightFieldFile(n41.dt1.gdal);
Hi Shayne,
If you want to use the gdal plugin in this way you'll either need to
preload the gdal plugin or append the .gdal extension to your filename so
that the OSG knows to load the gdal plugin to attempt the load the data.
Robert.
On 11 April 2013 23:19, Tueller, Shayne R Civ USAF AFMC 519
-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert
Osfield
Sent: Friday, April 12, 2013 12:24 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] reading dem/image files...
Hi Shayne,
If you want to use the gdal plugin
All,
I'm attempting to load a height field by using
osg::HeightField *grid = osgDB::readHeightFieldFile(...)
where the file is a gdal supported dem/image file format. When I attempt
to read the file, I'm getting the error
Warning: could not find plugin to read objects from file...
Is this
osgEarth is sort of an overkill for my little app that just displays raw DTED
(*.dt1) geocells for inspection.
I did find an earlier thread that addresses my question. The plugin is found if
you append .gdal onto the file name (i.e. w112_n42.dt1.gdal). The plugin is
now found and the file is
5 matches
Mail list logo