;--------------------------------------
;NWM BVE Route Object File
;--------------------------------------
;(c) TSC team 2008
;www.bve4.net
;
;Original object (c) Robert Glass 2002.
;www.scotrailsim.co.uk
;Original Bodyside textures
;courtesy of Simon Townsend.
;Originally used in Sandymill - Invermay Electric
;Route (c) Robert Glass 2001-2003
;http://scotrailsim.cjb.net
;
;Please seek permission before using
;any NWM files in your own route.
;
;see 'Readme.txt' file.
;

;Underframe
CreateMeshBuilder,
AddVertex,-0.7, -0.05, 24.75,
AddVertex,-0.9, 1.22, 24.75,
AddVertex,-0.9, 1.22, 7.50,
AddVertex,-0.7, -0.05, 7.50,
AddVertex,0.7, -0.05, 24.75,
AddVertex,0.9, 1.22, 24.75,
AddVertex,0.9, 1.22, 7.50,
AddVertex,0.7, -0.05, 7.50,
AddFace2,0,1,2,3,
AddFace2,7,6,5,4,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37ch.bmp,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetTextureCoordinates,4,1,1,
SetTextureCoordinates,5,1,0,
SetTextureCoordinates,6,0,0,
SetTextureCoordinates,7,0,1,
SetDecalTransparentColor,0,0,0,

;Side - Left
CreateMeshBuilder,
AddVertex,-1.2, 1.1, 24.75,
AddVertex,-1.2, 2.5, 24.75,
AddVertex,-1.2, 2.6, 23.25,
AddVertex,-1.2, 3.27, 23.06,
AddVertex,-1.06, 3.44, 23.03,
AddVertex,-1.06, 3.44, 9.22,
AddVertex,-1.2, 3.27, 9.19,
AddVertex,-1.2, 2.6, 9,
AddVertex,-1.2, 2.595, 7.5,
AddVertex,-1.2, 1.1, 7.5,
AddFace,0,1,8,9,
AddFace,1,2,7,8,
AddFace,2,3,6,7,
AddFace,3,4,5,6,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37RfCoals1.bmp,
SetTextureCoordinates,0,0.00,1.00,
SetTextureCoordinates,1,0.00,0.347,
SetTextureCoordinates,2,0.087,0.317,
SetTextureCoordinates,3,0.097,0.05,
SetTextureCoordinates,4,0.10,0.00,
SetTextureCoordinates,5,0.90,0.00,
SetTextureCoordinates,6,0.903,0.05,
SetTextureCoordinates,7,0.913,0.317,
SetTextureCoordinates,8,1.00,0.317,
SetTextureCoordinates,9,1.00,1.00,

;Side - Right
CreateMeshBuilder,
AddVertex,1.2, 1.1, 24.75,
AddVertex,1.2, 2.5, 24.75,
AddVertex,1.2, 2.6, 23.25,
AddVertex,1.2, 3.27, 23.06,
AddVertex,1.06, 3.44, 23.03,
AddVertex,1.06, 3.44, 9.22,
AddVertex,1.2, 3.27, 9.19,
AddVertex,1.2, 2.6, 9,
AddVertex,1.2, 2.595, 7.5,
AddVertex,1.2, 1.1, 7.5,
AddFace,9,8,1,0,
AddFace,8,7,2,1,
AddFace,7,6,3,2,
AddFace,6,5,4,3,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37RfCoals2.bmp,
SetTextureCoordinates,0,0.00,1.00,
SetTextureCoordinates,1,0.00,0.347,
SetTextureCoordinates,2,0.087,0.317,
SetTextureCoordinates,3,0.097,0.05,
SetTextureCoordinates,4,0.10,0.00,
SetTextureCoordinates,5,0.90,0.00,
SetTextureCoordinates,6,0.903,0.05,
SetTextureCoordinates,7,0.913,0.317,
SetTextureCoordinates,8,1.00,0.317,
SetTextureCoordinates,9,1.00,1.00,

