User Tools

Site Tools


falcon4:textures:aboutdds

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
falcon4:textures:aboutdds [2017/10/06 17:22] – http to https switch. snakemanfalcon4:textures:aboutdds [2024/07/31 09:22] (current) – links added. snakeman
Line 1: Line 1:
-====== About DDS Files ====== +====== Falcon 4 About DDS Files ======
  
-by Zaggy+[[https://www.pmctactical.org/forum/viewforum.php?f=47|Falcon 4.0 Forum]], [[:falcon4|Falcon 4 Home]], [[falcon4:campaign|Falcon 4 Campaign]], [[falcon4:cockpits|Falcon 4 Cockpits]], [[falcon4:database|Falcon 4 Database]], [[falcon4:file_formats|Falcon 4 File Formats]], [[falcon4:srtm|Falcon 4 SRTM Terrain]], [[falcon4:terrain|Falcon 4 Terrain]], [[falcon4:textures|Falcon 4 Textures]], [[falcon4:tools|Falcon 4 Tools]] 
 + 
 +**Falcon 4 About DDS Files** by Zaggy
  
 A brief description of answers to the most common things new skinners want to know about DDS fles, what they are, where they go and how they're made. Should be of use to you out there who are attempting your first skin or mod. A brief description of answers to the most common things new skinners want to know about DDS fles, what they are, where they go and how they're made. Should be of use to you out there who are attempting your first skin or mod.
Line 9: Line 11:
 Well to quote Microsoft //"The Microsoft DirectDraw Surface (DDS) file format is used to store textures and cubic environment maps, both with and without mipmap levels. This format can store uncompressed and compressed pixel formats, and is the preferred file format for storing DXTn compressed data. This file format is supported by the Microsoft DirectX Texture tool (DXTex Tool), as well as some third party tools, and by the Direct3D extensions (D3DX) library."// Which is all well and good I guess. Simply, **DDS is the 'new' way that RV/OF is using to hold textures for all objects in F4**. Well to quote Microsoft //"The Microsoft DirectDraw Surface (DDS) file format is used to store textures and cubic environment maps, both with and without mipmap levels. This format can store uncompressed and compressed pixel formats, and is the preferred file format for storing DXTn compressed data. This file format is supported by the Microsoft DirectX Texture tool (DXTex Tool), as well as some third party tools, and by the Direct3D extensions (D3DX) library."// Which is all well and good I guess. Simply, **DDS is the 'new' way that RV/OF is using to hold textures for all objects in F4**.
  
-====== Why'they change from 256 Colour BMP's? ======+====== Why'They Change From 256 Colour BMP's? ======
  
   * Well firstly, cos DDS is the native DirectX format, and the format in which these textures are loaded into GPU memory; which means you can save the CPU cycles that were previously used to encode the 256 Colour BMP into the format that DirectX needs to disply the texture on the obejct in game. So in this respect, it improves performance.   * Well firstly, cos DDS is the native DirectX format, and the format in which these textures are loaded into GPU memory; which means you can save the CPU cycles that were previously used to encode the 256 Colour BMP into the format that DirectX needs to disply the texture on the obejct in game. So in this respect, it improves performance.
Line 15: Line 17:
   * DDS files are stored already in there compressed format; Substantial disk space savings can be made over a normal 24Bit BMP as well as it takes less time to read the file off the HDD (again resulting in a performance increase).   * DDS files are stored already in there compressed format; Substantial disk space savings can be made over a normal 24Bit BMP as well as it takes less time to read the file off the HDD (again resulting in a performance increase).
  
-====== Where are these DDS files kept? ======+====== Where Are These DDS Files Kept? ======
  
 The DDS textures for all objects in F4 are now kept in the **..\MicroProse\Falcon4\terrdata\objects\KoreaObj** folder. This approach actually makes it very convienient for the skinner, as all files are readily accessable, and altering a skin simply requires altering that texture file or replacing it with the updated texture file. The DDS textures for all objects in F4 are now kept in the **..\MicroProse\Falcon4\terrdata\objects\KoreaObj** folder. This approach actually makes it very convienient for the skinner, as all files are readily accessable, and altering a skin simply requires altering that texture file or replacing it with the updated texture file.
Line 22: Line 24:
 [[https://pmc.editing.wiki/images/aboutdds_folder.jpg|click for larger]]. [[https://pmc.editing.wiki/images/aboutdds_folder.jpg|click for larger]].
  
-====== There are different DDS formats. What does RV/OF use? ======+====== There Are Different DDS Formats. What Does RV/OF Use? ======
  
 RV/OF versions use **DXT1(alpha) ARGB DDS** file Format. This is commonly referred to as **DXT1a**. The alpha component is the data that allows us to make things transparent in our textures. For RV/OF, we do not use Mip Mapping, so **No Mip Maps** need to be saved. Thats about it. **DXT1a with NO mip maps**. RV/OF versions use **DXT1(alpha) ARGB DDS** file Format. This is commonly referred to as **DXT1a**. The alpha component is the data that allows us to make things transparent in our textures. For RV/OF, we do not use Mip Mapping, so **No Mip Maps** need to be saved. Thats about it. **DXT1a with NO mip maps**.
  
-====== What do need to make my DDS files? ====== +====== What Do Need To Make My DDS Files? ======
  
 Well you firstly need a 24Bit image, which will of course be our skin, and then you need a DDS Compressor. The two I use are the **nVidia Photoshop DDS plug-in** and the nVidia command line tool, called **NVDXT**. Well you firstly need a 24Bit image, which will of course be our skin, and then you need a DDS Compressor. The two I use are the **nVidia Photoshop DDS plug-in** and the nVidia command line tool, called **NVDXT**.
Line 35: Line 37:
 **Con's**; only usable on software that can support Photoshop type graphics plug-ins. So youre basically restricted to Photoshop. No batch processing, unless you choose to use Photoshop Scripting. **Con's**; only usable on software that can support Photoshop type graphics plug-ins. So youre basically restricted to Photoshop. No batch processing, unless you choose to use Photoshop Scripting.
  
-Secondly, the also freeware **NVDXT** tool, also from the nVidia Developers Website. This is a simple command line tool, that is unzipped and will run from whatever location you copy it to. I am pondering writing a small VB Wrapper for this app at some stage, more for personal convienience, more than anything else. Unless of course someone else wants to write it for me. +Secondly, the also freeware **NVDXT** tool, also from the nVidia Developers Website. This is a simple command line tool, that is unzipped and will run from whatever location you copy it to. I am pondering writing a small VB Wrapper for this app at some stage, more for personal convienience, more than anything else. Unless of course someone else wants to write it for me.
  
 **Pro's**; batch processing, you could process hundreds or thousands of graphic files in one hit, with one command line. Does not restrict the user to a specific bitmap editor, slimmer than the Photoshop Plug-in version.\\ **Pro's**; batch processing, you could process hundreds or thousands of graphic files in one hit, with one command line. Does not restrict the user to a specific bitmap editor, slimmer than the Photoshop Plug-in version.\\
 **Con's**; does not support a specified alpha colour (ie, you cant say R255 G0 B255 is CLEAR anywhere in the syntax of the most current version - **//but there are still ways to do create DDS with transparency using TIF format//**), runs from a command line, requires an additional plug-in or viewer app to view DDS files. **Con's**; does not support a specified alpha colour (ie, you cant say R255 G0 B255 is CLEAR anywhere in the syntax of the most current version - **//but there are still ways to do create DDS with transparency using TIF format//**), runs from a command line, requires an additional plug-in or viewer app to view DDS files.
  
-====== How do make my 24Bit image into a DDS skin? ======+====== How Do Make My 24bit Image Into A DDS Skin? ======
  
 **Photoshop DDS Plug-in** **Photoshop DDS Plug-in**
Line 49: Line 51:
 First, we need to prepare our image. To do this, you need to flatten your image, in otherwords combine all the layers. You can do this with **Layer -> Flatten Image**. If the resulting single layer is named //Background//, (this is a reserved name, meaning some functions do not work on it. The following is one of those cases!) simply rename it. In Photoshop 7.0, we just double click on the name in the layers window, and enter our new name or simply use the default name of //Layer 0//, which is normally what shows up. First, we need to prepare our image. To do this, you need to flatten your image, in otherwords combine all the layers. You can do this with **Layer -> Flatten Image**. If the resulting single layer is named //Background//, (this is a reserved name, meaning some functions do not work on it. The following is one of those cases!) simply rename it. In Photoshop 7.0, we just double click on the name in the layers window, and enter our new name or simply use the default name of //Layer 0//, which is normally what shows up.
  
-Select the Magic Wand tool, set its properties to a Tolerance of 1 and make sure Anti-Aliased is UNCHECKED. Now using that tool, select all the area's of **R255 G0 B255** (the **Magenta** 'Transparent' colour, see the below example of //24bit BMP//); you can add to your selected area by holding down the [Shift] key and clicking on the next area. You can also unselect an area by holding down the [Alt] key while you click. Once you have all the Magenta selected, clear it with Edit -> Clear, alternatively cut it with Edit -> Cut or [Ctrl] + [X]. You should now be able to see Photoshop's Grey/White chequered backgroud, indicating there is nothing present. +Select the Magic Wand tool, set its properties to a Tolerance of 1 and make sure Anti-Aliased is UNCHECKED. Now using that tool, select all the area's of **R255 G0 B255** (the **Magenta** 'Transparent' colour, see the below example of //24bit BMP//); you can add to your selected area by holding down the [Shift] key and clicking on the next area. You can also unselect an area by holding down the [Alt] key while you click. Once you have all the Magenta selected, clear it with Edit -> Clear, alternatively cut it with Edit -> Cut or [Ctrl] + [X]. You should now be able to see Photoshop's Grey/White chequered backgroud, indicating there is nothing present.
  
-We are now ready to save, File -> Save As... , select DDS from the drop down Format box, enter a filename (ideally the texture number) and click [Save]. The DDS dialogue box (see Image) now appears. the Important settings are Save Format = DXT1 ARGB (1 bit Alpha) and MIP maps = No MIP maps. You can choose to preview the texture in a variety of formats also, but pay attention to the DXT1(alpha) preview. The area's formerly of Magenta, should now be BLACK. +We are now ready to save, File -> Save As... , select DDS from the drop down Format box, enter a filename (ideally the texture number) and click [Save]. The DDS dialogue box (see Image) now appears. the Important settings are Save Format = DXT1 ARGB (1 bit Alpha) and MIP maps = No MIP maps. You can choose to preview the texture in a variety of formats also, but pay attention to the DXT1(alpha) preview. The area's formerly of Magenta, should now be BLACK.
  
-If all looks good, click on the [Save] button, and its done! +If all looks good, click on the [Save] button, and its done!
  
 For textures without transparencies in them, the process is FAR easier. Its simply a case of Flattening the Image, and saving to DDS, using the same settings and outlined above. For textures without transparencies in them, the process is FAR easier. Its simply a case of Flattening the Image, and saving to DDS, using the same settings and outlined above.
Line 71: Line 73:
  
 <code> <code>
-nvdxt -file *.tif -nomipmap -dxt1a +nvdxt -file *.tif -nomipmap -dxt1a
 </code> </code>
  
Line 84: Line 86:
 **cd\** - Go to Root directory **cd\** - Go to Root directory
  
-**cd //<dirname>//** - Move into the dir //<dirname>// - example "cd convert" will move the user into the //Convert dir// +**cd //<dirname>//** - Move into the dir //<dirname>// - example "cd convert" will move the user into the //Convert dir//
  
 **//<driveletter>://** - Move to drive //<driveletter>// - example "e:" will move the user to the e: drive **//<driveletter>://** - Move to drive //<driveletter>// - example "e:" will move the user to the e: drive
Line 91: Line 93:
  
 You can find MUCH MORE (including tools and more indepth information at: [[http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/DDSFileReference/ddsfileformat.asp|microsoft]] page and [[http://developer.nvidia.com/page/home|nvidia]] page. You can find MUCH MORE (including tools and more indepth information at: [[http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/DDSFileReference/ddsfileformat.asp|microsoft]] page and [[http://developer.nvidia.com/page/home|nvidia]] page.
 +
falcon4/textures/aboutdds.1507310571.txt.gz · Last modified: 2017/10/06 17:22 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.