[osg-users] a limit of osg::ReaderWriter interface

Robert Osfield robert.osfield at gmail.com
Wed Mar 18 02:21:55 PDT 2009


Hi Ren,

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

Robert.

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.
>
> regards,
> ren
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090318/6ae256e8/attachment-0003.htm>


More information about the osg-users mailing list