Gothic 3 mesh (.xcmsh)

When creating static meshes for Gothic 3 it is important that each used material name corresponds to a Gothic 3 material (i.e. is named after a .xshmat file). The textures used in the 3D file, on the other hand, have no effect on the in-game appearance at all because the engine looks up the textures in the material files.

Vertex colors are important when editing level meshes: The alpha value of a vertex determines how much (sun) light is reflected from that location of the mesh. The RGB values of a vertex are used by certain materials to blend between different textures, for example for creating a smooth transition between a grass and a rock texture. Such materials can be recognized in the Genome Material Editor because they have a shader element of the type 'eCColorSourceVertexColor'.

The best way to understand how this works is to examine one of the original level meshes in a 3D editor, with special regard to the vertex colors.

The .3db file format is well-suited for importing and exporting meshes with vertex colors in GMax, 3ds Max and Blender. To represent RGBA vertex colors in Blender, use two vertex color attributes with the names 'rgb' and 'alpha'.