On Wed, Mar 18, 2009 at 4:05 PM, Marcus Lindblom <[email protected]> wrote:
> Allen Bierbaum wrote:
>> Hello all:
>>
>> As part of the on-going work to consume less memory in our
>> application, are starting to use the osgsquish library to create DXT
>> images from our existing PNG images.  The issue we are running into is
>> that we don't want to have to reprocess these image each time we load
>> them from cache.  Instead we would like to download them once, convert
>> them to DXT once, and then store them to cache for future use.
>>
>> The question is, how can we store and OSG::Image (in DXT pixel format)
>> in a binary form to disk that will read/write as fast as possible.  I
>> was thinking of something like .osb, but it doesn't support individual
>> FCs.  Then I thought of looking for a binary image file format, but I
>> don't see anything like that.  Is there some other option that I am
>> missing?
>
> (I've believe I've answered this before.)
>
> You can save/load OSG::Images to an .osg file as a raw fieldcontainer.
> That worked very well in 1.8 for us, doing something similar. (I
> uploaded an old version of this to the contrib page, see
> http://opensg.vrsource.org/trac/attachment/wiki/PotentialContributions/filecache.zip)
>
> IIRC there was some NewFileIO required for that, but a bit of digging in
> the headers should uncover it, unless it's name have changed to 2.x.

Thanks, I will take a look at this.  I didn't think there was a way
any more to save raw field containers, but maybe there is after all.

-Allen

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to