
﻿;www.Trainsimcentral.co.uk

CreateMeshBuilder,
AddVertex,-1.31, 0.3, 8.4,
AddVertex,-1.31, 3.2, 8.4,
AddVertex, 1.31, 3.2, 8.4,
AddVertex, 1.31, 0.3, 8.4,
AddFace,3,2,1,0,
GenerateNormals,
LoadTexture,Train_ba.png,
SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 0, 1,
SetDecalTransparentColor,0, 0, 0,

CreateMeshBuilder,
AddVertex,-1.28, 1.5, 8.391,
AddVertex,-1.09, 2.35, 8.391,
AddVertex,-0.92, 2.59, 8.391,
AddVertex, 0.92, 2.59, 8.391,
AddVertex, 1.09, 2.35, 8.391,
AddVertex, 1.28, 1.5, 8.391,
AddFace2,0,1,2,3,4,5
setcolor,30,30,30,200

CreateMeshBuilder,
AddVertex,-0.3, 2.92, -8.4,
AddVertex,-0.7, 2.76, -8.4,
AddVertex,-0.97, 2.55, -8.4,
AddVertex,-1.09, 2.39, -8.4,
AddVertex,-1.28, 1.5, -8.4,
AddVertex,-1.31, 0.7, -8.4,
AddVertex,-0.3, 2.92, 8.4,
AddVertex,-0.7, 2.76, 8.4,
AddVertex,-0.97, 2.55, 8.4,
AddVertex,-1.09, 2.39, 8.4,
AddVertex,-1.28, 1.5, 8.4,
AddVertex,-1.31, 0.7, 8.4,
AddFace,1,7,6,0,
AddFace,2,8,7,1,
AddFace,3,9,8,2,
AddFace,4,10,9,3,
Addface,5,11,10,4,
LoadTexture,Train_l.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 0, 0.11,
SetTextureCoordinates,2, 0, 0.35,
SetTextureCoordinates,3, 0, 0.355, 
SetTextureCoordinates,4, 0, 0.65,
SetTextureCoordinates,5, 0, 1,
SetTextureCoordinates,6, 1, 0,
SetTextureCoordinates,7, 1, 0.11,
SetTextureCoordinates,8, 1, 0.35,
SetTextureCoordinates,9, 1, 0.355, 
SetTextureCoordinates,10, 1, 0.65,
SetTextureCoordinates,11, 1, 1,
SetDecalTransparentColor,0,0,255,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-0.3, 2.92, 8.4,
AddVertex,-0.3, 2.92, -8.4,
AddVertex, 0, 2.952, -8.4,
AddVertex, 0, 2.952, 8.4,
AddVertex, 0, 2.952, 8.4,
AddVertex, 0, 2.952, -8.4,
AddVertex, 0.3, 2.92, -8.4,
AddVertex, 0.3, 2.92, 8.4,
AddFace,3,2,1,0
Addface,7,6,5,4,
setcolor,110,110,110
GenerateNormals,

;right outer
CreateMeshBuilder,
AddVertex, 0.3, 2.92, 8.4,
AddVertex, 0.7, 2.76, 8.4,
AddVertex, 0.97, 2.55, 8.4,
AddVertex, 1.09, 2.39, 8.4,
AddVertex, 1.28, 1.5, 8.4,
AddVertex, 1.31, 0.7, 8.4,
AddVertex, 0.3, 2.92, -8.4,
AddVertex, 0.7, 2.76, -8.4,
AddVertex, 0.97, 2.55, -8.4,
AddVertex, 1.09, 2.39, -8.4,
AddVertex, 1.28, 1.5, -8.4,
AddVertex, 1.31, 0.7, -8.4,
AddFace,1,7,6,0,
AddFace,2,8,7,1,
AddFace,3,9,8,2,
AddFace,4,10,9,3,
Addface,5,11,10,4,
GenerateNormals,
LoadTexture,Train_l.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 1, 0.11,
SetTextureCoordinates,2, 1, 0.35,
SetTextureCoordinates,3, 1, 0.355, 
SetTextureCoordinates,4, 1, 0.65,
SetTextureCoordinates,5, 1, 1,
SetTextureCoordinates,6, 0, 0,
SetTextureCoordinates,7, 0, 0.11,
SetTextureCoordinates,8, 0, 0.35,
SetTextureCoordinates,9, 0, 0.355, 
SetTextureCoordinates,10, 0, 0.65,
SetTextureCoordinates,11, 0, 1,
SetDecalTransparentColor,0,0,255,

;backwall
CreateMeshBuilder,
AddVertex,-1.31, 0.3, -8.4,
AddVertex,-1.31, 3.2, -8.4,
AddVertex, 1.31, 3.2, -8.4,
AddVertex, 1.31, 0.3, -8.4,
AddFace,0,1,2,3,
GenerateNormals,
LoadTexture,Train_back2.png,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0, 0, 0,

CreateMeshBuilder,
AddVertex,-1.26, 1.4, -8.395,
AddVertex,-0.85, 2.6, -8.395,
AddVertex, 0.85, 2.6, -8.395,
AddVertex, 1.26, 1.4, -8.395,
AddFace2,0,1,2,3,
setcolor,80,80,80,90

