From Wang Rui, "Attached is the osgTerrain wrappers, based on the latest SVN version

of OSG. I modified the osgDB::InputStream and OutputStream and the
PagedLOD wrapper as well. Now all seems to work fine with paged
scenes. I've tested with the puget terrain data and the osgdem
application from VPB:
# osgdem --xx 10 --yy 10 -t ps_texture_4k.tif --xx 10 --yy 10 -d
ps_height_4k.tif -l 8 -v 0.1 -o puget.osgb

As the ive plugin does, The PagedLOD wrapper now automatically add the
latest file path to PagedLODs' databasePath member, to help them find
correct child positions. I also changed the image storage strategy of
the OutputStream class, to store them inline by default. The osgt
extension should also work, in case the image files are also written
to the disk.
"
This commit is contained in:
Robert Osfield
2010-02-25 17:53:51 +00:00
parent 26e68926f7
commit 605ad76691
19 changed files with 399 additions and 13 deletions

View File

@@ -27,6 +27,7 @@ InputStream::InputStream( const osgDB::Options* options )
: _byteSwap(0), _useFloatMatrix(false), _forceReadingImage(false)
{
if ( !options ) return;
_options = options;
std::string schema;
StringList optionList;