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...
> 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.
Cheers,
Carsten
------------------------------------------------------------------------------
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