;Birmingham Cross-City BVE Route Object
;Cross-City South
;--------------------------------------
;(c) Robert Glass, Simon Townsend & Anthony Bowden, 2002.
;http://scotrailsim.co.uk
;www.railsimroutes.co.uk
;
;Please seek permission before using
;copyright material in your own route
;
;See 'Readme.txt'

CreateMeshBuilder,
AddVertex,-0.8, -0.05, 24.75,
AddVertex,-1.0, 1.22, 24.75,
AddVertex,-1.0, 1.22, 7.50,
AddVertex,-0.8, -0.05, 7.50,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,37ch.bmp,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,

;Side Left
CreateMeshBuilder,
AddVertex,-1.2, 1.2, 24.75,
AddVertex,-1.2, 2.5, 24.75,
AddVertex,-1.2, 2.6, 23.25,
AddVertex,-1.2, 3.27, 23,
AddVertex,-1.2, 1.2, 7.5,
AddVertex,-1.2, 2.5, 7.5,
AddVertex,-1.2, 2.6, 9,
AddVertex,-1.2, 3.27, 9.25,
AddFace,0,1,5,4,
AddFace,1,2,6,5,
AddFace,2,3,7,6,
GenerateNormals,

LoadTexture,37Es1.bmp,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0.4,
SetTextureCoordinates,2,0.91,0.35,
SetTextureCoordinates,3,0.89,0,
SetTextureCoordinates,4,0,1,
SetTextureCoordinates,5,0,0.4,
SetTextureCoordinates,6,0.09,0.35,
SetTextureCoordinates,7,0.105,0,

;Bonnet L
CreateMeshBuilder,
AddVertex,-0, 3.23, 9,
AddVertex,-0, 3.13, 7.5,
AddVertex,-0.6, 3.03, 7.5,
AddVertex,-0.6, 3.13, 9,
AddVertex,-1.06, 2.83, 9,
AddVertex,-1.06, 2.73, 7.5,
AddVertex,-1.2, 2.6, 9,
AddVertex,-1.2, 2.5, 7.5,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
GenerateNormals,

LoadTexture,37Ebon.bmp,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0, 0.2,
SetTextureCoordinates,3, 1, 0.2,
SetTextureCoordinates,4, 1, 0.5,
SetTextureCoordinates,5, 0, 0.5,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,

CreateMeshBuilder,
AddVertex,-1.2, 0, 7.5,
AddVertex,-1.2, 2.5, 7.5,
AddVertex,-1.06, 2.73, 7.5,
AddVertex,-0.6, 3.03, 7.5,
AddVertex,0, 3.13, 7.5,
AddVertex,0, 0, 7.5,
AddFace,0,1,2,3,4,5,
GenerateNormals,

LoadTexture,37Efbs1.bmp,
SetTextureCoordinates,0, 0,1,
SetTextureCoordinates,1, 0,0.25,
SetTextureCoordinates,2, 0.1,0.15,
SetTextureCoordinates,3, 0.5,0.05,
SetTextureCoordinates,4, 0.9,0,
SetTextureCoordinates,5, 1,1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,0, 0, 7.5,
AddVertex,0, 3.13, 7.5,
AddVertex,0.6, 3.03, 7.5,
AddVertex,1.06, 2.73, 7.5,
AddVertex,1.2, 2.5, 7.5,
AddVertex,1.2, 0, 7.5,
AddFace,0,1,2,3,4,5,
GenerateNormals,

LoadTexture,37Efbs2.bmp,
SetTextureCoordinates,0, 0,1,
SetTextureCoordinates,1, 0,0,
SetTextureCoordinates,2, 0.5,0.05,
SetTextureCoordinates,3, 0.9,0.15,
SetTextureCoordinates,4, 0.95,0.25,
SetTextureCoordinates,5, 1,1,
SetDecalTransparentColor,0,0,0,
;Roof
CreateMeshBuilder,
AddVertex,-0, 3.9, 23,
AddVertex,-0, 3.9, 9.25,
AddVertex,-0.6, 3.8, 9.25,
AddVertex,-0.6, 3.8, 23,
AddVertex,-1.06, 3.5, 23,
AddVertex,-1.06, 3.5, 9.25,
AddVertex,-1.2, 3.27, 23,
AddVertex,-1.2, 3.27, 9.25,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
GenerateNormals,

