;//東急8000系　先頭車,,,
;------ボディ------,,,
CreateMeshBuilder,,;//前面,
AddVertex,-1.4,1,0
AddVertex,-1.4,3.35,0
AddVertex,-1.35,3.46,0
AddVertex,-1.255,3.56,0
AddVertex,-1.135,3.61,0
AddVertex,-0.54,3.68,0
AddVertex,0,3.7,0
AddVertex,0.54,3.68,0
AddVertex,1.135,3.61,0
AddVertex,1.255,3.56,0
AddVertex,1.35,3.46,0
AddVertex,1.4,3.35,0
AddVertex,1.4,1,0
AddFace2,12,11,1,0
AddFace2,11,10,2,1
AddFace2,10,9,3,2
AddFace2,9,8,4,3
AddFace2,8,7,5,4
AddFace2,7,6,5,
SetDecalTransparentColor,0,0,255,
GenerateNormals,,,,

LoadTexture,front1-2.bmp,,,
SetTextureCoordinates,0,1,0.997,
SetTextureCoordinates,1,1,0.13,
SetTextureCoordinates,2,0.982,0.089,
SetTextureCoordinates,3,0.948,0.052,
SetTextureCoordinates,4,0.905,0.033,
SetTextureCoordinates,5,0.693,0.007,
SetTextureCoordinates,6,0.5,0.001
SetTextureCoordinates,7,0.307,0.007
SetTextureCoordinates,8,0.095,0.033
SetTextureCoordinates,9,0.052,0.052
SetTextureCoordinates,10,0.018,0.089
SetTextureCoordinates,11,0,0.13
SetTextureCoordinates,12,0,0.997

CreateMeshBuilder,,;//後面,,
AddVertex,-1.4,1,-19.5,
AddVertex,-1.4,3.35,-19.5,
AddVertex,-1.35,3.46,-19.5,
AddVertex,-1.255,3.56,-19.5,
AddVertex,-1.135,3.61,-19.5,
AddVertex,-0.54,3.68,-19.5,
AddVertex,0,3.7,-19.5,
AddVertex,0.54,3.68,-19.5,
AddVertex,1.135,3.61,-19.5,
AddVertex,1.255,3.56,-19.5,
AddVertex,1.35,3.46,-19.5,
AddVertex,1.4,3.35,-19.5,
AddVertex,1.4,1,-19.5,
AddFace2,12,0,1,11
AddFace2,11,1,2,10
AddFace2,10,2,3,9
AddFace2,9,3,4,8
AddFace2,8,4,5,7
AddFace2,7,5,6,
GenerateNormals,,,,

LoadTexture,rear.bmp,,
SetTextureCoordinates,0,0,0.997
SetTextureCoordinates,1,0,0.13
SetTextureCoordinates,2,0.018,0.089
SetTextureCoordinates,3,0.052,0.052
SetTextureCoordinates,4,0.095,0.033
SetTextureCoordinates,5,0.307,0.007
SetTextureCoordinates,6,0.5,0.001
SetTextureCoordinates,7,0.693,0.007
SetTextureCoordinates,8,0.905,0.033
SetTextureCoordinates,9,0.948,0.052
SetTextureCoordinates,10,0.982,0.089
SetTextureCoordinates,11,1,0.13
SetTextureCoordinates,12,1,0.997
SetDecalTransparentColor,0,0,0

CreateMeshBuilder,,;//前面,
AddVertex,-1.4,1,-19.495
AddVertex,-1.4,3.35,-19.495
AddVertex,-1.35,3.46,-19.495
AddVertex,-1.255,3.56,-19.495
AddVertex,-1.135,3.61,-19.495
AddVertex,-0.54,3.68,-19.495
AddVertex,0,3.7,-19.495
AddVertex,0.54,3.68,-19.495,
AddVertex,1.135,3.61,-19.495,
AddVertex,1.255,3.56,-19.495,
AddVertex,1.35,3.46,-19.495,
AddVertex,1.4,3.35,-19.495,
AddVertex,1.4,1,-19.495,
AddFace,11,1,0,12
AddFace,10,2,1,11
AddFace,9,3,2,10
AddFace,8,4,3,9
AddFace,7,5,4,8
AddFace,6,5,7,
GenerateNormals,,,,

LoadTexture,rear int.bmp,,,
SetTextureCoordinates,0,0,0.997,
SetTextureCoordinates,1,0,0.13
SetTextureCoordinates,2,0.018,0.089
SetTextureCoordinates,3,0.052,0.052
SetTextureCoordinates,4,0.095,0.033
SetTextureCoordinates,5,0.307,0.007
SetTextureCoordinates,6,0.5,0.001
SetTextureCoordinates,7,0.693,0.007
SetTextureCoordinates,8,0.905,0.033
SetTextureCoordinates,9,0.948,0.052
SetTextureCoordinates,10,0.982,0.089
SetTextureCoordinates,11,1,0.13
SetTextureCoordinates,12,1,0.997
SetDecalTransparentColor,0,0,0



CreateMeshBuilder,,;//左側面,,
AddVertex,1.4,1,0,
AddVertex,1.4,3.35,0,
AddVertex,1.4,3.35,-19.5,
AddVertex,1.4,1,-19.5,
AddFace2,0,3,2,1
GenerateNormals,,,,

LoadTexture,side1-2.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,255,255,255,

CreateMeshBuilder,,;//左側面方向幕,,
AddVertex,1.405,3.09,-9.923,
AddVertex,1.405,3.27,-9.923,
AddVertex,1.405,3.27,-10.57,
AddVertex,1.405,3.09,-10.57,
AddFace,0,3,2,1
GenerateNormals,,,,

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

CreateMeshBuilder,,;//連結幌,
AddVertex     ,-0.5,3.2,-19.8
AddVertex     ,-0.5,3.2,-19.5
AddVertex     ,0.5,3.2,-19.5
AddVertex     ,0.5,3.2,-19.8
AddVertex     ,0.6,3.13,-19.5
AddVertex     ,0.6,3.13,-19.8
AddVertex     ,0.6,1.19,-19.5
AddVertex     ,0.6,1.19,-19.8,
AddVertex     ,0.5,1.12,-19.5,
AddVertex     ,0.5,1.12,-19.8,
AddVertex     ,-0.6,3.13,-19.8,
AddVertex     ,-0.6,3.13,-19.5,
AddVertex     ,-0.6,1.19,-19.5,
AddVertex     ,-0.6,1.19,-19.8,
AddVertex     ,-0.5,1.12,-19.5,
AddVertex     ,-0.5,1.12,-19.8,
AddFace2,0,1,2,3
AddFace2,4,2,3,5
AddFace2,6,4,5,7
AddFace2,8,6,7,9
AddFace2,1,11,10,0
AddFace2,11,12,13,10
AddFace2,12,14,15,13
AddFace2,8,14,15,9
GenerateNormals,,,,

