;Lincolnshire Bus - Bristol VRTSL-3,
;Object created by Alan Wheeler, aka Guillyman, email allanwheeler1@talktalk.net
;From Photographs by eezypeazy, email eezypeazy@eezypeazy.co.uk
;Copyright eezypeazy and Allan Wheeler 2008. All rights reserved. You may publish this object without alteration in your BVE routes providing that you acknowledge this copyright.

;________Roof and Sides_______________________________,

CreateMeshBuilder,
Addvertex, -1.251,0.246,-0.01,
Addvertex, -1.251,0.246,9.489,
Addvertex, -1.251,2.476,-0.01,
Addvertex, -1.251,2.476,9.489,
Addvertex, -1.108,3.914,-0.01,
Addvertex, -1.108,3.914,9.489,
Addvertex, -0.975,4.066,-0.01,
Addvertex, -0.975,4.066,9.489,
Addvertex, -0.616,4.166,-0.01,
Addvertex, -0.616,4.166,9.489,
Addvertex, 0.616,4.166,-0.01,
Addvertex, 0.616,4.166,9.489,
Addvertex, 0.975,4.066,-0.01,
Addvertex, 0.975,4.066,9.489,
Addvertex, 1.108,3.914,-0.01,
Addvertex, 1.108,3.914,9.489,
Addvertex, 1.251,2.476,-0.01,
Addvertex, 1.251,2.476,9.489,
Addvertex, 1.251,0.246,-0.01,
Addvertex, 1.251,0.246,9.489,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
Addface, 6,7,9,8,
Addface, 8,9,11,10,
Addface, 10,11,13,12,
Addface, 12,13,15,14,
Addface, 14,15,17,16,
Addface, 16,17,19,18,
generatenormals,
LoadTexture, Lincs_Bristol_VRTSL_Roof_Sides.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.265,
SetTextureCoordinates, 3,1,0.265,
SetTextureCoordinates, 4,0,0.441,
SetTextureCoordinates, 5,1,0.441,
SetTextureCoordinates, 6,0,0.45,
SetTextureCoordinates, 7,1,0.45,
SetTextureCoordinates, 8,0,0.469,
SetTextureCoordinates, 9,1,0.469,
SetTextureCoordinates, 10,0,0.531,
SetTextureCoordinates, 11,1,0.531,
SetTextureCoordinates, 12,0,0.55,
SetTextureCoordinates, 13,1,0.55,
SetTextureCoordinates, 14,0,0.559,
SetTextureCoordinates, 15,1,0.559,
SetTextureCoordinates, 16,0,0.735,
SetTextureCoordinates, 17,1,0.735,
SetTextureCoordinates, 18,0,1,
SetTextureCoordinates, 19,1,1,
Setdecaltransparentcolor,0,0,255,

;________Front___________________________________,

CreateMeshBuilder,
Addvertex, -1.447,4.166,0.795,
Addvertex, 1.447,4.166,0.795,
Addvertex, -1.447,4.109,0.483,
Addvertex, 1.447,4.109,0.483,
Addvertex, -1.447,3.979,0.366,
Addvertex, 1.447,3.979,0.366,
Addvertex, -1.447,2.434,0.129,
Addvertex, 1.447,2.434,0.129,
Addvertex, -1.447,2.368,0.215,
Addvertex, 1.447,2.368,0.215,
Addvertex, -1.416,1.395,0.022,
Addvertex, 1.416,1.395,0.022,
Addvertex, -1.416,0.346,0.022,
Addvertex, 1.416,0.346,0.022,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
Addface, 6,7,9,8,
Addface, 8,9,11,10,
Addface, 10,11,13,12,
generatenormals,
LoadTexture, Lincs_Bristol_VRTSL_Front.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.02,
SetTextureCoordinates, 3,1,0.02,
SetTextureCoordinates, 4,0,0.04,
SetTextureCoordinates, 5,1,0.04,
SetTextureCoordinates, 6,0,0.435,
SetTextureCoordinates, 7,1,0.435,
SetTextureCoordinates, 8,0,0.45,
SetTextureCoordinates, 9,1,0.45,
SetTextureCoordinates, 10,0,0.715,
SetTextureCoordinates, 11,1,0.715,
SetTextureCoordinates, 12,0,1,
SetTextureCoordinates, 13,1,1,
Setdecaltransparentcolor,0,0,255,

;________Rear____________________________________,

CreateMeshBuilder,
Addvertex, 1.273,4.166,8.503,
Addvertex, -1.273,4.166,8.503,
Addvertex, 1.273,4.066,8.996,
Addvertex, -1.273,4.066,8.996,
Addvertex, 1.273,3.818,9.292,
Addvertex, -1.273,3.818,9.292,
Addvertex, 1.273,3.190,9.447,
Addvertex, -1.273,3.190,9.447,
Addvertex, 1.273,2.476,9.474,
Addvertex, -1.273,2.476,9.474,
Addvertex, 1.273,0.238,9.474,
Addvertex, -1.273,0.238,9.474,
Addface, 0,1,3,2,
Addface, 2,3,5,4,
Addface, 4,5,7,6,
Addface, 6,7,9,8,
Addface, 8,9,11,10,
generatenormals,
LoadTexture, Lincs_Bristol_VRTSL_Rear.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,0.02,
SetTextureCoordinates, 3,1,0.02,
SetTextureCoordinates, 4,0,0.06,
SetTextureCoordinates, 5,1,0.06,
SetTextureCoordinates, 6,0,0.22,
SetTextureCoordinates, 7,1,0.22,
SetTextureCoordinates, 8,0,0.408,
SetTextureCoordinates, 9,1,0.408,
SetTextureCoordinates, 10,0,1,
SetTextureCoordinates, 11,1,1,
Setdecaltransparentcolor,0,0,255,

;________Offside Mirror__________________________,

CreateMeshBuilder,
Addvertex, -1.478,2.109,0.409,
Addvertex, -1.211,2.109,0.301,
Addvertex, -1.478,1.730,0.409,
Addvertex, -1.211,1.730,0.301,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Lincs_Bristol_VRTSL_Mirror.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Nearside Mirror__________________________,

CreateMeshBuilder,
Addvertex, 1.478,2.109,0.515,
Addvertex, 1.211,2.109,0.301,
Addvertex, 1.478,1.730,0.515,
Addvertex, 1.211,1.730,0.301,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Lincs_Bristol_VRTSL_Mirror.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Nearside Wheels_________________________,

CreateMeshBuilder,
Addvertex, 1.19,1.189,8.336,
Addvertex, 1.19,1.189,1.439,
Addvertex, 1.19,0,8.336,
Addvertex, 1.19,0,1.439,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Lincs_Bristol_VRTSL_Wheels.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Offside Wheels__________________________,

CreateMeshBuilder,
Addvertex, -1.19,1.189,8.433,
Addvertex, -1.19,1.189,1.353,
Addvertex, -1.19,0,8.433,
Addvertex, -1.19,0,1.353,
Addface2, 0,1,3,2,
generatenormals,
LoadTexture, Lincs_Bristol_VRTSL_Wheels.png,
SetTextureCoordinates, 0,0,0,
SetTextureCoordinates, 1,1,0,
SetTextureCoordinates, 2,0,1,
SetTextureCoordinates, 3,1,1,
Setdecaltransparentcolor,0,0,255,

;________Shadow__________________________________,

CreateMeshBuilder,
AddVertex,-1.251,0,0,
AddVertex,-1.251,0,9.479,
AddVertex,1.251,0,0,
AddVertex,1.251,0,9.479,
Addface, 0,1,3,2,
generatenormals,
SetColor, 50,50,50,120,