;Wheelset
CreateMeshBuilder,
AddVertex,-0.8, 0.7, 8.1,
AddVertex,-0.8, 0.7, -8.1,
AddVertex,-0.8, 0, -8.1,
AddVertex,-0.8, 0, 8.1,
AddVertex, 0.8, 0.7, 8.1,
AddVertex, 0.8, 0.7, -8.1,
AddVertex, 0.8, 0, -8.1,
AddVertex, 0.8, 0, 8.1,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,
LoadTexture,bogie.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-1.132, 0.7, 8.3,
AddVertex,-1.132, 0.7, -8.3,
AddVertex,-1.132, 0.0, -8.3,
AddVertex,-1.132, 0.0, 8.3,
AddVertex, 1.132, 0.7, 8.3,
AddVertex, 1.132, 0.7, -8.3,
AddVertex, 1.132, 0.0, -8.3,
AddVertex, 1.132, 0.0, 8.3,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
GenerateNormals,
LoadTexture,bogie2.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
cube,0.16,0.062,0.15
setcolor,6,6,6,
translate,-0.97,0.28,6.3,
CreateMeshBuilder,
cube,0.16,0.062,0.04
setcolor,6,6,6,
translate,-0.97,0.28,4.7,
CreateMeshBuilder,
cube,0.16,0.062,0.15
setcolor,6,6,6,
translate,0.97,0.28,6.3,
CreateMeshBuilder,
cube,0.16,0.062,0.04
setcolor,6,6,6,
translate,0.97,0.28,4.7,
CreateMeshBuilder,
cube,0.16,0.062,0.15
setcolor,6,6,6,
translate,-0.97,0.28,-4.4,
CreateMeshBuilder,
cube,0.16,0.062,0.04
setcolor,6,6,6,
translate,-0.97,0.28,-6.0,
CreateMeshBuilder,
cube,0.16,0.062,0.15
setcolor,6,6,6,
translate,0.97,0.28,-4.4,
CreateMeshBuilder,
cube,0.16,0.062,0.04
setcolor,6,6,6,
translate,0.97,0.28,-6.0,

CreateMeshBuilder,
AddVertex,-0.8, 0.3, -5.8,
AddVertex,-0.8, 0.7, -5.8,
AddVertex, 0.8, 0.7, -5.8,
AddVertex, 0.8, 0.3, -5.8,
AddVertex,-0.8, 0.3, -4.9,
AddVertex,-0.8, 0.7, -4.9,
AddVertex, 0.8, 0.7, -4.9,
AddVertex, 0.8, 0.3, -4.9,
AddVertex,-0.8, 0.3, 5.8,
AddVertex,-0.8, 0.7, 5.8,
AddVertex, 0.8, 0.7, 5.8,
AddVertex, 0.8, 0.3, 5.8,
AddVertex,-0.8, 0.3, 4.9,
AddVertex,-0.8, 0.7, 4.9,
AddVertex, 0.8, 0.7, 4.9,
AddVertex, 0.8, 0.3, 4.9,
AddFace,0,1,2,3,
AddFace,7,6,5,4,
AddFace,8,9,10,11,
AddFace,12,13,14,15,
setcolor,10,10,10
GenerateNormals,

;int window glass
CreateMeshBuilder,
AddVertex,-1.05, 2.39, 6.6,
AddVertex,-1.05, 2.39, 3.6,
AddVertex,-1.24, 1.5, 3.6,
AddVertex,-1.24, 1.5, 6.6,
AddVertex,-1.05, 2.39, 1.6,
AddVertex,-1.05, 2.39, -1.4,
AddVertex,-1.24, 1.5, -1.4,
AddVertex,-1.24, 1.5, 1.6,
AddVertex,-1.05, 2.39, -3.6,
AddVertex,-1.05, 2.39, -7.2,
AddVertex,-1.24, 1.5, -7.2,
AddVertex,-1.24, 1.5, -3.6,
AddVertex, 1.05, 2.39, 6.6,
AddVertex, 1.05, 2.39, 3.6,
AddVertex, 1.24, 1.5, 3.6,
AddVertex, 1.24, 1.5, 6.6,
AddVertex, 1.05, 2.39, 1.6,
AddVertex, 1.05, 2.39, -1.4,
AddVertex, 1.24, 1.5, -1.4,
AddVertex, 1.24, 1.5, 1.6,
AddVertex, 1.05, 2.39, -3.6,
AddVertex, 1.05, 2.39, -7.2,
AddVertex, 1.24, 1.5, -7.2,
AddVertex, 1.24, 1.5, -3.6,
AddFace,3,2,1,0,
AddFace,7,6,5,4,
AddFace,11,10,9,8,
AddFace,12,13,14,15,
AddFace,16,17,18,19,
AddFace,20,21,22,23,
setcolor,180,180,180,30
GenerateNormals,
LoadTexture,backdrop2.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 0, 0,
SetTextureCoordinates,5, 1, 0,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,
SetTextureCoordinates,8, 0, 0,
SetTextureCoordinates,9, 1, 0,
SetTextureCoordinates,10, 1, 1,
SetTextureCoordinates,11, 0, 1,
SetTextureCoordinates,12, 0, 0,
SetTextureCoordinates,13, 1, 0,
SetTextureCoordinates,14, 1, 1,
SetTextureCoordinates,15, 0, 1,
SetTextureCoordinates,16, 0, 0,
SetTextureCoordinates,17, 1, 0,
SetTextureCoordinates,18, 1, 1,
SetTextureCoordinates,19, 0, 1,
SetTextureCoordinates,20, 0, 0,
SetTextureCoordinates,21, 1, 0,
SetTextureCoordinates,22, 1, 1,
SetTextureCoordinates,23, 0, 1,
SetEmissiveColor,255,255,255
