I read a topic about DDS mipmap support for Freeimage in an old topic some 7 years ago stating there was no way to get the mipmaps of a DDS texture at the time. I am wondering if this has changed now 7 years later, or is there an easy extension/plugin to Freeimage that does this? I have no experience working with the DDS format myself.
I'd rather not have to resort to DevIL for loading DDS, for license issues but also a pain to integrate that library for the sake of just loading DDS images, as the excellent FreeImage library does everything else I need with no pain at all.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would also like to know whether Freeimage will support converting/saving to DXT compressed format in the near future to avoid the use of DevIL or Squish APIs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
AFAIK, about the DDS loading feature, the only known FreeImage user is the Ogre3D library.
Several years ago (and as soon as FreeImage was used into this library), the Ogre3D team choosed to disable the DDS plugin. This is because it was easier to load a raw binary file and to send this file to the graphic card (there's no need for an I/O image library for this).
Now your question is about saving an image as DDS. I've never had demand for this feature but this feature could be easily added to the FreeImage library.
This would mean a rewrite of the DDS plugin, and I think I would use the libsquish library for this.
Are there any other users that would like to have DDS compressed saving included into FreeImage ?
NB: any contribution is welcomed, so if someone has a ready-to-go plugin, please send it :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the answer. Having full support for DXT on FreeImage would make the latter unbeatable.
Please be aware that -if I remember it well, for conversions, libsquish expects the source non-DXT image to be in the standard color space (four 8-bit channels), not leaving room for other use cases.
I read a topic about DDS mipmap support for Freeimage in an old topic some 7 years ago stating there was no way to get the mipmaps of a DDS texture at the time. I am wondering if this has changed now 7 years later, or is there an easy extension/plugin to Freeimage that does this? I have no experience working with the DDS format myself.
I'd rather not have to resort to DevIL for loading DDS, for license issues but also a pain to integrate that library for the sake of just loading DDS images, as the excellent FreeImage library does everything else I need with no pain at all.
I would also like to know whether Freeimage will support converting/saving to DXT compressed format in the near future to avoid the use of DevIL or Squish APIs.
Anyone?
Hi,
AFAIK, about the DDS loading feature, the only known FreeImage user is the Ogre3D library.
Several years ago (and as soon as FreeImage was used into this library), the Ogre3D team choosed to disable the DDS plugin. This is because it was easier to load a raw binary file and to send this file to the graphic card (there's no need for an I/O image library for this).
Now your question is about saving an image as DDS. I've never had demand for this feature but this feature could be easily added to the FreeImage library.
This would mean a rewrite of the DDS plugin, and I think I would use the libsquish library for this.
Are there any other users that would like to have DDS compressed saving included into FreeImage ?
NB: any contribution is welcomed, so if someone has a ready-to-go plugin, please send it :)
Thanks for the answer. Having full support for DXT on FreeImage would make the latter unbeatable.
Please be aware that -if I remember it well, for conversions, libsquish expects the source non-DXT image to be in the standard color space (four 8-bit channels), not leaving room for other use cases.
Newer versions of the library -with more options- can be found here: http://squish.paradice-insight.us/