Editing DDS

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{grammar checked|darth}}
+
{{grammar}}
 
Direct Draw Suface is a file format developed by Microsoft for DirectX SDK. This format is used in many games to store [[texture compression | compressed textures]].  
 
Direct Draw Suface is a file format developed by Microsoft for DirectX SDK. This format is used in many games to store [[texture compression | compressed textures]].  
  
Darkplaces engine can load DDS storing images of the following formats:
+
Darkplaces engine can load DDS storing the images of the following formats:
 
* '''BGRA''' : 32-bit uncompressed image
 
* '''BGRA''' : 32-bit uncompressed image
 
* '''DXT1''' : 4-bit compressed DXT1 texture
 
* '''DXT1''' : 4-bit compressed DXT1 texture
Line 10: Line 10:
 
* '''DXT5''' : 8-bit compressed DXT5 texture
 
* '''DXT5''' : 8-bit compressed DXT5 texture
  
In Darkplaces, DDS is not a general texture format like [[TGA]] or [[JPEG]] but an override texture (dds/filename.dds) that get loaded instead of it's base texture (filename.tga), if present.  
+
In Darkplaces, DDS are not general texture format like [[TGA]] or [[JPEG]] but an override texture (dds/filename.dds) that get loaded instead of it's base texture (filename.tga), if presented.  
  
 
All DDS files should be stored under dds/ directory, rest of the path should mimic file path of the base texture:
 
All DDS files should be stored under dds/ directory, rest of the path should mimic file path of the base texture:
Line 18: Line 18:
 
  dds/models/mapobjects/inn/barrel1_1 <font color=green>// override models/mapobjects/inn/barrel1_1</font>
 
  dds/models/mapobjects/inn/barrel1_1 <font color=green>// override models/mapobjects/inn/barrel1_1</font>
  
DDS files should have mipmaps pre-generated. If there are no mipmaps generated, it is implied that this texture is not using mipmaps.  
+
DDS files should have mipmaps pre-generated. If there is no mipmaps generated, it is implied that this texture is not using mipmaps.  
  
{{important|Engine shouldn't try to use mipmaps if they do not exist in DDS (see [[Darkplaces_material_system/General_Keywords#noMipMaps | noPicMip]], also gfx/ images never use mipmaps) or it may crash.}}
+
{{important|Engine shouldn't try to use mipmaps on this texture (see [[Darkplaces_material_system/General_Keywords#noMipMaps | noPicMip]], also gfx/ images never use mipmaps) or it can crash.}}
  
{{bug|Some drivers don't deal with non-power-of-two compressed textures (giving the black walls). Best way is to always make DDS textures to be [[power-of-two]].}}
+
{{bug|Some drivers don't deal with non-power-of-two compressed textures (black walls). Best way is to always make DDS textures to be [[power-of-two]].}}
  
 
===DDS for NetRadiant===
 
===DDS for NetRadiant===
Line 56: Line 56:
 
[[Category:Glossary]]
 
[[Category:Glossary]]
 
[[Category:File formats]]
 
[[Category:File formats]]
{{finished}}
 
 
__NOTOC__
 
__NOTOC__

Please note that all contributions to Blood Wiki are considered to be released under the Creative Commons Attribution Share Alike (see BloodWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

This page is a member of 2 hidden categories:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox