;--------------------------------------
;NWM BVE Route Object File
;--------------------------------------
;(c) TSC team 2008
;www.bve4.net
;
;Object and textures (c) Robert Glass 2001-2003.
;www.scotrailsim.co.uk
;Sandymill - Invermay Electric BVE Route
;
;Please seek permission before using
;any NWM files in your own route.
;
;see 'Readme.txt' file.
;

CreateMeshBuilder,
AddVertex,-0.4, 1.1, 0.1,
AddVertex,-0.4, 1.1, 0.8,
AddVertex,-0.47, 1.2, 0.1,
AddVertex,-0.47, 1.2, 0.8,
AddVertex,-0.47, 3.43, 0.1,
AddVertex,-0.47, 3.43, 0.8,
AddVertex,-0.4, 3.53, 0.1,
AddVertex,-0.4, 3.53, 0.8,
AddVertex,0.4, 3.53, 0.1,
AddVertex,0.4, 3.53, 0.8,
AddVertex,0.47, 3.43, 0.1,
AddVertex,0.47, 3.43, 0.8,
AddVertex,0.47, 1.2, 0.1,
AddVertex,0.47, 1.2, 0.8,
AddVertex,0.4, 1.1, 0.1,
AddVertex,0.4, 1.1, 0.8,
AddFace2,0,1,3,2,
AddFace2,2,3,5,4,
AddFace2,4,5,7,6,
AddFace2,6,7,9,8,
AddFace2,8,9,11,10,
AddFace2,10,11,13,12,
AddFace2,12,13,15,14,
SetColor,55,55,55,
Translate,0,0,-12.8,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-0.4, 1.1, 0.1,
AddVertex,-0.4, 1.1, 0.8,
AddVertex,-0.47, 1.2, 0.1,
AddVertex,-0.47, 1.2, 0.8,
AddVertex,-0.47, 3.39, 0.1,
AddVertex,-0.47, 3.39, 0.8,
AddVertex,-0.4, 3.49, 0.1,
AddVertex,-0.4, 3.49, 0.8,
AddVertex,0.4, 3.49, 0.1,
AddVertex,0.4, 3.49, 0.8,
AddVertex,0.47,3.39, 0.1,
AddVertex,0.47,3.39, 0.8,
AddVertex,0.47,1.2, 0.1,
AddVertex,0.47,1.2, 0.8,
AddVertex,0.47,1.1, 0.1,
AddVertex,0.47,1.1, 0.8,
AddFace2,0,1,3,2,
AddFace2,2,3,5,4,
AddFace2,4,5,7,6,
AddFace2,6,7,9,8,
AddFace2,8,9,11,10,
AddFace2,10,11,13,12,
AddFace2,12,13,15,14,
SetColor,55,55,55,
Translate,0,0,11.5,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-1.23, 3.79, 0.25,
AddVertex,1.23, 3.79, 0.25,
AddVertex,-1.35, 1.55, 0.25,
AddVertex,1.35, 1.55, 0.25,
AddVertex,-1.028, 1, 0.25,
AddVertex,1.028 ,1, 0.25,
AddFace,0,1,3,2,
AddFace,2,3,5,4,
Translate,0,0,-12.7,
GenerateNormals,

LoadTexture,CT158r.bmp,
SetTextureCoordinates,0, 0.05, 0,
SetTextureCoordinates,1, 0.95, 0,
SetTextureCoordinates,2, 0, 0.85,
SetTextureCoordinates,3, 1, 0.85,
SetTextureCoordinates,4, 0.125, 1,
SetTextureCoordinates,5, 0.875, 1,
SetDecalTransparentColor,198,198,198,

;Chassis Front
CreateMeshBuilder,
AddVertex,-1.05,1.2,0.3,
AddVertex,-0.6,1.2,0.3,
AddVertex,0.6,1.2,0.3,
AddVertex,1.05,1.2,0.3,
AddVertex,-1.1,0.2,0.75,
AddVertex,-0.6,0.2,0.3,
AddVertex,0.6,0.2,0.3,
AddVertex,1.1,0.2,0.75,
AddFace2,0,1,5,4,
AddFace2,1,2,6,5,
AddFace2,2,3,7,6,
Translate,0,0,-12.7,
GenerateNormals,

LoadTexture,CT158chf.bmp,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0.25,0,
SetTextureCoordinates,2,0.75,0,
SetTextureCoordinates,3,1,0,
SetTextureCoordinates,4,0,1,
SetTextureCoordinates,5,0.25,1,
SetTextureCoordinates,6,0.75,1,
SetTextureCoordinates,7,1,1,
SetDecalTransparentColor,0,0,0,

;Underframe Left
CreateMeshBuilder,
AddVertex,-0.8, -0.05, 24.9,
AddVertex,-1.0, 1.25, 24.9,
AddVertex,-1.0, 1.25, 0.1,
AddVertex,-0.8, -0.05, 0.1,
AddFace2,0,1,2,3,
Translate,0,0,-12.7,
GenerateNormals,

