[osg-users] Unzip big data size problem!

Robert Osfield robert.osfield at gmail.com
Fri Nov 11 03:26:59 PST 2016

Hi Nam,

I have unpacked your model and then zipped then ran:

  osgviewer DL.ive.zip

This works fine with OSG-3.2.1 through to git master.  The models
loads without any errors or warnings.  This under 64bit Linux.

I can't rule out a Visual Studio specific issue, perhaps other under
Windows can test your model.

As a general note, on the topic of encryption the way you can do it is
by reading data from disk decrypt the data into a memory buffer that
you stream into the plugin that does the loading via a std stream
buffer.  This topic has been covered before on osg-users mailing
list/forum so just search for the topic in the archives.  In essense
the zip plugin uses this approach already for loading the model files.
This thread is not the appropriate place to discuss this as though so
would suggest asking questions on this one of the existing threads or
starting a new one.

Meanwhile this thread should be just kept to the issue of trying load
a zip file.  On this I can't personally do anymore, it'll be up to
yourself or others who use Windows/VisualStudio to sort out whether
there are specific problems here or whether it's just a built/usage
mistake on your side.


On 11 November 2016 at 03:23, Nguyen Quang Nam
<nguyenquangnam at outlook.com> wrote:
> Hi, Robert
> Sorry for my mistakes.
> Today I upload my .ive file from my PC. This file is not of mine so I can not change extension.
> osgVersion: 3.2.1 and 3.4.0, I built it myself in windows 10 x64, compiler Visual Studio 2010 x86.
> When I try to load another zipped file which has the size below 100Mb it is OK.
> As I said before, my programing and 3D is limited so I can not find any notices to show you. I try go to openscenegraph Source code and insert osg::Notify to know zip doing is success. But then I only see "badalloc" notice from a popup ( with osg 3.4.0 nothing is display, but with osg 3.2.1 is show error).
> My purpose is using zip with password to protect my sensitive data from danger. Now I 've not find any methods with my bad knowledge.
> Thank you!
> Here is my data, please help me to detect the problem.
> Code:
> http://www.mediafire.com/file/b3v5fm5noz2qzta/DL.7z
> Thank you,
> Nam
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69314#69314
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list