Attachment Maker Tutorial
Attachment Maker Tutorial
Some Trainz users wish to add attachment points to I think I have created a really simple tool that will make
existing assets for their own use or, with permission of the adding attachments a snap. Users will need to be able to
original creator, make some additions to his asset for read an engineering drawing, and be able to visualise a
sharing with others. 3d object from the three basic views. Other than that
virtually no drafting skills are needed.
A well proven way to add attachments involves making a
another mesh in GMax/3dsMax or Blender with what ever
attachments are needed along with an invisible object to Using Attachment Maker.
allow the mesh to export out of the modelling program.
This method is a bit hit or miss because there is no way to Installation.
get the original model into the modelling program so that
the attachments can be positioned relative to the shape of The program is available for free download from my
the parent object. PEVSoft Download page.
Attachments are easily added to meshes directly, but http://www.members.optusnet.com.au/~villaump/pevsoft.htm
again no visual reference is provided to know where to
place the attachments. And of course Auran's policy of Run the installer and the program will be loaded on to the
not allowing users to mess with their meshes also needs Program Files area of your C: drive, along with a desktop
to be adhered to. Auran's TrainzMeshImporter is icon and an entry in the PEVSoft folder of your All
specifically written to allow meshes from a variety of Programs menu.
sources to be safely imported into the game, and in this
case it provides the necessary conversion between the Auran's TrainzMeshImporter.exe is included in the setup
attachment data and an IM mesh for Trainz. program. It may require a further download from MicroSoft
(See below)
GMax and other modelling programs provide neat multiple
views of an object in wire frame mode that allow Note that the beta and first release versions of this
attachments to be positioned within a model. It seemed program have some errors in the attachment rotation
logical that if we could directly make a multi view display mathematics that have now been resolved.
of a mesh we could add attachments quickly and
accurately.
The views are the standard third angle projection, with the
plan (top) view being above the front view, and the side
view to the right. Those of you with drafting experience
Left Click in any view and the attachment tripod will follow
the cursor when you drag it. Positioning as you can see
Note the loco body is in three views. Top left is plan (top)
takes moments.
view, lower left is front view, and lower right is the side
view.
Making the Attachment Mesh Putting the Attachment Mesh into Trainz
When you have placed your new attachments the results To make the attachments work in Trainz an attachments
are saved in the form of a mesh named "attach_mesh.im". mesh reference must be added to the mesh table in the
The name can be changed, if you so desire, in the Save config.txt file for the asset. The following example adds
file dialogue. attachments to a single mesh object.(mesh table only
shown here)
To save the mesh click on the "Save Att Mesh" item in the
"File" menu. mesh-table {
default {
mesh "steam_loco.im"
auto-create 1
}
attachments {
mesh "attach_mesh.im"
auto-create 1
}
}
Please be aware that the program overwrites any existing If you have added passenger, load, or smoke attachments
"attach_mesh.im" file when saving the data. and so on further additions will be needed to the config.txt
file. Again, refer to your Content Creator's Guide.
1. In the program help there is a reference to an error 2. The Attachment Maker program, can handle 256
message "Gimball Lock. Cannot resolve angles." attachments in one mesh. This is the same limit as the
This message will only occur if reloading an Trainz game itself imposes.