;--------------------------------------
;Maybank BVE Route Object File
;--------------------------------------
;(c) Tony Haylor 2003
;Email my1st.go@ntlworld.com
;
;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.

;LH field
CreateMeshBuilder,,,,
AddVertex,-200,0,30,
AddVertex,-10,0,26,
AddVertex,-10,0,0,
AddVertex,-200,0,0,
AddFace,0,1,2,3

GenerateNormals,,,,

LoadTexture,Grass3.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,8,0,
SetTextureCoordinates,2,8,2,
SetTextureCoordinates,3,0,2,

;LH field b
CreateMeshBuilder,,,,
AddVertex,-200,0,0,
AddVertex,-10,0,0,
AddVertex,-10,-5,-5,
AddVertex,-200,-15,-15,
AddFace,0,1,2,3

GenerateNormals,,,,

LoadTexture,Grass3.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,8,0,
SetTextureCoordinates,2,8,0.3,
SetTextureCoordinates,3,0,0.3,
SetDecalTransparentColor,0,0,0,

;LH lineside hedge
CreateMeshBuilder,,,,
AddVertex,-10,-0.1,26,
AddVertex,-10,3,26,
AddVertex,-10,3,-1,
AddVertex,-10,-0.1,-1,
AddFace,3,2,1,0

GenerateNormals,,,,

LoadTexture,bushes.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,2,0,
SetTextureCoordinates,3,2,1,
SetDecalTransparentColor,0,0,255,

;LH trackside
CreateMeshBuilder,,,,
AddVertex,-10,0,30,
AddVertex,0,0,26,
AddVertex,0,0,0,
AddVertex,-10,0,0,
AddFace,0,1,2,3

GenerateNormals,,,,

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

CreateMeshBuilder,,,,
AddVertex,-10,0,0,
AddVertex,0,0,0,
AddVertex,0,-5,-5,
AddVertex,-10,-15,-15,
AddFace,0,1,2,3

GenerateNormals,,,,

LoadTexture,Grass6.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.3,
SetTextureCoordinates,3,0,0.3,
SetDecalTransparentColor,0,0,0,

; LH trees,,,,
CreateMeshBuilder,,,,
AddVertex,-111,10,20,
AddVertex,-111,-0.3,20,
AddVertex,-120,-0.3,20,
AddVertex,-120,10,20,
AddFace,0,1,2,3
AddFace,3,2,1,0

GenerateNormals,,,,

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

;LH sheep
CreateMeshBuilder,
AddVertex,-18, 0, 2,
AddVertex,-18, 1.5, 2,
AddVertex,-19.4, 1.5, 1,
AddVertex,-19.4, 0, 1,
AddFace,3,2,1,0,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-85, 0, 5,
AddVertex,-85, 1, 5,
AddVertex,-86.5, 1, 4,
AddVertex,-86.5, 0, 4,
AddFace,3,2,1,0,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-44, 0, 9,
AddVertex,-44, 1, 9,
AddVertex,-45.5, 1, 9,
AddVertex,-45.5, 0, 9,
AddFace,3,2,1,0,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-107, 0, 12,
AddVertex,-107, 1, 12,
AddVertex,-108.5, 1, 11,
AddVertex,-108.5, 0, 11,
AddFace,3,2,1,0,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-80, 0, 15,
AddVertex,-80, 1.5, 15,
AddVertex,-81.4, 1.5, 14,
AddVertex,-81.4, 0, 14,
AddFace,3,2,1,0,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-120, 0, 20,
AddVertex,-120, 1, 20,
AddVertex,-121.5, 1, 19,
AddVertex,-121.5, 0, 19,
AddFace,3,2,1,0,
GenerateNormals,

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

CreateMeshBuilder,
AddVertex,-39, 0, 15,
AddVertex,-39, 1, 15,
AddVertex,-40, 1, 14,
AddVertex,-40, 0, 14,
AddFace,3,2,1,0,
GenerateNormals,

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

;RH field
CreateMeshBuilder,,,,
AddVertex,14.5,0,26,
AddVertex,200,0,30,
AddVertex,200,0,0,
AddVertex,14.5,0,0,
AddFace,0,1,2,3

GenerateNormals,,,,

LoadTexture,Grass3.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,7,0,
SetTextureCoordinates,2,7,2,
SetTextureCoordinates,3,0,2,

;RH field b
CreateMeshBuilder,,,,
AddVertex,14.5,0,0,
AddVertex,200,0,0,
AddVertex,200,-15,-15,
AddVertex,14.5,-5,-5,
AddFace,0,1,2,3

GenerateNormals,,,,

LoadTexture,Grass3.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,8,0,
SetTextureCoordinates,2,8,0.3,
SetTextureCoordinates,3,0,0.3,

;RH lineside hedge
CreateMeshBuilder,,,,
AddVertex,14.5,-0.1,26,
AddVertex,14.5,3,26,
AddVertex,14.5,3,-1,
AddVertex,14.5,-0.1,-1,
AddFace,0,1,2,3

GenerateNormals,,,,

LoadTexture,bushes.bmp,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,2,0,
SetTextureCoordinates,3,2,1,
SetDecalTransparentColor,0,0,255,

;RH trackside
CreateMeshBuilder,,,,
AddVertex,0,0,30,
AddVertex,14.5,0,26,
AddVertex,14.5,0,0,
AddVertex,0,0,0,
AddFace,0,1,2,3

GenerateNormals,,,,

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

CreateMeshBuilder,,,,
AddVertex,0,0,0,
AddVertex,14.5,0,0,
AddVertex,14.5,-5,-5,
AddVertex,0,-15,-15,
AddFace,0,1,2,3

GenerateNormals,,,,

LoadTexture,Grass6.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,0.3,
SetTextureCoordinates,3,0,0.3,
SetDecalTransparentColor,0,0,0,

;RH trees
CreateMeshBuilder,,,,
AddVertex,53,10,24,
AddVertex,53,-0.3,24,
AddVertex,62,-0.3,24,
AddVertex,62,10,24,
AddFace,0,1,2,3
AddFace,3,2,1,0

GenerateNormals,,,,

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


