Hi Robert,
On 25/5/09 10:24 AM, Robert Osfield wrote:
On Sun, May 24, 2009 at 6:00 PM, Ulrich Hertlein<[email protected]> wrote:
have there been any recent changes in the .zip loader? I just noticed that
I can no longer load a bunch of zipped .x files. OSG_NOTIFY_LEVEL=DEBUG
shows that all plugins are found (.zip, .x, .bmp) but I still get 'No data
loaded' from osgviewer.
If I unpack the .zip file and load the .x directly everything is fine.
Arggh.... two steps forward, one back...
As Neil mentioned I'ved merged his changes to the zip plugin to allow
in memory unpacking, and it then use istreams to read the final modes,
and it looks like the .x plugin doesn't support reading from streams
yet.
>...
> handle models zipped up and placed on http. The ideal solution would
> be to add streams support into .x plugin and any others that it's
> missing for.
I've added stream support to the .x plugin but the problem is deeper than that.
It seems like there's a serious bug in the zip loader. If there are multiple files in the
archive only the first one is read properly. All the following ones are fed the same
data. So for example if you have a .zip that contains a .jpg and an .ive the JPEG is read
properly but then the JPEG data is fed to the .ive plugin which of course doesn't work.
If the .ive is first then that is loaded and displayed but any following file is not read
properly.
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org