Hi Ulrich & Robert, I've just done a cursory scan of the code again, and can't quite see what could be going wrong. However, I do note that the GetZipItem function can return an error state that the code isn't checking for. I'll try and have a look at it tomorrow, and set up a similar example for a 3ds node and a jpeg, and see what's happening there. However I would note in passing that I tested with a zip file that contained four 3ds models all zipped within the same file, and these worked file.
Ulrich, could you send me an example zip file that causes this issue please? If you could exclude .x as I don't regularly deal with this format. 3ds/osg/ive/flt/jpg/tga would be fine if possible please. I could then investigate with a little more certainty that the example fails on your setup. Many thanks, Neil. ---- Ulrich Hertlein <[email protected]> wrote: > 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 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

