PDA

View Full Version : DDS compressed Fileformat


Leonardo1962
8th January 2006, 12:59
Hi,

does somebody help me. I want to program an 3D - Editor in Delphi for painting and simulating ect.

Therefore I want to import the DDS(DXT) Textur Bitmaps and dont want to loose much time by developing the texturimporter.:schwitz:

Does anybody have notice of sourcecode for importing or calculating the DDS bitmaps in Delphi, pascal, or C++. The DDS Textures seem to be compressed in DX1 Format. :scratchch

Some helpfull links for downloads would be nice.:nod:

the_angry_angel
8th January 2006, 13:52
It might be quicker to write a front end to nvDXT (http://developer.nvidia.com/object/nv_texture_tools.html), and then redistribute this within your app.

Scawen
8th January 2006, 14:04
You can read about DDS files at MSDN. Here's one link but you'll probably have to search around some more.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/dx9_graphics_reference_dds_file.asp

There are DirectX functions to load textures in various formats including dds, bmp, jpg, etc and i think you can save as bmp and dds. The functions are something like LoadSurfaceFromFile and SaveSurfaceToFile.

Sorry i can't help in great detail, i just learned what i needed to know when i coded it up, to convert raw files to dds for use in card memory and to save download size.