This is an old revision of the document!


Overview

The “texture converter” tool is the tool used to convert images files to a .DDS compressed texture file that can be used by the engine.
Here is the list of image file format that can be converted to the DDS format used by the engine:

  • .TGA
  • .PNG

More information about the DDS texture file format can be found here.

Usage

When you open the texture converter from the editor you have 2 choices.

  • Convert one or multiple files.
  • Convert all file in the specified folder.

Once one or more file are selected with the file browser. You can set the conversion parameters.

At the bottom of the tool you can find the list of file that are being converted to textures. Here you can remove some file by clicking on the delete button of each file.
When your parameters are set you can click on the “Convert” button and the conversion process will begin.

At the end of the conversion process a popup will be displayed to show you all information you need to know. Read it carefully to see if something went wrong or not.

Conversion Parameters

Auto Mode

If the auto mode is enabled then the conversion parameters will be automatically set according to the file names if they are following the recommended naming convention.
Example: If a file is named “T_MyTexture_N.tga” it will be considered as a normal map and converted to DXT5 xGxR format automatically.

Open Texture Editor When Finished

If enabled then the converted textures will be opened in the texture editor once the conversion process is finished.

Compression Type

Choose between the various DDS formats that are available. You can find a description of each formats here.
Please Note It's very important to choose the right format according to how the texture will be used in the game.

Generate Mipmaps

Here you can choose if mipmaps will be generated for your texture. In most cases mipmaps are needed but textures that are used for UI typically does not need mipmaps to be generated.

Alpha Is Transparency

If enabled, the Alpha channel of the texture will be considered as transparency (used for foliage texture for example). The texture converter will then apply some special algorithms for improving the alpha rendering when the texture will be rendered on 3D models.

Resize

Specify whether or not the texture need to be resized (this do not affect the source image).

Size

Specify the size of the converted texture if “Resize” parameter is enabled.

  • modding/editortools/texture_converter.1525791057.txt.gz
  • Last modified: 14/10/2018 12:13
  • (external edit)