[osg-users] a limit of osg::ReaderWriter interface
robert.osfield at gmail.com
Wed Mar 18 02:21:55 PDT 2009
Perhaps we could put the orignal filename into the ReaderWriter::Options
passed to the gz plugin to help it get over this hurdle. This will require
tweaks of the curl + gz plugins to enable this.
The other route would be to get the .ive plugin itself to compress itself
using it's own inbuilt zlib support. Then you'd be able to just use the
aa.ive directly. To compress you can do:
osgconv myfile.ive compressedfile.ive -O compressed
2009/3/18 lwren <ren.lw at hotmail.com>
> Hi all,
> I notice that osg::ReaderWriter includes a series of interface like
> readNode(std::istream& ,const Options*) which read data from stream buffer
> and has no file name passed in. There is a problem here when reading the
> file with a name like aa.ive.gz.curl.
> The curl plugin read file data into a stream buffer, and then call plugin
> gz across the interface shown above which not realized in gz to read it
> further, so it failed!
> The interface CAN'T be realized in gz for lack of a file name which is
> needed in gz to determini which pluin to use in the followed step.
> osg-users mailing list
> osg-users at lists.openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users