;--------------------------------------
;NWM BVE Route Object File
;-------------------------------------- 
;(c) TSC team 2009
;www.bve4.net
;
;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.55, 1.2, 0.1,
AddVertex,-0.55, 1.2, 0.8,
AddVertex,-0.55, 3.33, 0.1,
AddVertex,-0.55, 3.33, 0.8,
AddVertex,-0.35, 3.53, 0.1,
AddVertex,-0.35, 3.53, 0.8,
AddVertex,0.35, 3.53, 0.1,
AddVertex,0.35, 3.53, 0.8,
AddVertex,0.55, 3.33, 0.1,
AddVertex,0.55, 3.33, 0.8,
AddVertex,0.55, 1.2, 0.1,
AddVertex,0.55, 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,25,25,25,
Translate,0,0,-12.7,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-0.4, 1.1, 0.1,
AddVertex,-0.4, 1.1, 0.8,
AddVertex,-0.55, 1.2, 0.1,
AddVertex,-0.55, 1.2, 0.8,
AddVertex,-0.55, 3.33, 0.1,
AddVertex,-0.55, 3.33, 0.8,
AddVertex,-0.35, 3.53, 0.1,
AddVertex,-0.35, 3.53, 0.8,
AddVertex,0.35, 3.53, 0.1,
AddVertex,0.35, 3.53, 0.8,
AddVertex,0.55, 3.33, 0.1,
AddVertex,0.55, 3.33, 0.8,
AddVertex,0.55, 1.2, 0.1,
AddVertex,0.55, 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,25,25,25,
Translate,0,0,11.8,
GenerateNormals,

CreateMeshBuilder,
AddVertex,-1.23,1.00,0.25,
AddVertex,-1.23,3.855,0.25,
AddVertex,1.23,3.855,0.25,
AddVertex,1.23,1.00,0.25,
AddFace,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3end.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255,

;rear
CreateMeshBuilder,
AddVertex,1.23,1.00,24.75,
AddVertex,1.23,3.855,24.75,
AddVertex,-1.23,3.855,24.75,
AddVertex,-1.23,1.00,24.75,
AddFace,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3end.png,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,255

;Underframe Left
CreateMeshBuilder,
AddVertex,-0.7, -0.05, 24.75,
AddVertex,-0.7, 1.22, 24.75,
AddVertex,-0.7, 1.22, 0.25,
AddVertex,-0.7, -0.05, 0.25,
AddFace2,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3_chs.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,192,192,192

;Side Left
CreateMeshBuilder,
AddVertex,-1.13, 3.27, 24.75,
AddVertex,-1.13, 3.27, 0.25,
AddVertex,-1.2, 1.5, 0.25,
AddVertex,-1.1, 1.11, 0.25,
AddVertex,-1.1, 1.11, 24.75,
AddVertex,-1.2, 1.5, 24.75,
AddFace,0,1,2,5,
AddFace,5,2,3,4,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3_so.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.85,
SetTextureCoordinates,3, 1, 1,
SetTextureCoordinates,4, 0, 1,
SetTextureCoordinates,5, 0, 0.85,

;Side Left lights
CreateMeshBuilder,
AddVertex,-1.131, 3.27, 24.75,
AddVertex,-1.131, 3.27, 0.25,
AddVertex,-1.201, 1.5, 0.25,
AddVertex,-1.101, 1.11, 0.25,
AddVertex,-1.101, 1.11, 24.75,
AddVertex,-1.201, 1.5, 24.75,
AddFace,0,1,2,5,
AddFace,5,2,3,4,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3_fo_lights.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.85,
SetTextureCoordinates,3, 1, 1,
SetTextureCoordinates,4, 0, 1,
SetTextureCoordinates,5, 0, 0.85,
SetDecalTransparentColor,0,0,255
SetEmissiveColor,192,192,192,
SetBlendMode,Normal,

;Underframe R
CreateMeshBuilder,
AddVertex,0.7, -0.05, 24.75,
AddVertex,0.7, 1.22, 24.75,
AddVertex,0.7, 1.22, 0.25,
AddVertex,0.7, -0.05, 0.25,
AddFace2,3,2,1,0,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3_chs.png,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,192,192,192

;Side R
CreateMeshBuilder,
AddVertex,1.13, 3.27, 24.75,
AddVertex,1.13, 3.27, 0.25,
AddVertex,1.2, 1.5, 0.25,
AddVertex,1.1, 1.11, 0.25,
AddVertex,1.1, 1.11, 24.75,
AddVertex,1.2, 1.5, 24.75,
AddFace,5,2,1,0,
AddFace,4,3,2,5,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3_so2.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.85,
SetTextureCoordinates,3, 1, 1,
SetTextureCoordinates,4, 0, 1,
SetTextureCoordinates,5, 0, 0.85,

