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?
Originally posted by Hampel: This specification seems not to handle float images? Can DDS images contain float values at all?
The DDS format can handle all formats specified by D3D and any format that has a FOURCC code (and thus is easily extended when a new format comes around, like for instance 3Dc). Float images are definitely supported. It’s easy to load too, since it’s stored in a raw format. No compression or anything. In D3D you should be able to just fread() directly into locked surface.