Texture File

From Rigs of Rods Wiki

Jump to:navigation, search

This is a picture used for the truck body. Its name is referenced in the Material File. The texture coordinates in the Truck Description File refers to this picture.

The texture file MUST have power of 2 dimensions. That means that horizontal and vertical dimensions must be either 32, 64 128, 256, 1024 or 2048... Dimensions larger that 2048 are discouraged as they will use too much video memory.

Example of reasonable body texture file: 1024x512. For emissive texture, you can use smaller sizes as it will give a pleasant light blur and save video memory (e.g. 256x128).

It is preferable to use as much as possible all the picture surface for useful texture elements. Unused surfaces of a texture consumes uselessly video memory.

mcreed has contributed a cool Texturing Tutorial that describes how to fill the submesh and cab parts of the truck file.

The best texture file format is the DDS format. See Making DDS textures.