LoadTexture,37Erf2.bmp,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0.150, 0,
SetTextureCoordinates,2, 0.125, 0.2,
SetTextureCoordinates,3, 1, 0.2,
SetTextureCoordinates,4, 1, 0.5,
SetTextureCoordinates,5, 0.1, 0.5,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0.075, 1,

;Cab L
CreateMeshBuilder,
AddVertex,-1.2, 2.6, 9,
AddVertex,-1.06, 2.83, 9,
AddVertex,-0.6, 3.13, 9,
AddVertex,0, 3.23, 9,
AddVertex,-1.2, 3.27, 9.25,
AddVertex,-1.06, 3.5, 9.25,
AddVertex,-0.6, 3.8, 9.25,
AddVertex,0, 3.9, 9.25,
AddFace,0,4,5,1,
AddFace,1,5,6,2,
AddFace,2,6,7,3,
GenerateNormals,

LoadTexture,37Ecab1.bmp,
SetTextureCoordinates,0, 0, 0.9,
SetTextureCoordinates,1, 0.15, 0.75,
SetTextureCoordinates,2, 0.4, 0.55,
SetTextureCoordinates,3, 1, 0.45,
SetTextureCoordinates,4, 0, 0.5,
SetTextureCoordinates,5, 0.15, 0.35,
SetTextureCoordinates,6, 0.4, 0.15,
SetTextureCoordinates,7, 1, 0.05,


;Cab R
CreateMeshBuilder,
AddVertex,0, 3.23, 9,
AddVertex,0.6, 3.13, 9,
AddVertex,1.06, 2.83, 9,
AddVertex,1.2, 2.6, 9,
AddVertex,0, 3.9, 9.25,
AddVertex,0.6, 3.8, 9.25,
AddVertex,1.06, 3.5, 9.25,
AddVertex,1.2, 3.27, 9.25,
AddFace,0,4,5,1,
AddFace,1,5,6,2,
AddFace,2,6,7,3,
GenerateNormals,

LoadTexture,37Ecab2.bmp,
SetTextureCoordinates,0, 1,0.45,
SetTextureCoordinates,1, 0.4,0.55,
SetTextureCoordinates,2, 0.15,0.75,
SetTextureCoordinates,3, 0,0.9,
SetTextureCoordinates,4, 1,0.05,
SetTextureCoordinates,5, 0.4,0.15,
SetTextureCoordinates,6, 0.15,0.35,
SetTextureCoordinates,7, 0,0.5,

CreateMeshBuilder,
AddVertex,-1,3.75,15,
AddVertex,-2,7,15,
AddVertex,1.6,7,15,
AddVertex,0.6,3.75,15,
AddFace,0,1,2,3,
SetColor,255,255,255,150,
GenerateNormals,

LoadTexture,Clag.bmp,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,


;bonnet Rear
;Bonnet L
CreateMeshBuilder,
AddVertex,-0, 3.23, 23.25,
AddVertex,-0, 3.13, 24.75,
AddVertex,-0.6, 3.03, 24.75,
AddVertex,-0.6, 3.13, 23.25,
AddVertex,-1.06, 2.83, 23.25,
AddVertex,-1.06, 2.73, 24.75,
AddVertex,-1.2, 2.6, 23.25,
AddVertex,-1.2, 2.5, 24.75,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
AddFace,6,7,5,4,
GenerateNormals,

LoadTexture,37Ebon.bmp,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0, 0.2,
SetTextureCoordinates,3, 1, 0.2,
SetTextureCoordinates,4, 1, 0.5,
SetTextureCoordinates,5, 0, 0.5,
SetTextureCoordinates,6, 1, 1,
SetTextureCoordinates,7, 0, 1,

CreateMeshBuilder,
AddVertex,-3.2, -0.1, 19.5,
AddVertex,1.2, -0.1, 29.5,
AddVertex,1.2, -0.1, 7.25,
AddVertex,-3.2, -0.1, -2.75,
AddFace,0,1,2,3,
SetColor,40,40,40,80,
GenerateNormals,