EmergencyBrake
Member
Hi,
This is the first time I used 5 and 6 addvertex statements when building an object. The coordinates are wrong and my brick wall and roof didnt come out right. Can somebody help me on the coords please?
code for the wall
;side
CreateMeshBuilder,
AddVertex,-13, 0.6, -7,
AddVertex,-13, 3.5, -7,
AddVertex,-11, 4.5, -7,
AddVertex,-8.1, 4.5, -7,
AddVertex,-6.1, 3.5, -7,
AddVertex,-6.1, 0.6,-7 ,
AddFace,0,1,2,3,4,5,
LoadTexture,brick3.bmp,
SetTextureCoordinates,0,0,3,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,2,0,
SetTextureCoordinates,3,2,3,
SetTextureCoordinates,4,1,0,
SetTextureCoordinates,5,1,0,
code for the roof
;roof front
CreateMeshBuilder,
AddVertex,-5, 2.95,-7.05 ,
AddVertex,-8.1, 4.5,-7.05 ,
AddVertex,-9.55, 5,-6 ,
AddVertex,-9.55, 5,0 ,
AddVertex,-5, 2.95,0 ,
AddFace,0,1,2,3,4,
LoadTexture,tiles.bmp,
SetTextureCoordinates,0,0,2,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,2,2,
SetTextureCoordinates,3,2,0,
SetTextureCoordinates,4,0,2,
This is the first time I used 5 and 6 addvertex statements when building an object. The coordinates are wrong and my brick wall and roof didnt come out right. Can somebody help me on the coords please?
code for the wall
;side
CreateMeshBuilder,
AddVertex,-13, 0.6, -7,
AddVertex,-13, 3.5, -7,
AddVertex,-11, 4.5, -7,
AddVertex,-8.1, 4.5, -7,
AddVertex,-6.1, 3.5, -7,
AddVertex,-6.1, 0.6,-7 ,
AddFace,0,1,2,3,4,5,
LoadTexture,brick3.bmp,
SetTextureCoordinates,0,0,3,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,2,0,
SetTextureCoordinates,3,2,3,
SetTextureCoordinates,4,1,0,
SetTextureCoordinates,5,1,0,
code for the roof
;roof front
CreateMeshBuilder,
AddVertex,-5, 2.95,-7.05 ,
AddVertex,-8.1, 4.5,-7.05 ,
AddVertex,-9.55, 5,-6 ,
AddVertex,-9.55, 5,0 ,
AddVertex,-5, 2.95,0 ,
AddFace,0,1,2,3,4,
LoadTexture,tiles.bmp,
SetTextureCoordinates,0,0,2,
SetTextureCoordinates,1,0,0,
SetTextureCoordinates,2,2,2,
SetTextureCoordinates,3,2,0,
SetTextureCoordinates,4,0,2,