On 18 Mar 2009, at 23:49, Carsten Neumann 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...
>
>> 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.

We use the good old dds-nvidia tools for conversion:

http://developer.nvidia.com/object/dds_utilities_legacy.html

It works nicely ( even in wine ) and can create a mipmap hierarchy for  
you:

nvdxt -quality_production -dxt1a -rescale nearest -file '*.png'"

best regards
johannes


>
>
>       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

--------
Dr.-Ing. Johannes Behr  tel: +49-6151-155-510
Fraunhoferstr. 5                        fax: +49-6151-155-196
D-64283 Darmstadt               skype: johannesbehr
Germany                         web: www.igd.fhg.de/www/igd-a4/


------------------------------------------------------------------------------
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