Sorry if this is a bit off-topic, but I’ve been looking everywhere for source code that shows how to decode a DDS float texture.
nVidia released a lib (dxtlib) that is supposed to help reading them, but it doesn’t.
Did anyone have any success reading DDS floating-point textures?
I have code for that in my framework.
I do this in my engine actually. The DDS file format is pretty straight forward. You can find the spec for the format here:
This specification seems not to handle float images? Can DDS images contain float values at all?
Yes, DDS can store float. 16 bit and 32 bit. Single channel, or 2 or 4. I think you don’t compress them.
DDS is also supported by http://openil.sourceforge.net/
but it probably doesn’t handle float.