On Wed, Mar 18, 2009 at 4:49 PM, Carsten Neumann
<[email protected]> wrote:
>        Hello Allen,
>
> 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.
>
> hm, I somehow suspect you did not mean to say binary in the last
> sentence, because (almost) all the image formats are binary...

Yes, I should have said something like "raw opensg binary
representation of the FC". Basically something very fast to save/load
that is really just a mirror of the mrmory.

>
>>  Is there some other option that I am missing?
>
> The .dds format can directly store DXT compressed texture data. I don't
> think OpenSG has support to write the format, but I'm sure there are
> converters you can pipe your .png files through.

The goal is to never have the files on disk.  They stream in as .png
or .jpg in realtime over the network and we want to cache them for
later.  We are using the squish support GV added to OpenSG to convert
them but just need to save them out and as you thought, OpenSG can't
write DDS files currently.

I will take another look tomorrow and see what I can find.

Aron and I were bouncing around the idea of just writing the raw FC
memory dump to disk with a custom file extension and leaving it at
that, but we can't quite find the right method to call to get a raw
binary form of the image that can be saved out and read back into an
app later.

-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