LoadTexture,horo.bmp,,,
SetTextureCoordinates,0,1,0,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,1,
SetTextureCoordinates,3,1,0,
SetTextureCoordinates,4,0,1,
SetTextureCoordinates,5,1,0,
SetTextureCoordinates,6,0,5,
SetTextureCoordinates,7,1,0,
SetTextureCoordinates,8,0,1,
SetTextureCoordinates,9,1,0,
SetTextureCoordinates,10,1,0,
SetTextureCoordinates,11,0,1,
SetTextureCoordinates,12,0,5,
SetTextureCoordinates,13,1,0,
SetTextureCoordinates,14,0,1,
SetTextureCoordinates,15,1,0,

CreateMeshBuilder,,;//左側面転落防止幌,,
AddVertex,1.41,1.2,-19.47,
AddVertex,1.41,2.4,-19.47,
AddVertex,1.41,2.4,-19.7,
AddVertex,1.41,1.2,-19.7,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,horo2.bmp,,,
SetTextureCoordinates,0,0.03,1,
SetTextureCoordinates,1,0.03,0,
SetTextureCoordinates,2,0.99,0,
SetTextureCoordinates,3,0.99,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//右側面,,
AddVertex,-1.4,1,0,
AddVertex,-1.4,3.35,0,
AddVertex,-1.4,3.35,-19.5,
AddVertex,-1.4,1,-19.5,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,side1.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,255,255,255,

CreateMeshBuilder,,;//左側面,,
AddVertex,1.37,1,0,
AddVertex,1.37,3.35,0,
AddVertex,1.37,3.35,-19.5,
AddVertex,1.37,1,-19.5,
AddFace,0,1,2,3
GenerateNormals,,,,

LoadTexture,side int.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,255,255,255,

CreateMeshBuilder,,;//右側面,,
AddVertex,-1.37,1,0,
AddVertex,-1.37,3.35,0,
AddVertex,-1.37,3.35,-19.5,
AddVertex,-1.37,1,-19.5,
AddFace,0,3,2,1
GenerateNormals,,,,

LoadTexture,side int.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,255,255,255,

CreateMeshBuilder,,;//右側面方向幕,,
AddVertex,-1.405,3.09,-9.923,
AddVertex,-1.405,3.27,-9.923,
AddVertex,-1.405,3.27,-10.57,
AddVertex,-1.405,3.09,-10.57,
AddFace,0,1,2,3
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右側面転落防止幌,,
AddVertex,-1.41,1.2,-19.47,
AddVertex,-1.41,2.4,-19.47,
AddVertex,-1.41,2.4,-19.7,
AddVertex,-1.41,1.2,-19.7,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,horo2.bmp,,,
SetTextureCoordinates,0,0.03,1,
SetTextureCoordinates,1,0.03,0,
SetTextureCoordinates,2,0.99,0,
SetTextureCoordinates,3,0.99,1,
SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//底面,,
AddVertex,-1.4,1,-19.5,
AddVertex,1.4,1,-19.5,
AddVertex,-1.4,1,0,
AddVertex,1.4,1,0,
AddFace,0,1,3,2
SetColor,0,0,0,
GenerateNormals,,,,


;------屋根------,,,,
CreateMeshBuilder,,;//屋根,,
AddVertex,-1.4,3.35,-19.5,
AddVertex,-1.35,3.46,-19.5,
AddVertex,-1.255,3.56,-19.5,
AddVertex,-1.135,3.61,-19.5,
AddVertex,-0.54,3.68,-19.5,
AddVertex,0,3.7,-19.5,
AddVertex,0.54,3.68,-19.5
AddVertex,1.135,3.61,-19.5
AddVertex,1.255,3.56,-19.5
AddVertex,1.35,3.46,-19.5
AddVertex,1.4,3.35,-19.5
AddVertex,-1.4,3.35,0
AddVertex,-1.35,3.46,0
AddVertex,-1.255,3.56,0
AddVertex,-1.135,3.61,0
AddVertex,-0.54,3.68,0
AddVertex,0,3.7,0
AddVertex,0.54,3.68,0
AddVertex,1.135,3.61,0
AddVertex,1.255,3.56,0
AddVertex,1.35,3.46,0
AddVertex,1.4,3.35,0
AddFace2,1,0,11,12
AddFace2,2,1,12,13
AddFace2,3,2,13,14
AddFace2,4,3,14,15
AddFace2,5,4,15,16
AddFace2,6,5,16,17
AddFace2,7,6,17,18
AddFace2,8,7,18,19
AddFace2,9,8,19,20
AddFace2,10,9,20,21
GenerateNormals,,,,

LoadTexture,yane.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0.04,0,
SetTextureCoordinates,2,0.125,0,
SetTextureCoordinates,3,0.15,0
SetTextureCoordinates,4,0.3,0
SetTextureCoordinates,5,0.5,0
SetTextureCoordinates,6,0.7,0
SetTextureCoordinates,7,0.85,0
SetTextureCoordinates,8,0.875,0
SetTextureCoordinates,9,0.96,0
SetTextureCoordinates,10,1,0
SetTextureCoordinates,11,0,1
SetTextureCoordinates,12,0.04,1
SetTextureCoordinates,13,0.125,1
SetTextureCoordinates,14,0.15,1
SetTextureCoordinates,15,0.3,1
SetTextureCoordinates,16,0.5,1
SetTextureCoordinates,17,0.7,1
SetTextureCoordinates,18,0.85,1
SetTextureCoordinates,19,0.875,1,
SetTextureCoordinates,20,0.96,1,
SetTextureCoordinates,21,1,1,


CreateMeshBuilder,,;//ランボード,,
AddVertex,-1.25,3.57,-0.58,
AddVertex,-1.23,3.63,-0.58,
AddVertex,-1.25,3.57,-19.1,
AddVertex,-1.23,3.63,-19.1,
AddVertex,1.25,3.57,-0.58,
AddVertex,1.23,3.63,-0.58,
AddVertex,1.25,3.57,-19.1,
AddVertex,1.23,3.63,-19.1,
AddFace2,2,0,1,3
AddFace2,3,1,5,7
AddFace2,4,6,7,5
AddFace2,0,4,5,1
AddFace2,6,2,3,7
SetColor,120,120,120,
GenerateNormals,,,,


