At LAST! UltraFast Conversion|Display of DDS in Linux, Win,.
Posted: 18.01.2003, 21:58
++++++++++++++++++++++
Forget about 'nvdxt'...
++++++++++++++++++++++
I discovered an amazing open-source /multi-platform/ Image Library Project for
developers, that handles DXT Format + openGL support very well and
easily! It understands an incredible amount of different image
formats.
...and it WORKS!
DevIL:= Developer's Image Library
==================================
http://openil.sourceforge.net/features.php
http://openil.sourceforge.net/download.php
Many people may have known DevIL as OpenIL, but the name was changed
due to SGI's request. Developer's Image Library (DevIL) is a
programmer's library to develop applications with very powerful image
loading capabilities, yet is easy for a developer to learn and
use. Ultimate control of images is left to the developer, so
unnecessary conversions, etc. are not performed. DevIL utilizes
a simple, yet powerful, syntax. DevIL can load, save, convert,
manipulate, filter and display a wide variety of image formats.
Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .jpg,
.lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, .png, .ppm,
.psd, .psp, .raw, .sgi, .tga and .tif files.
Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm,
.pcx, .pgm,.png, .ppm, .raw, .sgi, .tga and .tif.
DevIL currently supports the following APIs for display: OpenGL,
Windows GDI, SDL, DirectX and Allegro. Compilers that can compile
DevIL or use it include Djgpp, MSVC++, Linux gcc, Delphi, Visual
Basic, Power Basic and Dev-C++.
--------------------------------------
The latest version 1.6.5 /compiles very easily on Linux/, provided the
following (standard) libraries are installed:
Libpng, for .png support.
Zlib, for compression.
Libjpeg, for .jpg support.
Libtiff, for .tif support.
Libmng, for .mng support.
Little CMS, for colour profiles.
A zip file of the sources for these external libraries is available,
however, as LibSrc.zip.
The library also exists in various precompiled versions for 'End
Users'!
========================================================
With the help of the DevIL library I hacked today a number of very
simple, super-fast conversion tools and (openGL) image viewers.
After a little bit of further testing I shall make my tools available on my TextureFoundry site. Stay tuned...
========================================================
The speed is fascinating and there are no problems with memory or graphics!
1) Benchmarks (PIII 1GHz, 512MB CL2 Ram):
-----------------------------------------
16k earth.tga => earth.dds : 2.5 Minutes !
8K earth.png => earth.dds : 15 seconds ! (took >15 min's with nvdxt)
For the first time, I could convert my 16k earth textures to dds!
Reading dds and converting it to anything like jpg, png, tga, tiff is
even faster.
2) Handles (individual) Mipmaps easily, so one may compose a dds file from
different kinds of textures of 2^n size.
3) My openGL viewer is super, despite its simplicity. Fast display of
DDS format under Linux and any other formats...Zoom still missing though.
Lots of further posibilities ahead, I am just at the start...
Bye Fridger
PS: The translation of formats is as follows:
nvdxt: DXT1a => ilSetInteger(IL_DXTC_FORMAT,IL_DXT1);
DXT1c => ilSetInteger(IL_DXTC_FORMAT,IL_DXT3);
etc.
Forget about 'nvdxt'...
++++++++++++++++++++++
I discovered an amazing open-source /multi-platform/ Image Library Project for
developers, that handles DXT Format + openGL support very well and
easily! It understands an incredible amount of different image
formats.
...and it WORKS!
DevIL:= Developer's Image Library
==================================
http://openil.sourceforge.net/features.php
http://openil.sourceforge.net/download.php
Many people may have known DevIL as OpenIL, but the name was changed
due to SGI's request. Developer's Image Library (DevIL) is a
programmer's library to develop applications with very powerful image
loading capabilities, yet is easy for a developer to learn and
use. Ultimate control of images is left to the developer, so
unnecessary conversions, etc. are not performed. DevIL utilizes
a simple, yet powerful, syntax. DevIL can load, save, convert,
manipulate, filter and display a wide variety of image formats.
Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .jpg,
.lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, .png, .ppm,
.psd, .psp, .raw, .sgi, .tga and .tif files.
Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm,
.pcx, .pgm,.png, .ppm, .raw, .sgi, .tga and .tif.
DevIL currently supports the following APIs for display: OpenGL,
Windows GDI, SDL, DirectX and Allegro. Compilers that can compile
DevIL or use it include Djgpp, MSVC++, Linux gcc, Delphi, Visual
Basic, Power Basic and Dev-C++.
--------------------------------------
The latest version 1.6.5 /compiles very easily on Linux/, provided the
following (standard) libraries are installed:
Libpng, for .png support.
Zlib, for compression.
Libjpeg, for .jpg support.
Libtiff, for .tif support.
Libmng, for .mng support.
Little CMS, for colour profiles.
A zip file of the sources for these external libraries is available,
however, as LibSrc.zip.
The library also exists in various precompiled versions for 'End
Users'!
========================================================
With the help of the DevIL library I hacked today a number of very
simple, super-fast conversion tools and (openGL) image viewers.
After a little bit of further testing I shall make my tools available on my TextureFoundry site. Stay tuned...
========================================================
The speed is fascinating and there are no problems with memory or graphics!
1) Benchmarks (PIII 1GHz, 512MB CL2 Ram):
-----------------------------------------
16k earth.tga => earth.dds : 2.5 Minutes !
8K earth.png => earth.dds : 15 seconds ! (took >15 min's with nvdxt)
For the first time, I could convert my 16k earth textures to dds!
Reading dds and converting it to anything like jpg, png, tga, tiff is
even faster.
2) Handles (individual) Mipmaps easily, so one may compose a dds file from
different kinds of textures of 2^n size.
3) My openGL viewer is super, despite its simplicity. Fast display of
DDS format under Linux and any other formats...Zoom still missing though.
Lots of further posibilities ahead, I am just at the start...
Bye Fridger
PS: The translation of formats is as follows:
nvdxt: DXT1a => ilSetInteger(IL_DXTC_FORMAT,IL_DXT1);
DXT1c => ilSetInteger(IL_DXTC_FORMAT,IL_DXT3);
etc.