DDS 3d Volume Texture Tool + Source

I created this application today to help me with my game I am working on. The only tool I could find that supported volume textures for DDS files was DxTex.exe in the DX9 SDK. This program does the job, but only barely. It does not allow bulk image loading and did not animate the textures like I liked.

For my game I am using these textures for my terrain tiles and needed a program to easily create them. I also plan on using these textures for animation purposes later. I have uploaded this tool and it's source for anyone to play with. It started out nice but then I think it got a bit sloppy as I got tired and just wanted to get it done. If there's any issues with it feel free to comment and let me know. I will add features as I personally need them so I wouldn't expect a whole lot of updates for it.

This program uses the XNA framework to do its dirty work. If you want to compile this you will need to download that. I did this because XNA supports 3d Textures out of the box and will save and load them. I didn't even have to learn anything new.

If you want to improve on this then have at it.

-Supports DDS 3D Textures
-Can insert many images at once.
-Should load most DDS textures as long as they are volumes.
-Will play back animation by iterating through the depth.
-Will pad textures if you do not have a texture count(depth) that is a power of 2
-You can move/insert/delete frames or slices
-You can create new DDS files with it.
-I included a DDS file for you to play with. It’s called “”.

-Does not save to anything but a ARGB DDS file. This could be changed if you want to support it. I tried to output a 24bit texture but it failed because the usage type would not allow it. Unfortunately the usage type could not be changed from none.
-It probably doesn't load all formats of a DDS either. I only messed with 32bit ARGB and 32bit RGB. I would like to make it support monochrome images but for now I don't need that. I may never need that in a DDS file so I wouldn't count on this.
-The code could be prettier but I got tired. :)

DDS 3D Texture (5.23 mb)

Add comment

  Country flag

  • Comment
  • Preview