Im currently working on a map maker for a racing game idea
it will use custom meshes as in the segment shown
segment=CreateMesh()
surfa=CreateSurface(segment)
v1=AddVertex(surfa,-2,2,0)
v2=AddVertex(surfa,0,0,0)
v3=AddVertex(surfa,2,0,0)
v4=AddVertex(surfa,4,2,0)
v5=AddVertex(surfa,-2,2,2)
v6=AddVertex(surfa,0,0,2)
v7=AddVertex(surfa,2,0,2)
v8=AddVertex(surfa,4,2,2)
t1=AddTriangle(surfa,v1,v6,v2)
t2=AddTriangle(surfa,v1,v5,v6)
t3=AddTriangle(surfa,v2,v6,v7)
t4=AddTriangle(surfa,v2,v7,v3)
t5=AddTriangle(surfa,v3,v7,v8)
t6=AddTriangle(surfa,v4,v3,v8)
1.can you load a texture and assign it to any triangle ie 6 textures in one surface also can you draw the whole texture in one triangle?
2.can you load a texture and assign it to all tris in a surface ie full image in each tri?
3.any tutorials around on how to assign textures to tri,surface,custommesh?
any help would be welcome i totaly lost :(
it will use custom meshes as in the segment shown
segment=CreateMesh()
surfa=CreateSurface(segment)
v1=AddVertex(surfa,-2,2,0)
v2=AddVertex(surfa,0,0,0)
v3=AddVertex(surfa,2,0,0)
v4=AddVertex(surfa,4,2,0)
v5=AddVertex(surfa,-2,2,2)
v6=AddVertex(surfa,0,0,2)
v7=AddVertex(surfa,2,0,2)
v8=AddVertex(surfa,4,2,2)
t1=AddTriangle(surfa,v1,v6,v2)
t2=AddTriangle(surfa,v1,v5,v6)
t3=AddTriangle(surfa,v2,v6,v7)
t4=AddTriangle(surfa,v2,v7,v3)
t5=AddTriangle(surfa,v3,v7,v8)
t6=AddTriangle(surfa,v4,v3,v8)
1.can you load a texture and assign it to any triangle ie 6 textures in one surface also can you draw the whole texture in one triangle?
2.can you load a texture and assign it to all tris in a surface ie full image in each tri?
3.any tutorials around on how to assign textures to tri,surface,custommesh?
any help would be welcome i totaly lost :(