;--------------------------------------
;Maybank BVE Route Object File
;--------------------------------------
;(c) Tony Haylor 2003
;Email my1st.go@ntlworld.com
;
;Object and textures (c) Steve Green.
;www.trainsimcentral.co.uk
;with kind permission of Steve Green.
;
;--------------------------------------
;
;Please seek permission before using
;any Maybank files in your own route.
;
;see 'Readme.txt' file.
;
CreateMeshBuilder,,,,
AddVertex,9,2.5,0,
AddVertex,8,2.5,26,
AddVertex,8,8,26,
AddVertex,9,8,0,
AddFace,0,1,2,3

GenerateNormals,,,,

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



CreateMeshBuilder,,,,
AddVertex,5,4,-2,
AddVertex,5,4,28,
AddVertex,5,4,28,
AddVertex,3.8,-1,28,
AddVertex,3.8,-1,-2,
AddVertex,5,4,-2,
AddFace,5,2,1,0
AddFace,5,4,3,2
SetColor,160,180,180,

GenerateNormals,,,,

LoadTexture,..\Bridges\wall2.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,2,0,
SetTextureCoordinates,2,2,0.5,
SetTextureCoordinates,3,2,2,
SetTextureCoordinates,4,0,2,
SetTextureCoordinates,5,0,0.5,

;Building,,,,

CreateMeshBuilder,,,,
AddVertex,30,5,12.5,
AddVertex,30,18,12.5,
AddVertex,30,18,-0.2,
AddVertex,30,5,-0.2,
AddFace,0,1,2,3
SetColor,220,220,220,

GenerateNormals,,,

LoadTexture,..\buildings\townhouses.bmp,,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1

CreateMeshBuilder,,,,
AddVertex,30,5,25,
AddVertex,30,18,25,
AddVertex,30,18,12.5,
AddVertex,30,5,12.5,
AddFace,0,1,2,3
SetColor,220,220,220,

GenerateNormals,,,

LoadTexture,..\buildings\townhouses.bmp,,
SetTextureCoordinates,0,0,1
SetTextureCoordinates,1,0,0
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,1,1