CreateMeshBuilder,
AddVertex,1.131, 3.27, 24.75,
AddVertex,1.131, 3.27, 0.25,
AddVertex,1.201, 1.5, 0.25,
AddVertex,1.101, 1.11, 0.25,
AddVertex,1.101, 1.11, 24.75,
AddVertex,1.201, 1.5, 24.75,
AddFace,5,2,1,0,
AddFace,4,3,2,5,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3_fo_lights.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.85,
SetTextureCoordinates,3, 1, 1,
SetTextureCoordinates,4, 0, 1,
SetTextureCoordinates,5, 0, 0.85,
SetDecalTransparentColor,0,0,255
SetEmissiveColor,192,192,192,
SetBlendMode,Normal,


;buffers

CreateMeshBuilder,
AddVertex,-1.2,0.85,25,
AddVertex,-1.2,1.3,25,
AddVertex,1.2,1.3,25,
AddVertex,1.2,0.85,25,
AddFace2,0,1,2,3
Translate,0,0,-12.5
GenerateNormals,

LoadTexture,37buffer.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex,-1.2,0.85,0,
AddVertex,-1.2,1.3,0,
AddVertex,1.2,1.3,0,
AddVertex,1.2,0.85,0,
Translate,0,0,-12.5
AddFace2,0,1,2,3

GenerateNormals,

LoadTexture,37buffer.png,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1
SetDecalTransparentColor,0,0,255

;Roof fill 

;TOP PART

CreateMeshBuilder,
AddVertex,0.2, 3.8, 24.65,
AddVertex,0.2, 3.8, 0.35,
AddVertex,-0.2, 3.8, 0.35,
AddVertex,-0.2, 3.8, 24.65,
Translate,0,0,-12.5,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,mk3roof.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,

CreateMeshBuilder,
AddVertex,0.2, 3.8, 24.75,
AddVertex,0.2, 3.8, 24.65,
AddVertex,-0.2, 3.8, 24.65,
AddVertex,-0.2, 3.8, 24.75,
Translate,0,0,-12.5,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,mk3roof_plain.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,

CreateMeshBuilder,
AddVertex,0.2, 3.8, 0.35,
AddVertex,0.2, 3.8, 0.25,
AddVertex,-0.2, 3.8, 0.25,
AddVertex,-0.2, 3.8, 0.35,
Translate,0,0,-12.5,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,mk3roof_plain2.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,

CreateMeshBuilder,
AddVertex,0.2, 3.801, 23.65,
AddVertex,0.2, 3.801, 22.25,
AddVertex,-0.2, 3.801, 22.25,
AddVertex,-0.2, 3.8, 23.65,
Translate,0,0,-12.5,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,mk3roofhatch.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex,0.2, 3.801, 2.75,
AddVertex,0.2, 3.801, 1.35,
AddVertex,-0.2, 3.801, 1.35,
AddVertex,-0.2, 3.801, 2.75,
Translate,0,0,-12.5,
AddFace,0,1,2,3,
GenerateNormals,

LoadTexture,mk3roofhatch.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetDecalTransparentColor,0,0,255

;Roof LEFT

CreateMeshBuilder,
AddVertex,-0.2, 3.8, 24.65,
AddVertex,-0.2, 3.8, 0.35,
AddVertex,-0.6, 3.71, 0.35,
AddVertex,-0.6, 3.71, 24.65,
AddVertex,-1.0, 3.48, 24.65,
AddVertex,-1.0, 3.48, 0.35,
AddVertex,-1.13, 3.27, 24.65,
AddVertex,-1.13, 3.27, 0.35,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof.png,
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,
SetDecalTransparentColor,0,0,255

;edge

CreateMeshBuilder,
AddVertex,-0.2, 3.8, 24.75,
AddVertex,-0.2, 3.8, 24.65,
AddVertex,-0.6, 3.71, 24.65,
AddVertex,-0.6, 3.71, 24.75,
AddVertex,-1.0, 3.48, 24.75,
AddVertex,-1.0, 3.48, 24.65,
AddVertex,-1.13, 3.27, 24.75,
AddVertex,-1.13, 3.27, 24.65,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof_plain.png,
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.8, 0.35,
AddVertex,-0.2, 3.8, 0.25,
AddVertex,-0.6, 3.71, 0.25,
AddVertex,-0.6, 3.71, 0.35,
AddVertex,-1.0, 3.48, 0.35,
AddVertex,-1.0, 3.48, 0.25,
AddVertex,-1.13, 3.27, 0.35,
AddVertex,-1.13, 3.27, 0.25,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
AddFace,4,5,7,6,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof_plain2.png,
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,

;hatch

