Am Mittwoch, 13. September 2006 13:29 schrieb Dennis Schridde:
> > > which Linux program can edit those files?
> >
> > Now that you remind me of this I find the flaw in my idea... GIMP seems
> > to not support it and actually I don't know of any other... (Perhaps
> > there are converters?)
>
> I just searched for GIMP plugins for DDS and found one which is referenced
> on other sites (eg CrystalSpace3D), too:
> http://nifelheim.dyndns.org/~cocidius/dds/
I modified a sample code snippet by Jon Watte and linked it with Lesson 06 by 
NeHe. DDS files are created with the GIMP DDS plugin mentioned above and 
contain all (autogenerated) mipmap levels. Only restriction is that DXT 
compressed images must be sized to a power of 2.

I resized tertilesc1hw.png to 1024x1024 and compressed it with DXT[135] to 
compare the sizes:
DXT[35] are both of the same size and a bit smaller than the original PNG 
image (1.4MB <> 1.8MB) and DXT1 (1bit alpha) is 0.7MB <> 1.8MB.

--Dennis

Compile the sample with g++ MyDDS.cpp main.cpp -o dds-test -lSDL -lGL -lGLU

If someone doesn't have GIMP, Photoshop or something else to create DDS files:
Ask me and I'll give you sample DDS files so you can try the example. (700KB 
7z)

Attachment: dds-test.tertiles.7z
Description: application/7z

Attachment: pgpOo2jRtW0bb.pgp
Description: PGP signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to