LoadTexture,150_chs.bmp,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,0.8, -0.05, 24.9,
AddVertex,1.0, 1.25, 24.9,
AddVertex,1.0, 1.25, 0.2,
AddVertex,0.8, -0.05, 0.2,
AddFace2,3,2,1,0,
Translate,0,0,-12.7,
GenerateNormals,

LoadTexture,150_chs.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, 3.27, 24.75,
AddVertex,-1.2, 3.27, 0.25,
AddVertex,-1.3, 1.5, 0.25,
AddVertex,-1.1, 1.11, 0.25,
AddVertex,-1.1, 1.11, 24.75,
AddVertex,-1.3, 1.5, 24.75,
AddFace,0,1,2,5,
AddFace,5,2,3,4,
Translate,0,0,-12.7,
GenerateNormals,

LoadTexture,158CTs2.bmp,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0, 0.85,
SetTextureCoordinates,3,0, 1,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 1, 0.85,

CreateMeshBuilder,
AddVertex,1.2, 3.27, 24.75,
AddVertex,1.2, 3.27, 0.25,
AddVertex,1.3, 1.5, 0.25,
AddVertex,1.1, 1.11, 0.25,
AddVertex,1.1, 1.11, 24.75,
AddVertex,1.3, 1.5, 24.75,
AddFace,5,2,1,0,
AddFace,4,3,2,5,
Translate,0,0,-12.7,
GenerateNormals,

LoadTexture,158CTs.bmp,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0, 0.85,
SetTextureCoordinates,3, 0, 1,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 1, 0.85,

;Roof
CreateMeshBuilder,
AddVertex,-0.2, 3.75, 24.75,
AddVertex,-0.2, 3.75, 0.25,
AddVertex,-0.6, 3.68, 0.25,
AddVertex,-0.6, 3.68, 24.75,
AddVertex,-1.06, 3.4, 24.75,
AddVertex,-1.06, 3.4, 0.25,
AddVertex,-1.2, 3.27, 24.75,
AddVertex,-1.2, 3.27, 0.25,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
Translate,0,0,-12.7,
GenerateNormals,

LoadTexture,mk3roof2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetTextureCoordinates,6, 0, 5,
SetTextureCoordinates,7, 1, 5,

CreateMeshBuilder,
AddVertex,0.2, 3.75, 24.75,
AddVertex,0.2, 3.75, 0.25,
AddVertex,0.6, 3.68, 0.25,
AddVertex,0.6, 3.68, 24.75,
AddVertex,1.06, 3.4, 24.75,
AddVertex,1.06, 3.4, 0.25,
AddVertex,1.2, 3.27, 24.75,
AddVertex,1.2, 3.27, 0.25,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
AddFace,6,7,5,4,
Translate,0,0,-12.7,
GenerateNormals,

LoadTexture,mk3roof2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetTextureCoordinates,6, 0, 5,
SetTextureCoordinates,7, 1, 5,

CreateMeshBuilder,
AddVertex,-1.2, 3.8, 0.25,
AddVertex,1.2, 3.8, 0.25,
AddVertex,-1.35, 1.5, 0.25,
AddVertex,1.35, 1.5, 0.25,
AddVertex,-1, 0.9, 0.25,
AddVertex,1, 0.9, 0.25,
AddFace,2,3,1,0,
AddFace,4,5,3,2,
Translate,0,0,11.8,
GenerateNormals,

LoadTexture,CT158E.bmp,
SetTextureCoordinates,0, 0.05, 0,
SetTextureCoordinates,1, 0.95, 0,
SetTextureCoordinates,2, 0, 0.85,
SetTextureCoordinates,3, 1, 0.85,
SetTextureCoordinates,4, 0.125, 1,
SetTextureCoordinates,5, 0.875, 1,
SetDecalTransparentColor,192,192,192

;Roof fill
CreateMeshBuilder,
AddVertex,0.2, 3.75, 24.75,
AddVertex,0.2, 3.75, 0.25,
AddVertex,-0.2, 3.75, 0.25,
AddVertex,-0.2, 3.75, 24.75,
Translate,0,0,-12.7,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,Mk3roof2.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,

CreateMeshBuilder,
AddVertex,-0.55, 1.7, 0.24,
AddVertex,-0.85, 1.7, 0.24,
AddVertex,-0.85, 1.3, 0.24,
AddVertex,-0.55, 1.3, 0.24,
AddVertex,0.545, 1.7, 0.24,
AddVertex,0.845, 1.7, 0.24,
AddVertex,0.845, 1.3, 0.24,
AddVertex,0.545, 1.3, 0.24,
AddFace,3,2,1,0,
AddFace,4,5,6,7,
GenerateNormals,
translate,0,0.36,-12.7,

LoadTexture,glow_red.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,0,
SetEmissiveColor,255,255,255,
SetBlendMode,Additive,1,

