;--------------------------------------
;Maybank BVE Route Object File
;--------------------------------------
;(c) Tony Haylor 2003
;Email my1st.go@ntlworld.com
;
;Object and textures (c) Anthony Bowden 2002.
;www.railsimroutes.co.uk
;Modified by Tony Haylor, 
;with kind permission of Anthony Bowden.
;Originally from West Coast Main Line BVE 
;Route Object Watford Jcn - Milton Keynes Central
;
;--------------------------------------
;
;Please seek permission before using
;any Maybank files in your own route.
;
;see 'Readme.txt' file.
;

CreateMeshBuilder,
AddVertex,-120.1, 0.1, 30.1,
AddVertex,-20.1, 2.1, 30.1,
AddVertex,-20, 2, 0,
AddVertex,-20, -9.1, -20,
AddVertex,-190, -9.1,-20,
AddVertex,-120, 0, 0,
AddFace,0,1,2,5,
AddFace,5,2,3,4,

GenerateNormals,

LoadTexture,Grass2y4.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 1, 2,
SetTextureCoordinates,4, 0, 2,
SetTextureCoordinates,5, 0, 1,

;Left mid

;Left
CreateMeshBuilder,
AddVertex,-20.1, 2.1, 30.1,
AddVertex,1.1, -9.31, 30.1,
AddVertex,1, -9, 0,
AddVertex,1, -9.1, -20,
AddVertex,-20, -9.1, -20,
AddVertex,-20, 2, 0,
AddFace,0,1,2,5,
AddFace,5,2,3,4,

GenerateNormals,

LoadTexture,Grass6.bmp,
SetTextureCoordinates,0, 0, 0,
SetTextureCoordinates,1, 1, 0,
SetTextureCoordinates,2, 1, 1,
SetTextureCoordinates,3, 1, 2,
SetTextureCoordinates,4, 0, 2,
SetTextureCoordinates,5, 0, 1,




;=================================
;Vegetation

;right fence
CreateMeshBuilder,
AddVertex,-19.5, 2.1, 0,
AddVertex,-19.5, 3.1, 0,
AddVertex,-19.5, 3.1, 30,
AddVertex,-19.5, 2.1, 30,
AddFace,0,1,2,3,
SetColor,256,256,256,000,

GenerateNormals,

LoadTexture,fens_field.bmp,
SetTextureCoordinates,0,00,01,
SetTextureCoordinates,1,00,00,
SetTextureCoordinates,2,10,00,
SetTextureCoordinates,3,10,01,
SetDecalTransparentColor,000,000,000,

;[Texture]
;Load b1.bmp
;Coordinates 0,0,0
;Coordinates 1,0,1
;Coordinates 2,1,1
;Coordinates 3,1,0
;Transparent 0, 0, 0

;Emb bush 1
;[MeshBuilder]
;Vertex -16, 3, 14
;Vertex -16, 0.5, 14
;Vertex -14, 0.5, 17
;Vertex -14, 3, 17
;Face 3,2,1,0