;------屋根上機器------,,,,
CreateMeshBuilder,,;//アンテナ,,
AddVertex          ,-0.02,3.75,-1.83,
AddVertex          ,-0.02,4.08,-1.89,
AddVertex          ,0.02,4.08,-1.89,
AddVertex          ,0.02,3.75,-1.83,
AddVertex          ,-0.02,4.08,-2.17,
AddVertex          ,0.02,4.08,-2.17,
AddVertex          ,-0.02,4.05,-2.17,
AddVertex          ,0.02,4.05,-2.17,
AddVertex          ,-0.02,3.75,-1.96,
AddVertex          ,-0.02,4.03,-1.96,
AddVertex          ,0.02,3.75,-1.96,
AddVertex          ,0.02,4.03,-1.96,
AddFace,0,3,2,1
AddFace,1,2,5,4
AddFace,4,5,7,6
AddFace,8,0,1,9
AddFace,10,11,2,3
AddFace,6,9,1,4
AddFace,7,5,2,11
AddFace,8,9,11,10
AddFace,9,6,7,11
SetColor,160,160,160,
Translate,0,0,1.3,
GenerateNormals,,,,

CreateMeshBuilder,,;//アンテナ,,
Cylinder,10,0.08,0.1,0.22
Translate,0,3.75,-0.61,
SetColor,140,140,140,




CreateMeshBuilder,,;//前面窓部,,
AddVertex,-1.4,0.1,0,
AddVertex,1.4,0.1,0,
AddVertex,1.4,1,0,
AddVertex,-1.4,1,0,
AddFace2,0,1,2,3
LoadTexture,skart.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0
SetDecalTransparentColor,0,0,0

CreateMeshBuilder,,;//ジャンパ栓,
AddVertex,-0.94,0.9,-0.05
AddVertex,-1.24,0.9,-0.05
AddVertex,-1.24,0.5,-0.05
AddVertex,-0.94,0.5,-0.05
AddFace2,0,1,2,3
GenerateNormals,,,,

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

SetDecalTransparentColor,0,0,0,


CreateMeshBuilder,,;//ホース栓,,
AddVertex,0.5,1,-19.48,
AddVertex,1.25,1,-19.48,
AddVertex,1.25,0.43,-19.48,
AddVertex,0.5,0.43,-19.48,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,front-under2.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0,
SetTextureCoordinates,2,1,1,
SetTextureCoordinates,3,0,1,
SetDecalTransparentColor,0,0,0,





;------連結器------,,,
CreateMeshBuilder,,;//連結器,
Cube,0.08,0.065,0.15
SetColor,35,35,35
Translate        ,0,0.88,0
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.08,0.1,0.04
SetColor,35,35,35
Translate        ,0.08,0.88,0.3
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.04,0.09,0.08
SetColor,35,35,35
Translate        ,0.13,0.88,0.2
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.05,0.11,0.03
SetColor,35,35,35
Translate        ,0,0.88,0.15
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.13,0.11,0.03
SetColor,35,35,35
Translate        ,0,0.88,0.12
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
Cube,0.04,0.09,0.1
SetColor,35,35,35
Translate        ,-0.13,0.88,0.15


CreateMeshBuilder,,;//連結器,
AddVertex,-0.17,0.965,0.25
AddVertex,-0.09,0.965,0.25
AddVertex,-0.13,0.88,0.35
AddVertex,-0.09,0.795,0.25
AddVertex,-0.17,0.795,0.25
AddFace,0,2,1
AddFace,2,4,3
AddFace,3,1,2
AddFace,0,4,2
SetColor,35,35,35
GenerateNormals,,,


CreateMeshBuilder,,;//連結器,
AddVertex,0.35,0.6,-0.05
AddVertex,0.35,0.9,-0.05
AddVertex,-0.25,0.9,-0.05
AddVertex,-0.25,0.6,-0.05,
AddFace2,0,1,2,3
GenerateNormals,,,,

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


