In Trainz, content creation refers to the creation of content, or assets, that can be used in-game. Assets may be 3D objects such as buildings, trees, tracks or rolling stock; they may be driver sessions, rules or scenarios; or they may be routes that may incorporate many different model or non-model assets. This article is concerned with the creation of 3D objects since the creation of other assets is discussed elsewhere in this wikibook.
3D objects are sometimes called models. Generally they consist of two main components:
- The mesh, which is a 3D model. The mesh is usually comprised of many faces, or polygons.
- Textures, which are 2D images applied to the faces of the mesh. By changing a texture file an object's mesh remains the same but its appearance can change drastically.
The mesh gives an object its shape whereas the textures define its appearance.
This thread has many useful tutorials listed.
Software for mesh creationEdit
3D modelling software is required in order to create 3D objects for Trainz. Currently, a number of different software packages are available:
- 3D Canvas (commercial software). The Pro version is required for the Trainz exporter. The exporter supports one of two more functions than the official gmax exporter. Not officially supported by Auran.
- Autodesk 3ds Max (commercial software). It is expensive and sophisticated but there is a new beta exporter for version 9 currently being developed. Already available is an exporter available for versions 4 to 6.
- Blender (open-source freeware). It is very sophisticated and offers more capabilities than gmax (for example, the ability to do texture baking and ambient occlusion). Blender has a very large and varied user base, and there are many tutorials online. One of the better online communities is BlenderArtists.org. Recently, an open-source Trainz exporter has been developed for Blender (currently Windows only). Blender is not officially supported by Auran.
- gmax (freeware). gmax is essentially the freeware, "lite" version of 3ds Max, and as such many advanced features are removed. It is still available to download from Turbosquid but further development of the software is discontinuied. Auran used to maintain the Trainz Content Creation Pack plugin for gmax, which enables export of gmax models for Trainz. Paul Hobbs discusses configuring gmax for Trainz here. Turbosquid maintain a gmax support forum here. There are many gmax modelling tutorials online.
Reskinning is the act of applying a different texture to the mesh of an existing 3D model. The simplest method is to reskin another content creator's mesh but you will need permission from the original creator to publish the reskinned model.
- Trainz PaintShed (obsolete). Auran used to bundle the PaintShed software with versions of Trainz up to TRS2006. PaintShed was an early attempt to help people create content without having to purchase additional software, but is now obsolete. PaintShed allowed a limited number of reskinning options to be applied to some of the built-in rolling stock meshes. It was an excellent introduction to reskinning for anyone unfamiliar with the process. No permission was required to reskin models in PaintShed provided the reskinned models were for your own use.
Conventional graphics softwareEdit
For more conventional reskinning, you need to be able to edit a 3D object's texture files. These are normally
.tga files but they can be
.jpg files should never be used. Note to edit a
.texture file you need TGAtool2 to extract the textures or see page 193 of the Trainz Classics Content Creation Guide for an explanation of how to edit these files.
A number of software packages are available:
- Adobe Photoshop (commercial).
- Corel PaintShop Pro (commercial).
- GIMP (open-source freeware). GIMP has about the best lettering capabilities of any graphics program. You can use the eye dropper to select the letterings colour then change the font size and the text changes it's size on the image, use M for move to move the lettering but select move the active layer so it just moves the lettering. When you save the
.tgawith GIMP make sure you save it without RLE compression and alpha channel. Gimp adds alpha channel when you add a second layer. To remove it, layer, transparency, remove alpha channel.
- Microsoft Paint (included with the Windows operating system). Microsoft Paint can be used to edit
.bmpfiles but not
- Paint.NET (freeware).
Many content creators prefer to use commercial products such as PaintShop Pro or Photoshop for additional functionality and ease of use. PaintShop Pro being less expensive has a larger following in the forums. The PaintShop PhotoPro XI version or later has useful tools for colour changing which makes using black and white photos as coloured textures much easier and can be found on eBay for a reasonable price.
It is possible to convert Gmax meshes to other software. http://panda3d.org/wiki/index.php/Converting_from_GMax http://www.katsbits.com/htm/tutorials/gmax_exporting-models-obj.htm
A very useful set of links to tutorials on Gmax and other aspects of content creation can be found on Auran's web site at http://www.auran.com/TRS2004/learning_f.php
The Auran XML importer, needed for Blender etc. http://online.ts2009.com/mediaWiki/index.php5/Downloads then download Trainzimporter.rar