Hi Brad and Rui,

I had a look at using .osgt/.osgx,.osgb files with osgarchive and the
first stumbling block was the ReaderWriterOSG2::readObject(..) was
checking for the InputStream::ReadType of READ_OBJECT, so I relaxed
this checked only failing to read the file when the type is
READ_UNKOWN.  With this change I'm now able to put .osgt files into an
.osga archive.  This is now checked into svn/trunk.

I then tried to read the master file from the archive but while the
osga plugin is able to determine the correct filename for the master
file that I put into the archive, the read fails.  I haven't
determined why this is yet.  I have other items to get on with so I'll
defer to yourselves for further fixes.

As a general note, since the existing .osg and .ive formats work fine
with archive I don't see why in principle why we might have problems
implementing this on the .osgt/.osgx/.osgb front.  I presume there
must be something going on with how the new serializers handle reading
from an istream.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to