;------台車(前）------,,,,
CreateMeshBuilder,,;//左台車,,
AddVertex,0.9,0.17,-18.13,
AddVertex,0.9,0.94,-18.13,
AddVertex,0.9,0.94,-15.07,
AddVertex,0.9,0.17,-15.07,
AddFace,0,1,2,3
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左台車,,
AddVertex,0.75,0.17,-18.13,
AddVertex,0.75,0.94,-18.13,
AddVertex,0.75,0.94,-15.07,
AddVertex,0.75,0.17,-15.07,
AddFace2,0,1,2,3
SetColor,50,50,50,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右台車,,
AddVertex,-0.9,0.17,-18.13,
AddVertex,-0.9,0.94,-18.13,
AddVertex,-0.9,0.94,-15.07,
AddVertex,-0.9,0.17,-15.07,
AddFace,0,3,2,1
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右台車,,
AddVertex,-0.75,0.17,-18.13,
AddVertex,-0.75,0.94,-18.13,
AddVertex,-0.75,0.94,-15.07,
AddVertex,-0.75,0.17,-15.07,
AddFace2,0,3,2,1
SetColor,50,50,50,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左側空気バネ,,
Cylinder,6,0.38,0.38,0.15
SetColor,30,30,30,
Translate,0.95,0.92,-16.6,


CreateMeshBuilder,,;//左側空気バネ,,
Cylinder,6,0.21,0.21,0.1
SetColor,60,56,56,
Translate,0.95,0.8,-16.6,


CreateMeshBuilder,,;//右側空気バネ,,
Cylinder,6,0.38,0.38,0.15
SetColor,30,30,30,
Translate,-0.95,0.92,-16.6,


CreateMeshBuilder,,;//右側空気バネ,,
Cylinder,6,0.21,0.21,0.1
SetColor,60,56,56,
Translate,-0.95,0.8,-16.6,


;------台車(後）------,,,,
CreateMeshBuilder,,;//左台車,,
AddVertex,0.9,0.17,-4.43,
AddVertex,0.9,0.94,-4.43,
AddVertex,0.9,0.94,-1.37,
AddVertex,0.9,0.17,-1.37,
AddFace,0,1,2,3
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左台車,,
AddVertex,0.75,0.17,-4.43,
AddVertex,0.75,0.94,-4.43,
AddVertex,0.75,0.94,-1.37,
AddVertex,0.75,0.17,-1.37,
AddFace2,0,1,2,3
SetColor,50,50,50,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右台車,,
AddVertex,-0.9,0.17,-4.43,
AddVertex,-0.9,0.94,-4.43,
AddVertex,-0.9,0.94,-1.37,
AddVertex,-0.9,0.17,-1.37,
AddFace,0,3,2,1
GenerateNormals,,,,

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


CreateMeshBuilder,,;//右台車,,
AddVertex,-0.75,0.17,-4.43,
AddVertex,-0.75,0.94,-4.43,
AddVertex,-0.75,0.94,-1.37,
AddVertex,-0.75,0.17,-1.37,
AddFace2,0,3,2,1
SetColor,50,50,50,
GenerateNormals,,,,

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


CreateMeshBuilder,,;//左側空気バネ,,
Cylinder,6,0.38,0.38,0.15
SetColor,30,30,30,
Translate,0.95,0.92,-2.9,


CreateMeshBuilder,,;//左側空気バネ,,
Cylinder,6,0.21,0.21,0.1
SetColor,60,56,56,
Translate,0.95,0.8,-2.9,


CreateMeshBuilder,,;//右側空気バネ,,
Cylinder,6,0.38,0.38,0.15
SetColor,30,30,30,
Translate,-0.95,0.92,-2.9,


CreateMeshBuilder,,;//右側空気バネ,,
Cylinder,6,0.21,0.21,0.1
SetColor,60,56,56,
Translate,-0.95,0.8,-2.9,


;------床下機器------,,,,
CreateMeshBuilder,,;//ステップ,,
AddVertex,1.32,0.47,-0.76,
AddVertex,1.32,1,-0.76,
AddVertex,1.32,1,-1.01,
AddVertex,1.32,0.47,-1.01,
AddVertex,-1.32,0.47,-0.76,
AddVertex,-1.32,1,-0.76,
AddVertex,-1.32,1,-1.01,
AddVertex,-1.32,0.47,-1.01,
AddFace2,0,1,2,3
AddFace2,4,5,6,7
GenerateNormals,,,,

LoadTexture,step.bmp,,
SetTextureCoordinates,0,1,1
SetTextureCoordinates,1,1,0
SetTextureCoordinates,2,0,0
SetTextureCoordinates,3,0,1
SetTextureCoordinates,4,1,1
SetTextureCoordinates,5,1,0
SetTextureCoordinates,6,0,0
SetTextureCoordinates,7,0,1
SetDecalTransparentColor,0,0,0


;------床下機器------,,,
CreateMeshBuilder,,;//床下機器,
AddVertex,1.1,0.25,-14.97
AddVertex,1.1,1,-14.97
AddVertex,1.1,1,-4.75,
AddVertex,1.1,0.25,-4.75,
AddVertex,-1.1,0.25,-14.97,
AddVertex,-1.1,1,-14.97,
AddVertex,-1.1,1,-4.75,
AddVertex,-1.1,0.25,-4.75,
AddFace,0,1,2,3
AddFace,4,7,6,5
AddFace,4,5,1,0
AddFace,3,2,6,7
GenerateNormals,,,,

LoadTexture,Tc-under.bmp,,,
SetTextureCoordinates,0,0.998,0.99,
SetTextureCoordinates,1,0.998,0.03,
SetTextureCoordinates,2,0.005,0.03,
SetTextureCoordinates,3,0.005,0.99,
SetTextureCoordinates,4,0.998,0.99,
SetTextureCoordinates,5,0.998,0.03,
SetTextureCoordinates,6,0.005,0.03,
SetTextureCoordinates,7,0.005,0.99,




;------影------,,,,
CreateMeshBuilder,,;//影,,
AddVertex,-1.4,-0.1,-19.75,
AddVertex,-1.4,-0.1,0.25,
AddVertex,1.4,-0.1,0.25,
AddVertex,1.4,-0.1,-19.75,
AddFace,0,1,2,3
SetColor,0,0,0,150
GenerateNormals,,,,

;Pembatas kabin,,,,

CreateMeshBuilder,,;//前面,,
AddVertex,-1.4,1,-1.5,
AddVertex,-1.4,3.35,-1.5,
AddVertex,-1.35,3.46,-1.5,
AddVertex,-1.255,3.56,-1.5,
AddVertex,-1.135,3.61,-1.5,
AddVertex,-0.54,3.68,-1.5,
AddVertex,0,3.7,-1.5,
AddVertex,0.54,3.68,-1.5,
AddVertex,1.135,3.61,-1.5,
AddVertex,1.255,3.56,-1.5,
AddVertex,1.35,3.46,-1.5,
AddVertex,1.4,3.35,-1.5,
AddVertex,1.4,1,-1.5,
AddFace2,12,11,1,0
AddFace2,11,10,2,1
AddFace2,10,9,3,2
AddFace2,9,8,4,3
AddFace2,8,7,5,4
AddFace2,6,5,7,
GenerateNormals,,,,

LoadTexture,cabin2.bmp,,,
SetTextureCoordinates,0,0,0.997,
SetTextureCoordinates,1,0,0.13,
SetTextureCoordinates,2,0.018,0.089,
SetTextureCoordinates,3,0.052,0.052,
SetTextureCoordinates,4,0.095,0.033
SetTextureCoordinates,5,0.307,0.007
SetTextureCoordinates,6,0.5,0.001
SetTextureCoordinates,7,0.693,0.007
SetTextureCoordinates,8,0.905,0.033
SetTextureCoordinates,9,0.948,0.052
SetTextureCoordinates,10,0.982,0.089
SetTextureCoordinates,11,1,0.13
SetTextureCoordinates,12,1,0.997
SetDecalTransparentColor,0,0,255


CreateMeshBuilder,,;//底面,
AddVertex    ,-1.4,1,-19.5
AddVertex    ,-1.4,1,0
AddVertex    ,1.4,1,0
AddVertex    ,1.4,1,-19.5,
AddVertex    ,-1.4,1,-19.5,
AddVertex    ,1.4,1,-19.5,
AddFace,0,3,2,1
AddFace,4,5,3,0
SetColor,0,0,0,
GenerateNormals,,,,

;Lantai,,,,
CreateMeshBuilder,,;//底面,,
AddVertex    ,-1.4,1.12,-19.5,
AddVertex    ,-1.4,1.12,0,
AddVertex    ,1.4,1.12,0,
AddVertex    ,1.4,1.12,-19.5,
AddVertex    ,-1.4,1.12,-19.5,
AddVertex    ,1.4,1.12,-19.5,
AddFace,0,1,2,3
AddFace,4,0,3,5
SetColor,172,143,119,
GenerateNormals,,,,

CreateMeshBuilder,,;//連結器取付け部,,
AddVertex,-0.57,1,-0.03,
AddVertex,0.57,1,-0.03,
AddVertex,0.57,0.62,-0.03,
AddVertex,-0.57,0.62,-0.03,
AddVertex,0.53,0.62,-0.03,
AddVertex,0.53,1,-0.03,
AddVertex,0.53,1,-0.12,
AddVertex,0.53,0.62,-0.12,
AddVertex,-0.53,0.62,-0.02,
AddVertex,-0.53,1,-0.02,
AddVertex,-0.53,1,-0.12,
AddVertex,-0.53,0.62,-0.12,
AddFace,0,3,2,1
AddFace,4,7,6,5
AddFace,8,9,10,11
GenerateNormals,,,,

LoadTexture,front-under.bmp,,,
SetTextureCoordinates,0,0,0.005,
SetTextureCoordinates,1,1,0.005,
SetTextureCoordinates,2,1,0.995,
SetTextureCoordinates,3,0,0.995,
SetTextureCoordinates,4,0.955,0.995,
SetTextureCoordinates,5,0.955,0.005,
SetTextureCoordinates,6,0.955,0.005,
SetTextureCoordinates,7,0.955,0.995,
SetTextureCoordinates,8,0.955,0.995
SetTextureCoordinates,9,0.955,0.005
SetTextureCoordinates,10,0.955,0.005
SetTextureCoordinates,11,0.955,0.995
SetDecalTransparentColor,0,0,0




CreateMeshBuilder,,;//床下機器,
Cube,0.75,0.15,0.55
SetColor,18,19,19
Translate,0,0.9,-0.7
GenerateNormals,,,


CreateMeshBuilder,,;//床下機器,
Cube,0.75,0.15,0.7
SetColor,22,19,10
Translate,0,0.9,-18.799
GenerateNormals,,,


;------屋根上機器------,,,,
CreateMeshBuilder,,;//アンテナ,,
AddVertex          ,-0.02,3.75,-1.83,
AddVertex          ,-0.02,4.08,-1.89,
AddVertex          ,0.02,4.08,-1.89,
AddVertex          ,0.02,3.75,-1.83,
AddVertex          ,-0.02,4.08,-2.17,
AddVertex          ,0.02,4.08,-2.17,
AddVertex          ,-0.02,4.05,-2.17,
AddVertex          ,0.02,4.05,-2.17,
AddVertex          ,-0.02,3.75,-1.96,
AddVertex          ,-0.02,4.03,-1.96,
AddVertex          ,0.02,3.75,-1.96,
AddVertex          ,0.02,4.03,-1.96,
AddFace,0,3,2,1
AddFace,1,2,5,4
AddFace,4,5,7,6
AddFace,8,0,1,9
AddFace,10,11,2,3
AddFace,6,9,1,4
AddFace,7,5,2,11
AddFace,8,9,11,10
AddFace,9,6,7,11
SetColor,160,160,160,
Translate,0,0,1.3,
GenerateNormals,,,,

CreateMeshBuilder,,;//アンテナ,,
Cylinder,10,0.08,0.1,0.22
Translate,0,3.75,-0.61,
SetColor,140,140,140,

CreateMeshBuilder,,;//クーラー,,
AddVertex,-0.77,3.6,-17.6,
AddVertex,-0.53,4.13,-17.55,
AddVertex,-0.77,3.6,-15.4,
AddVertex,-0.53,4.13,-15.45,
AddVertex,0.77,3.6,-17.6,
AddVertex,0.53,4.13,-17.55,
AddVertex,0.77,3.6,-15.4,
AddVertex,0.53,4.13,-15.45,
AddFace,2,3,1,0
AddFace,3,7,5,1
AddFace,4,5,7,6
AddFace,0,1,5,4
AddFace,6,7,3,2
GenerateNormals,,,

LoadTexture,cooler-r.bmp,,
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0.025,0.21
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,0.975,0.21
SetTextureCoordinates,4,0,1
SetTextureCoordinates,5,0.025,0.79
SetTextureCoordinates,6,1,1
SetTextureCoordinates,7,0.975,0.79

CreateMeshBuilder,,;//クーラー,
AddVertex,-0.77,3.6,-17.6,
AddVertex,-0.53,4.13,-17.55,
AddVertex,-0.77,3.6,-15.4,
AddVertex,-0.53,4.13,-15.45,
AddVertex,0.77,3.6,-17.6,
AddVertex,0.53,4.13,-17.55,
AddVertex,0.77,3.6,-15.4,
AddVertex,0.53,4.13,-15.45,
AddFace,2,3,1,0
AddFace,3,7,5,1
AddFace,4,5,7,6
AddFace,0,1,5,4
AddFace,6,7,3,2
Translate,0,0,4.82,
GenerateNormals,,,,

LoadTexture,cooler-r.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0.025,0.21,
SetTextureCoordinates,2,1,0
SetTextureCoordinates,3,0.975,0.21
SetTextureCoordinates,4,0,1
SetTextureCoordinates,5,0.025,0.79
SetTextureCoordinates,6,1,1
SetTextureCoordinates,7,0.975,0.79


CreateMeshBuilder,,;//クーラー,
AddVertex,-0.77,3.6,-17.6,
AddVertex,-0.53,4.13,-17.55,
AddVertex,-0.77,3.6,-15.4,
AddVertex,-0.53,4.13,-15.45,
AddVertex,0.77,3.6,-17.6,
AddVertex,0.53,4.13,-17.55,
AddVertex,0.77,3.6,-15.4,
AddVertex,0.53,4.13,-15.45,
AddFace,2,3,1,0
AddFace,3,7,5,1
AddFace,4,5,7,6
AddFace,0,1,5,4
AddFace,6,7,3,2
Translate,0,0,8.8,
GenerateNormals,,,,

LoadTexture,cooler-r.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0.025,0.21,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,0.975,0.21,
SetTextureCoordinates,4,0,1,
SetTextureCoordinates,5,0.025,0.79,
SetTextureCoordinates,6,1,1,
SetTextureCoordinates,7,0.975,0.79,


CreateMeshBuilder,,;//クーラー,,
AddVertex,-0.77,3.6,-17.6,
AddVertex,-0.53,4.13,-17.55,
AddVertex,-0.77,3.6,-15.4,
AddVertex,-0.53,4.13,-15.45,
AddVertex,0.77,3.6,-17.6,
AddVertex,0.53,4.13,-17.55,
AddVertex,0.77,3.6,-15.4,
AddVertex,0.53,4.13,-15.45,
AddFace,2,3,1,0
AddFace,3,7,5,1
AddFace,4,5,7,6
AddFace,0,1,5,4
AddFace,6,7,3,2
Translate,0,0,13.5,
GenerateNormals,,,,

LoadTexture,cooler-r.bmp,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,0.025,0.21,
SetTextureCoordinates,2,1,0,
SetTextureCoordinates,3,0.975,0.21,
SetTextureCoordinates,4,0,1,
SetTextureCoordinates,5,0.025,0.79,
SetTextureCoordinates,6,1,1,
SetTextureCoordinates,7,0.975,0.79,

;----- Kaca -----
CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-10.75,
AddVertex,1.39,3.2,-10.75,
AddVertex,1.39,3.2,-8.75,
AddVertex,1.39,1.9,-8.75,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,0,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-10.75,
AddVertex,-1.39,3.2,-10.75,
AddVertex,-1.39,3.2,-8.75,
AddVertex,-1.39,1.9,-8.75,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,0,

CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-10.75,
AddVertex,1.39,3.2,-10.75,
AddVertex,1.39,3.2,-8.7,
AddVertex,1.39,1.9,-8.7,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,4.8,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-10.75,
AddVertex,-1.39,3.2,-10.75,
AddVertex,-1.39,3.2,-8.7,
AddVertex,-1.39,1.9,-8.7,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,4.8,

CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-10.75,
AddVertex,1.39,3.2,-10.75,
AddVertex,1.39,3.2,-8.7,
AddVertex,1.39,1.9,-8.7,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,-4.85,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-10.75,
AddVertex,-1.39,3.2,-10.75,
AddVertex,-1.39,3.2,-8.7,
AddVertex,-1.39,1.9,-8.7,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,-4.85,

CreateMeshBuilder,,,,
AddVertex,1.39,1.9,-10.6,
AddVertex,1.39,3.2,-10.6,
AddVertex,1.39,3.2,-9.5,
AddVertex,1.39,1.9,-9.5,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,-8.75,

CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,-10.75,
AddVertex,-1.39,3.2,-10.75,
AddVertex,-1.39,3.2,-9.5,
AddVertex,-1.39,1.9,-9.5,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,-8.65,

CreateMeshBuilder,,,,
AddVertex,-1.65,1.9,-9.498,
AddVertex,-1.65,2.9,-9.498,
AddVertex,-2.25,2.9,-9.498,
AddVertex,-2.25,1.9,-9.498,
AddFace2,0,3,2,1
SetColor,80,80,160,90
Translate,1,0,-10,


CreateMeshBuilder,,,,
AddVertex,-1.65,1.9,-9.498,
AddVertex,-1.65,2.9,-9.498,
AddVertex,-2.25,2.9,-9.498,
AddVertex,-2.25,1.9,-9.498,
AddFace2,0,3,2,1
SetColor,80,80,160,90
Translate,2.9,0,-10,

;--Kaca kabin masinis--

;Kiri
CreateMeshBuilder,,,,
AddVertex,1.39,1.9,7.6,
AddVertex,1.39,3.2,7.6,
AddVertex,1.39,3.2,8.5,
AddVertex,1.39,1.9,8.5,
AddFace2,0,1,2,3
SetColor,80,80,160,90
Translate,0,0,-8.75,

;Kanan
CreateMeshBuilder,,,,
AddVertex,-1.39,1.9,7.6,
AddVertex,-1.39,3.2,7.6,
AddVertex,-1.39,3.2,8.5,
AddVertex,-1.39,1.9,8.5,
AddFace2,3,2,1,0
SetColor,80,80,160,90
Translate,0,0,-8.65,

;--Kaca belakang--
;Kiri
CreateMeshBuilder,,,,
AddVertex,-1.55,2.045,-9.453,
AddVertex,-1.55,2.935,-9.453,
AddVertex,-2.33,2.935,-9.453,
AddVertex,-2.33,2.045,-9.453,
AddFace2,0,1,2,3
setcolor,80,80,160,90
Translate,1,0,9.45,

;Tengah
CreateMeshBuilder,,,,
AddVertex,-2.635,2.07,-9.453,
AddVertex,-2.635,2.905,-9.453,
AddVertex,-3.175,2.905,-9.453,
AddVertex,-3.175,2.07,-9.453,
AddFace2,0,1,2,3
setcolor,80,80,160,90
Translate,2.9,0,9.45,

;Kanan
CreateMeshBuilder,,,,
AddVertex,-1.62,2.03,-9.453,
AddVertex,-1.62,2.935,-9.453,
AddVertex,-2.375,2.935,-9.453,
AddVertex,-2.375,2.03,-9.453,
AddFace2,0,1,2,3
Setcolor,80,80,160,90
Translate,2.9,0,9.45,

; ----- Tambahan -----
; 1. Logo Tokyu Car Corp.
;CreateMeshBuilder
;AddVertex,-0.55,3.1,-1.503
;AddVertex,-0.55,3.0,-1.503
;AddVertex,-0.98,3.0,-1.503
;AddVertex,-0.98,3.1,-1.503
;AddFace2,0,1,2,3
;GenerateNormals

;LoadTexture,tokyu-logo.bmp
;SetTextureCoordinates,0,0,0
;SetTextureCoordinates,1,0,1
;SetTextureCoordinates,2,1,1
;SetTextureCoordinates,3,1,0

; 2. Logo Laurel Prize
;CreateMeshBuilder
;AddVertex,-0.1,3.35,-1.503
;AddVertex,-0.1,3.1,-1.503
;AddVertex,0.1,3.1,-1.503
;AddVertex,0.1,3.35,-1.503
;AddFace2,0,1,2,3
;Translate,0,0,0
;GenerateNormals

;LoadTexture,laurel-logo.bmp
;SetTextureCoordinates,0,0,0
;SetTextureCoordinates,1,0,1
;SetTextureCoordinates,2,1,1
;SetTextureCoordinates,3,1,0

; 3. Nomor gerbong & rangkaian
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-1.1,3.15,-19.493
AddVertex,-1.1,3.25,-19.493
AddVertex,-0.8,3.25,-19.493
AddVertex,-0.8,3.15,-19.493
AddFace2,0,3,2,1
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.875,
SetTextureCoordinates,2,0,0.875,
SetTextureCoordinates,3,0,0.995,

CreateMeshBuilder,,;//右側面車番,,
AddVertex,-0.69,3.3,-19.493
AddVertex,-0.69,3.4,-19.493
AddVertex,-0.59,3.4,-19.493
AddVertex,-0.59,3.3,-19.493
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,carnum.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.875,
SetTextureCoordinates,2,0,0.875,
SetTextureCoordinates,3,0,0.995,

;Belakang
CreateMeshBuilder,,;//右側面車番,,
AddVertex,1.05,3.15,-1.503
AddVertex,1.05,3.25,-1.503
AddVertex,0.75,3.25,-1.503
AddVertex,0.75,3.15,-1.503
AddFace2,0,3,2,1
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.875,
SetTextureCoordinates,2,0,0.875,
SetTextureCoordinates,3,0,0.995,

CreateMeshBuilder,,;//右側面車番,,
AddVertex,0.65,3.3,-1.503
AddVertex,0.65,3.4,-1.503
AddVertex,0.55,3.4,-1.503
AddVertex,0.55,3.3,-1.503
AddFace2,0,3,2,1
GenerateNormals,,,,

LoadTexture,carnum.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.875,
SetTextureCoordinates,2,0,0.875,
SetTextureCoordinates,3,0,0.995,

;Terbelakang
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-1.19,2.95,0.003
AddVertex,-1.19,3.13,0.003
AddVertex,-0.64,3.13,0.003
AddVertex,-0.64,2.95,0.003
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.875,
SetTextureCoordinates,2,0,0.875,
SetTextureCoordinates,3,0,0.995,



;4. Tanda peringatan
CreateMeshBuilder
;AddVertex,-0.1,3.05,-1.503
;AddVertex,-0.1,2.95,-1.503
;AddVertex,0.1,2.95,-1.503
;AddVertex,0.1,3.05,-1.503
;AddFace2,0,1,2,3
;Translate,0,0,0
;GenerateNormals

;LoadTexture,forbidden.bmp
;SetTextureCoordinates,0,0,0
;SetTextureCoordinates,1,0,1
;SetTextureCoordinates,2,1,1
;SetTextureCoordinates,3,1,0

;pegangan,,,,
CreateMeshBuilder,,;//左側面,,
AddVertex,0.7,1.1,0,
AddVertex,0.7,3.45,0,
AddVertex,0.7,3.45,-19.5,
AddVertex,0.7,1.1,-19.5,
AddFace2,0,1,2,3
GenerateNormals,,,,
,,,,
LoadTexture,pegangan2.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,
,,,,
CreateMeshBuilder,,;//左側面,,
AddVertex,-0.7,1.1,0,
AddVertex,-0.7,3.45,0,
AddVertex,-0.7,3.45,-19.5,
AddVertex,-0.7,1.1,-19.5,
AddFace2,0,1,2,3
GenerateNormals,,,,
,,,,
LoadTexture,pegangan2.bmp,,,
SetTextureCoordinates,0,0.001,1,
SetTextureCoordinates,1,0.001,0.01,
SetTextureCoordinates,2,1,0.01,
SetTextureCoordinates,3,1,1,
SetDecalTransparentColor,0,0,0,
,,,,
,,,,
CreateMeshBuilder,,,,
addVertex,-1.39,3.1,0,
addVertex,-1.39,3.1,-19.5,
addVertex,1.39,3.1,-19.5,
addVertex,1.39,3.1,0,
addFace2,0,1,2,3
,,,,
LoadTexture,rak2.png,,,
SetTextureCoordinates,0,0,1,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,-1,0,
SetTextureCoordinates,3,-1,1,
SetDecalTransparentColor,0,0,0,

;------openBVE用------,,,,
;TranslateAll,0,0,9.75,
;openBVEの運転車両用として使う場合は上記;TranslateAllの;を消去してください。,,,,

TranslateAll,0,0,8.6,
RotateAll,0,1,0,180

CreateMeshBuilder,,,,
AddVertex,-0.68,1.9,9.86,
AddVertex,-1.22,1.9,9.86,
AddVertex,-1.22,1.3,9.86,
AddVertex,-0.68,1.3,9.86,
AddVertex,1.28,1.9,9.86,
AddVertex,0.74,1.9,9.86,
AddVertex,0.74,1.3,9.86,
AddVertex,1.28,1.3,9.86,
AddFace2,3,2,1,0
AddFace2,7,6,5,4
Translate,0,-0.145,-18.47,
LoadTexture,glow_red.png,,,
SetTextureCoordinates,0,0,0,
SetTextureCoordinates,1,1,0
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,0,1
SetTextureCoordinates,4,0,0
SetTextureCoordinates,5,1,0
SetTextureCoordinates,6,1,1
SetTextureCoordinates,7,0,1
SetDecalTransparentColor,0,0,0
;SetEmissiveColor,255,0,0
SetBlendMode,Additive,2,

;Panel kabin
CreateMeshBuilder,,;//前面,
AddVertex,-1.4,1,-8.595
AddVertex,-1.4,3.35,-8.595
AddVertex,-1.35,3.46,-8.595
AddVertex,-1.255,3.56,-8.595
AddVertex,-1.135,3.61,-8.595,
AddVertex,-0.54,3.68,-8.595,
AddVertex,0,3.7,-8.595,
AddVertex,0.54,3.68,-8.595,
AddVertex,1.135,3.61,-8.595,
AddVertex,1.255,3.56,-8.595,
AddVertex,1.35,3.46,-8.595,
AddVertex,1.4,3.35,-8.595,
AddVertex,1.4,1,-8.595,
AddFace2,12,0,1,11
AddFace2,11,1,2,10
AddFace2,10,2,3,9
AddFace2,9,3,4,8
AddFace2,8,4,5,7
AddFace2,7,5,6,
SetDecalTransparentColor,0,0,255,

LoadTexture,front3.bmp,,
SetTextureCoordinates,0,0,0.997
SetTextureCoordinates,1,0,0.13
SetTextureCoordinates,2,0.018,0.089
SetTextureCoordinates,3,0.052,0.052
SetTextureCoordinates,4,0.095,0.033
SetTextureCoordinates,5,0.307,0.007
SetTextureCoordinates,6,0.5,0.001
SetTextureCoordinates,7,0.693,0.007
SetTextureCoordinates,8,0.905,0.033
SetTextureCoordinates,9,0.948,0.052
SetTextureCoordinates,10,0.982,0.089
SetTextureCoordinates,11,1,0.13
SetTextureCoordinates,12,1,0.997

CreateMeshBuilder,,;//前面窓部,,
AddVertex,1.35,1.82,-8.59,
AddVertex,0.5,1.82,-8.59,
AddVertex,0.5,2.18,-8.59,
AddVertex,1.35,2.18,-8.59,
AddFace2,0,1,2,3
SetColor,91,38,24

CreateMeshBuilder,,;//前面窓部,,
AddVertex,1.35,1.82,-8.35,
AddVertex,0.5,1.82,-8.35,
AddVertex,0.5,2.2,-8.45,
AddVertex,1.35,2.2,-8.45,
AddFace,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//前面窓部,,
AddVertex,1.35,2.2,-8.45,
AddVertex,0.5,2.2,-8.45,
AddVertex,0.5,2.2,-8.6,
AddVertex,1.35,2.2,-8.6,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel2.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.82,-8.35,
AddVertex,1.35,1.82,-8.35,
AddVertex,1.35,1.77,-8.05,
AddVertex,0.5,1.77,-8.05,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel3.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.77,-8.05,
AddVertex,1.35,1.77,-8.05,
AddVertex,1.35,1.72,-8.05,
AddVertex,0.5,1.72,-8.05,
AddFace,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel4.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.75,-8.05,
AddVertex,1.4,1.75,-8.05,
AddVertex,1.4,1.75,-8.45,
AddVertex,0.5,1.75,-8.45,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel2.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,



CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.75,-8.45,
AddVertex,1.4,1.75,-8.45,
AddVertex,1.4,1.12,-8.45,
AddVertex,0.5,1.12,-8.45,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel2.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,2.2,-8.6,
AddVertex,0.5,2.2,-8.05,
AddVertex,0.5,1.12,-8.05,
AddVertex,0.5,1.12,-8.6,
AddFace2,3,2,1,0
Translate,0,-0.02,0
LoadTexture,panel-side.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,


CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.28,-8.45,
AddVertex,1.4,1.28,-8.45,
AddVertex,1.4,1.19,-8.05,
AddVertex,0.5,1.19,-8.05,
AddFace,3,2,1,0
Translate,0,-0.02,0
LoadTexture,klaxon.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

CreateMeshBuilder,,;//前面窓部,,
AddVertex,0.5,1.19,-8.05,
AddVertex,1.4,1.19,-8.05,
AddVertex,1.4,1.12,-8.05,
AddVertex,0.5,1.12,-8.05,
AddFace,3,2,1,0
Translate,0,-0.02,0
LoadTexture,klaxon2.bmp,,,
SetTextureCoordinates,0,1,1,
SetTextureCoordinates,1,0,1,
SetTextureCoordinates,2,0,0,
SetTextureCoordinates,3,1,0,
SetDecalTransparentColor,0,0,255,

;----- Kursi masinis -----
CreateMeshBuilder
Cylinder,10,0.05,0.05,0.5
SetColor,50,50,50
Translate,0.93,1.37,-7.4
GenerateNormals

CreateMeshBuilder
Cube,0.3,0.03,0.28
SetColor,255,255,0
Translate,0.93,1.6,-7.4
GenerateNormals

CreateMeshBuilder
Cube,0.3,0.3,0.02
SetColor,255,255,0
Translate,0.93,1.9,-7.14

;----- Panel kanan -----
; panel workspace
CreateMeshBuilder
AddVertex, -1.35, 2.00, -8.6
AddVertex, -1.35, 2.00, -8.3
AddVertex, -0.45, 2.00, -8.3
AddVertex, -0.45, 2.00, -8.6
AddFace2, 3, 2, 1, 0 ; top
AddVertex, -1.35, 2.00, -8.3
AddVertex, -1.35, 1.10, -8.3
AddVertex, -0.45, 1.10, -8.3
AddVertex, -0.45, 2.00, -8.3
AddFace2, 7, 6, 5, 4 ; front
AddVertex, -0.45, 2.00, -8.6
AddVertex, -0.45, 1.10, -8.6
AddVertex, -0.45, 1.10, -8.3
AddVertex, -0.45, 2.00, -8.3
AddFace2, 8, 9, 10, 11 ; right
AddVertex, -1.35, 1.10, -8.3
AddVertex, -1.35, 2.00, -8.3
AddVertex, -1.35, 2.00, -8.6
AddVertex, -1.35, 1.10, -8.6
AddFace2, 12, 13, 14, 15 ; left
SetColor,172,143,119

;-----Tongkat kemudi-----
;Vertikal
CreateMeshBuilder
Cube,0.01,0.11,0.01
SetColor,50,50,50
Translate,0.926,1.85,-8.1

;Vertikal
CreateMeshBuilder
Cube,0.03,0.05,0.01
SetColor,50,50,50
Translate,0.926,1.93,-8.1

;Horizontal
CreateMeshBuilder
Cube,0.1,0.01,0.01
SetColor,50,50,50
Translate,0.926,1.97,-8.1

;-----Peringatan kabin (bhs. Jepang)-----
CreateMeshBuilder
AddVertex,0.19,2.7,-7.097
AddVertex,0.19,2.6,-7.097
AddVertex,-0.19,2.6,-7.097
AddVertex,-0.19,2.7,-7.097
AddFace2,0,1,2,3
Translate,0.003,0,0
GenerateNormals

LoadTexture,cabin-res.bmp
SetTextureCoordinates,0,0,0
SetTextureCoordinates,1,0,1
SetTextureCoordinates,2,1,1
SetTextureCoordinates,3,1,0

;//Nomor gerbong - kiri
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-1.41,2.64,-5.32,
AddVertex,-1.41,2.8,-5.32,
AddVertex,-1.41,2.8,-4.77,
AddVertex,-1.41,2.64,-4.77,
AddFace2,0,3,2,1
Translate,0,0,12.38,
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.875,
SetTextureCoordinates,2,0,0.875,
SetTextureCoordinates,3,0,0.995,

;//Nomor gerbong - kanan
CreateMeshBuilder,,;//左側面車番,,
AddVertex,1.41,2.64,-5.32,
AddVertex,1.41,2.8,-5.32,
AddVertex,1.41,2.8,-4.77,
AddVertex,1.41,2.64,-4.77,
AddFace2,0,1,2,3
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,0,0.995,
SetTextureCoordinates,1,0,0.875,
SetTextureCoordinates,2,1,0.875,
SetTextureCoordinates,3,1,0.995,

;//Nomor gerbong - kabin
CreateMeshBuilder,,;//左側面車番,,
AddVertex,1.36,2.44,-5.25,
AddVertex,1.36,2.6,-5.25,
AddVertex,1.36,2.6,-4.75,
AddVertex,1.36,2.44,-4.75,
AddFace2,0,3,2,1
Translate,0,0,-3.3
GenerateNormals,,,,

LoadTexture,num.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.875,
SetTextureCoordinates,2,0,0.875,
SetTextureCoordinates,3,0,0.995,

;---- Urutan gerbong ----

;//Nomor gerbong - kiri
CreateMeshBuilder,,;//右側面車番,,
AddVertex,-1.41,2.64,-4.9,
AddVertex,-1.41,2.8,-4.9,
AddVertex,-1.41,2.8,-4.75,
AddVertex,-1.41,2.64,-4.75,
AddFace2,0,3,2,1
Translate,0,0,14.28,
GenerateNormals,,,,

LoadTexture,carnum.bmp,,,
SetTextureCoordinates,0,1,0.995,
SetTextureCoordinates,1,1,0.875,
SetTextureCoordinates,2,0,0.875,
SetTextureCoordinates,3,0,0.995,

;//Nomor gerbong - kanan
CreateMeshBuilder,,;//左側面車番,,
AddVertex,1.41,2.64,-4.9,
AddVertex,1.41,2.8,-4.9,
AddVertex,1.41,2.8,-4.75,
AddVertex,1.41,2.64,-4.75,
AddFace2,0,1,2,3
Translate,0,0,-2.35
GenerateNormals,,,,

LoadTexture,carnum.bmp,,,
SetTextureCoordinates,0,0,0.995,
SetTextureCoordinates,1,0,0.875,
SetTextureCoordinates,2,1,0.875,
SetTextureCoordinates,3,1,0.995,

CreateMeshBuilder,,;//atap interior,,
AddVertex,-1.32,3.45,-8.6,
AddVertex,-1.32,3.45,10.9,
AddVertex,1.32,3.45,10.9,
AddVertex,1.32,3.45,-8.6,
AddFace2,0,1,2,3
SetColor,255,255,255
GenerateNormals

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