;Roof - Left
CreateMeshBuilder,
AddVertex,0, 3.9, 23,
AddVertex,0, 3.9, 9.25,
AddVertex,-0.6, 3.75, 9.24,
AddVertex,-0.6, 3.75, 23.01,
AddVertex,-1.06, 3.44, 23.03,
AddVertex,-1.06, 3.44, 9.22,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37rf2.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,

;Roof - Right
CreateMeshBuilder,
AddVertex,0, 3.9, 23,
AddVertex,0, 3.9, 9.25,
AddVertex,0.6, 3.75, 9.24,
AddVertex,0.6, 3.75, 23.01,
AddVertex,1.06, 3.44, 23.03,
AddVertex,1.06, 3.44, 9.22,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37rf2.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,


;Near Bonnet
CreateMeshBuilder,
;;Left
AddVertex,-1.2, 2.6, 9.1,
AddVertex,-1.14, 2.75, 9.1,
AddVertex,-0.83, 2.95, 9.1,
AddVertex,-0.37, 3.11, 9.1,
AddVertex,-0, 3.15, 9.1,
AddVertex,-0, 3.03, 7.5,
AddVertex,-0.37, 2.99, 7.5,
AddVertex,-0.83, 2.85, 7.5,
AddVertex,-1.14, 2.68, 7.5,
AddVertex,-1.2, 2.59, 7.5,
AddFace,0,1,8,9,
AddFace,1,2,7,8,
AddFace,2,3,6,7,
AddFace,3,4,5,6,
;;Right
AddVertex,1.2, 2.6, 9.1,
AddVertex,1.14, 2.75, 9.1,
AddVertex,0.83, 2.95, 9.1,
AddVertex,0.37, 3.11, 9.1,
AddVertex,0, 3.15, 9.1,
AddVertex,0, 3.03, 7.5,
AddVertex,0.37, 2.99, 7.5,
AddVertex,0.83, 2.85, 7.5,
AddVertex,1.14, 2.68, 7.5,
AddVertex,1.2, 2.59, 7.5,
AddFace,19,18,11,10,
AddFace,18,17,12,11,
AddFace,17,16,13,12,
AddFace,16,15,14,13,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37bon.bmp,
;Left
SetTextureCoordinates,0, 0.005, 0,
SetTextureCoordinates,1, 0.05, 0,
SetTextureCoordinates,2, 0.31, 0,
SetTextureCoordinates,3, 0.69, 0,
SetTextureCoordinates,4, 1, 0,
SetTextureCoordinates,5, 1, 1,
SetTextureCoordinates,6, 0.69, 1,
SetTextureCoordinates,7, 0.31, 1,
SetTextureCoordinates,8, 0.05, 1,
SetTextureCoordinates,9, 0.005, 1,
;;Right
SetTextureCoordinates,10, 0.01, 0,
SetTextureCoordinates,11, 0.05, 0,
SetTextureCoordinates,12, 0.31, 0,
SetTextureCoordinates,13, 0.69, 0,
SetTextureCoordinates,14, 1, 0,
SetTextureCoordinates,15, 1, 1,
SetTextureCoordinates,16, 0.69, 1,
SetTextureCoordinates,17, 0.31, 1,
SetTextureCoordinates,18, 0.05, 1,
SetTextureCoordinates,19, 0.01, 1,

;front/rear nose
CreateMeshBuilder,
AddVertex,-1.2, 0.2, 7.5,
AddVertex,-1.2, 3.05, 7.5,
AddVertex,1.2, 3.05, 7.5,
AddVertex,1.2, 0.2, 7.5,
AddVertex,-1.2, 0.2, 24.75,
AddVertex,-1.2, 3.05, 24.75,
AddVertex,1.2, 3.05, 24.75,
AddVertex,1.2, 0.2, 24.75,
AddFace2,0,1,2,3,
AddFace2,4,5,6,7,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37front.bmp,
SetTextureCoordinates,0, 0,1,
SetTextureCoordinates,1, 0,0,
SetTextureCoordinates,2, 1,0,
SetTextureCoordinates,3, 1,1,
SetTextureCoordinates,4, 0,1,
SetTextureCoordinates,5, 0,0,
SetTextureCoordinates,6, 1,0,
SetTextureCoordinates,7, 1,1,
SetDecalTransparentColor,0,0,0,


