Hi Andrea,

You need to do some maths on how much data you have... it's pretty
obvious that unless the images are tiny you'll never be able to load
15000 jpeg files in memory at once.  The *only* way you can do it is
by reading the data on demand like a video - such as what the xine and
qt plugins do, subclassing from osg::ImageStream and then providing a
background thread that does the reading of the images.

Robert.

On Thu, Jun 12, 2008 at 4:46 PM, Andrea Martini
<[EMAIL PROTECTED]> wrote:
> Hi guys,
> i'm using osg 1.2. I would like to load a lot of images (15000 jpeg files)
> in memory using an osg:image vector ( std::vector<osg::image>), but i
> receive something like a memory bug when i arrive to load the 400th image
> (if i load i.e. 380 images i have no problem).
> Initally i have supposed to load all images (30 kbyte for each image) in a
> std:vector<osg:image>. I have seen that osg:imagestream also exists. What is
> the difference between image and imagestream? where i can find more
> information on how to  use these classes? Is there a tutorial or example
> that explain how to use them? I have taken look on quicktime plugin, but
> both version and topic inside plugin (quick time plugin try to convert video
> streaming into image, my problem is to load a lot of images!) don't allow me
> to use it. Also, i have tought to use two separate threads one for image
> folder loading, and the second for visualize image, but visualization thread
> is two time faster then loading thread (and i have only a buffer of 400
> images available!).
> Any suggestion?
> Bye.
> _______________________________________________
> 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

Reply via email to