Questions tagged [dds-format]

The DirectDraw Surface is file format that was introduced with DirectX 7 to store uncompressed and compressed (DXTn) textures. The file format supports mipmaps, cube maps, and volume maps. The DDS file format is supported by D3DX and other DirectX tools. Starting with Direct3D 10, DDS files support texture arrays.

The DirectDraw Surface is file format that was introduced with DirectX 7 to store uncompressed and compressed (DXTn) textures. The file format supports mipmaps, cube maps, and volume maps. The DDS file format is supported by D3DX and other DirectX tools. Starting with Direct3D 10, DDS files support texture arrays.

http://msdn.microsoft.com/en-us/library/windows/desktop/bb943990(v=vs.85).aspx

70 questions
5
votes
1 answer

How can I make sure that a DirectDraw surface has a correct file format?

I need to make a simple check if a dds file is of valid format. I just need to do a general check of the dds file, so I do not need to check if it is a dxt1, dxt5, dx10 etc. For example if I have a png image and I rename the extensions to .dds the…
Jacce
  • 172
  • 1
  • 2
  • 11
5
votes
2 answers

How to upload DXT5 compressed pixel data generated from a GPU operation without a CPU copy?

So what I want to do is: Load a file encrypted with any algorithm (in my case AES-256) into GPU memory (with CUDA). Decrypt the file with all the GPU parallel awesomeness we have right now and let it stay in GPU memory. Now tell OpenGL (4.3) that…
James Takarashy
  • 299
  • 2
  • 14
4
votes
3 answers

How to load .dds files into a picturebox?

How do I load .dds texture files as an Image in C#? There's nothing useful on google that I could find. The more information with samples you give me,the better it will be for me to understand it.
Ivan Prodanov
  • 34,634
  • 78
  • 176
  • 248
4
votes
2 answers

I thought *.DDS files were meant to be quick to load?

Ok, so I'm trying to weigh up the pro's and con's of using various different texture compression techniques. I spend 99.999% of my time coding 2D sprite games for Windows machines using DirectX. So far I have looked at texture packing (SpriteSheets)…
Siyfion
  • 416
  • 1
  • 6
  • 17
3
votes
1 answer

Local Imagemagick not converting to DDS (DXT5) correctly

I'm having some difficulty using the ImageMagick command line utility to properly convert a png to a DDS file with the DXT5 compression algorithm. convert -format dds -define dds:compression=dxt5 leia.png leia.dds This was done using Version:…
Deftness
  • 265
  • 1
  • 4
  • 21
2
votes
1 answer

Convert any input DDS into another DDS format in DirectXTex

I want to create a function to convert the input dds file to another format (also DDS) function signature will be like this std::vector ConvertDDS(const byte* src, const size_t src_len, const DXGI_FORMAT format) in here src will be a pointer…
2
votes
1 answer

Determine the block compression format of an existing DDS texture file

Does anyone know if it is possible to determine the compression format of an existing DDS texture file? I have the NVidia Photoshop plugin, a DXTViewer app, and Honeyview app, but cannot seem to find any way to obtain this simple information? By…
Robert
  • 413
  • 4
  • 12
2
votes
1 answer

OpenGL - DDS and sRGB colorspace

I have checked a few examples of DDS loader implementation. Typically, detecting DXT format looks like this: if (ddsHeader.ddsPixelFormat.dwFlags & DDSF_FOURCC) { switch (ddsHeader.ddsPixelFormat.dwFourCC) { case FOURCC_DXT1: { …
Irbis
  • 1,432
  • 1
  • 13
  • 39
2
votes
1 answer

DirectDraw Surface - data layout

Opengl texture coordinate [0,0] is located in a lower left corner. Does DDS file contain informations about a data layout (if data begin in top left or bottom left corner) or there is one fixed layout ? For example ktx file contains such…
Irbis
  • 1,432
  • 1
  • 13
  • 39
2
votes
0 answers

.DDS to .PNG conversion in memory NodeJS

I've run into an issue where there are a collection of .dds(direct draw surface) files which I need to be able to display within an electron/react app. From what I know, a .dds file must be converted to a png/jpeg before being able to be rendered in…
Rykuno
  • 458
  • 3
  • 14
2
votes
2 answers

How can I convert a .dds file to a .png in python?

I am trying to create some images by manipulating image pieces stored in .dds files, and then write the finished image as a .png. I see that there is a dds python module in Direct Python 11, which seems possibly sufficient except that it saves to…
faiuwle
  • 359
  • 1
  • 3
  • 10
2
votes
1 answer

PyQt5 Python 3.5.0: convert DDS File to QImage

I've been struggling with this for a while now and I feel like I have exhausted all my options so I hope someone can help me with this; I'm trying to load a bunch of DDS files, convert them into QImage objects and display them in a QGraphicsView. So…
MaVCArt
  • 745
  • 8
  • 21
2
votes
1 answer

Loading DDS textures?

I'm reading about loading DDS textures. I read this article and saw this posting. (I also read the wiki about S3TC) I understood most of the code, but there's two lines I didn't quite get. blockSize = (format == GL_COMPRESSED_RGBA_S3TC_DXT1_EXT) ? 8…
vexe
  • 5,433
  • 12
  • 52
  • 81
2
votes
1 answer

I need to write a .DDS file cross-platform, can someone point me to example?

I need to create a .DDS file with code that runs on both OSX and Windows. Although the format doesn't look difficult, I'd still like an example of writing the file. Note I don't need to read it, just write it. C or C++ and RGBA bitmap.
user51511
2
votes
1 answer

Qt 5 dds support to save memory and improve rendering

I would like to load dds files into Qt 5.1 and have the benefit of saving memory and improve rendering performance as dds files in many cases are less in size (due to data destroying compression) than their png equivalent and also are stored in more…
1
2 3 4 5