;buffers
CreateMeshBuilder,
AddVertex,-1.2,0.85,7.2,
AddVertex,-1.2,1.3,7.2,
AddVertex,1.2,1.3,7.2,
AddVertex,1.2,0.85,7.2,
AddFace2,0,1,2,3
Translate,0,0,1.25
GenerateNormals,

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

;buffers
CreateMeshBuilder,
AddVertex,-1.2,0.85,7.2,
AddVertex,-1.2,1.3,7.2,
AddVertex,1.2,1.3,7.2,
AddVertex,1.2,0.85,7.2,
AddFace2,0,1,2,3
Translate,0,0,-16.5
GenerateNormals,

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

;Windscreen L Rear
CreateMeshBuilder,
AddVertex, -1.22,2.6,9,
AddVertex, -1.22,3.9,9.40,
AddVertex, -0.337,3.9,9.25,
AddVertex, 0.01,3.9,9.25,
AddVertex, 0.01,2.6,8.85,
AddVertex, -0.337,2.6,8.85,
AddFace, 0,1,2,3,4,5,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37cab1.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0.72, 0,
SetTextureCoordinates,3, 1, 0,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 0.72, 1,
SetDecalTransparentColor,0,0,0,

;Windscreen R rear
CreateMeshBuilder,
AddVertex, 1.22,2.6,9,
AddVertex, 1.22,3.9,9.40,
AddVertex, 0.337,3.9,9.25,
AddVertex, -0.01,3.9,9.25,
AddVertex, -0.01,2.6,8.85,
AddVertex, 0.337,2.6,8.85,
AddFace, 4,3,2,1,0,5,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37cab2.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0.72, 0,
SetTextureCoordinates,3, 1, 0,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 0.72, 1,
SetDecalTransparentColor,0,0,0,

;Windscreen L front
CreateMeshBuilder,
AddVertex, -1.22,2.6,22.96,
AddVertex, -1.22,3.9,22.53
AddVertex, -0.337,3.9,22.7
AddVertex, 0.01,3.9,22.72,
AddVertex, 0.01,2.6,23.2,
AddVertex, -0.337,2.6,23.2,
AddFace2, 0,1,2,3,4,5,
Translate,0,0,-16.325
GenerateNormals,

LoadTexture,37cab1.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0.72, 0,
SetTextureCoordinates,3, 1, 0,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 0.72, 1,
SetDecalTransparentColor,0,0,0,

;Windscreen R front
CreateMeshBuilder,
AddVertex, 1.22,2.6,22.96,
AddVertex, 1.22,3.9,22.53,
AddVertex, 0.337,3.9,22.7,
AddVertex, -0.01,3.9,22.72,
AddVertex, -0.01,2.6,23.2,
AddVertex, 0.337,2.6,23.2,
AddFace2, 4,3,2,1,0,5,
Translate,0,0,-16.325
GenerateNormals,

LoadTexture,37cab2.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0.72, 0,
SetTextureCoordinates,3, 1, 0,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 0.72, 1,
SetDecalTransparentColor,0,0,0,