CreateMeshBuilder,
AddVertex,-0.2, 3.801, 23.65,
AddVertex,-0.2, 3.801, 22.25,
AddVertex,-0.6, 3.711, 22.25,
AddVertex,-0.6, 3.711, 23.65,
AddVertex,-1.0, 3.481, 23.65,
AddVertex,-1.0, 3.481, 22.25,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roofhatch.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-0.2, 3.801, 2.75,
AddVertex,-0.2, 3.801, 1.35,
AddVertex,-0.6, 3.711, 1.35,
AddVertex,-0.6, 3.711, 2.75,
AddVertex,-1.0, 3.481, 2.75,
AddVertex,-1.0, 3.481, 1.35,
AddFace,0,1,2,3,
AddFace,3,2,5,4,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roofhatch.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex,-1.0, 3.481, 23.65,
AddVertex,-1.0, 3.481, 22.25,
AddVertex,-1.13, 3.27, 22.25,
AddVertex,-1.13, 3.27, 23.65,
AddFace,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roofhatch2.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.9,
SetTextureCoordinates,3, 0, 0.9,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,-1.0, 3.481, 2.75,
AddVertex,-1.0, 3.481, 1.35,
AddVertex,-1.13, 3.27, 1.35,
AddVertex,-1.13, 3.27, 2.75,
AddFace,0,1,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roofhatch2.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.9,
SetTextureCoordinates,3, 0, 0.9,
SetDecalTransparentColor,0,0,255,

;Roof RIGHT

CreateMeshBuilder,
AddVertex,0.2, 3.8, 24.65,
AddVertex,0.2, 3.8, 0.35,
AddVertex,0.6, 3.71, 0.35,
AddVertex,0.6, 3.71, 24.65,
AddVertex,1.0, 3.48, 24.65,
AddVertex,1.0, 3.48, 0.35,
AddVertex,1.13, 3.27, 24.65,
AddVertex,1.13, 3.27, 0.35,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
AddFace,6,7,5,4,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof.png,
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,

;edge

CreateMeshBuilder,
AddVertex,0.2, 3.8, 24.75,
AddVertex,0.2, 3.8, 24.65,
AddVertex,0.6, 3.71, 24.65,
AddVertex,0.6, 3.71, 24.75,
AddVertex,1.0, 3.48, 24.75,
AddVertex,1.0, 3.48, 24.65,
AddVertex,1.13, 3.27, 24.75,
AddVertex,1.13, 3.27, 24.65,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
AddFace,6,7,5,4,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof_plain.png,
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.8, 0.35,
AddVertex,0.2, 3.8, 0.25,
AddVertex,0.6, 3.71, 0.25,
AddVertex,0.6, 3.71, 0.35,
AddVertex,1.0, 3.48, 0.35,
AddVertex,1.0, 3.48, 0.25,
AddVertex,1.13, 3.27, 0.35,
AddVertex,1.13, 3.27, 0.25,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
AddFace,6,7,5,4,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roof_plain2.png,
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,

;hatch

CreateMeshBuilder,
AddVertex,0.2, 3.801, 23.65,
AddVertex,0.2, 3.801, 22.25,
AddVertex,0.6, 3.711, 22.25,
AddVertex,0.6, 3.711, 23.65,
AddVertex,1.0, 3.481, 23.65,
AddVertex,1.0, 3.481, 22.25,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roofhatch.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,0.2, 3.801, 2.75,
AddVertex,0.2, 3.801, 1.35,
AddVertex,0.6, 3.711, 1.35,
AddVertex,0.6, 3.711, 2.75,
AddVertex,1.0, 3.481, 2.75,
AddVertex,1.0, 3.481, 1.35,
AddFace,3,2,1,0,
AddFace,4,5,2,3,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roofhatch.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 2,
SetTextureCoordinates,3, 0, 2,
SetTextureCoordinates,4, 0, 5,
SetTextureCoordinates,5, 1, 5,
SetDecalTransparentColor,0,0,255

CreateMeshBuilder,
AddVertex,1.0, 3.481, 23.65,
AddVertex,1.0, 3.481, 22.25,
AddVertex,1.13, 3.27, 22.25,
AddVertex,1.13, 3.27, 23.65,
AddFace,3,2,1,0,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roofhatch2.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.9,
SetTextureCoordinates,3, 0, 0.9,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,
AddVertex,1.0, 3.481, 2.75,
AddVertex,1.0, 3.481, 1.35,
AddVertex,1.13, 3.27, 1.35,
AddVertex,1.13, 3.27, 2.75,
AddFace,3,2,1,0,
Translate,0,0,-12.5,
GenerateNormals,

LoadTexture,mk3roofhatch2.png,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 0.9,
SetTextureCoordinates,3, 0, 0.9,
SetDecalTransparentColor,0,0,255,