;bonnet Rear Left
CreateMeshBuilder,
AddVertex,-1.2, 2.5, 24.75,
AddVertex,-1.14, 2.68, 24.75,
AddVertex,-0.83, 2.85, 24.75,
AddVertex,-0.37, 2.99, 24.75,
AddVertex,-0, 3.03, 24.75,
AddVertex,-0, 3.15, 23.25,
AddVertex,-0.37, 3.11, 23.25,
AddVertex,-0.83, 2.95, 23.25,
AddVertex,-1.16, 2.75, 23.25,
AddVertex,-1.2, 2.6, 23.25,
AddFace,0,1,8,9,
AddFace,1,2,7,8,
AddFace,2,3,6,7,
AddFace,3,4,5,6,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37bon.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0.31, 1,
SetTextureCoordinates,2, 0.69, 1,
SetTextureCoordinates,3, 0.97, 1,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 0.97, 0,
SetTextureCoordinates,6, 0.69, 0,
SetTextureCoordinates,7, 0.31, 0,
SetTextureCoordinates,8, 0, 0,
SetTextureCoordinates,9, 0, 0,

;bonnet Rear Right
CreateMeshBuilder,
AddVertex,1.2, 2.5, 24.75,
AddVertex,1.14, 2.68, 24.75,
AddVertex,0.83, 2.85, 24.75,
AddVertex,0.37, 2.99, 24.75,
AddVertex,0, 3.03, 24.75,
AddVertex,0, 3.15, 23.25,
AddVertex,0.37, 3.11, 23.25,
AddVertex,0.83, 2.95, 23.25,
AddVertex,1.16, 2.75, 23.25,
AddVertex,1.2, 2.6, 23.25,
AddFace,9,8,1,0,
AddFace,8,7,2,1,
AddFace,7,6,3,2,
AddFace,6,5,4,3,
Translate,0,0,-16.625
GenerateNormals,

LoadTexture,37bon.bmp,
SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 0.31, 1,
SetTextureCoordinates,2, 0.69, 1,
SetTextureCoordinates,3, 0.97, 1,
SetTextureCoordinates,4, 1, 1,
SetTextureCoordinates,5, 0.97, 0,
SetTextureCoordinates,6, 0.69, 0,
SetTextureCoordinates,7, 0.31, 0,
SetTextureCoordinates,8, 0, 0,
SetTextureCoordinates,9, 0, 0,

; Horns
CreateMeshBuilder,
AddVertex,-0.3,3.83,9.2,
AddVertex,-0.3,3.98,9.2,
AddVertex, 0.3,3.98,9.2,
AddVertex, 0.3,3.83,9.2,
AddFace2,0,1,2,3,
Translate,0,0,-16.625
GenerateNormals,
LoadTexture,37horns.bmp,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,-0.3,3.83,9.2,
AddVertex,-0.3,3.98,9.2,
AddVertex, 0.3,3.98,9.2,
AddVertex, 0.3,3.83,9.2,
AddFace2,0,1,2,3,
Translate,0,0,-2.75,
GenerateNormals,
LoadTexture,37horns.bmp,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,

CreateMeshBuilder,
AddVertex,-0.75, 1.85, 7.49,
AddVertex,-1.35, 1.85, 7.49,
AddVertex,-1.35, 1.25, 7.49,
AddVertex,-0.75, 1.25, 7.49,
AddFace,0,1,2,3,
GenerateNormals,
translate,1.07,0.3,0.67,

LoadTexture,glow_white.png,
SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0, 1,
SetTextureCoordinates,3, 1, 1,
SetDecalTransparentColor,0,0,0,
SetEmissiveColor,255,255,255,
SetBlendMode,Additive,10,

CreateMeshBuilder,
AddVertex,-0.25, 1.7, 7.5,
AddVertex,-0.55, 1.7, 7.5,
AddVertex,-0.55, 1.3, 7.5,
AddVertex,-0.25, 1.3, 7.5,
AddVertex,0.25, 1.7, 7.5,
AddVertex,0.55, 1.7, 7.5,
AddVertex,0.55, 1.3, 7.5,
AddVertex,0.25, 1.3, 7.5,
AddFace,0,1,2,3,
AddFace,7,6,5,4,
GenerateNormals,
translate,0,0.85,0.68,

LoadTexture,glow_white.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,10,