Original Post
Well i am working on a little grafiks engine.. im quiet new to Dx8... Well i load the info about the map
Set TerrainPA(0).VBuffer = D3DDevice.CreateVertexBuffer(Len(TerrainPA(0).TriStrip(0)) * TerrainW * 6, 0, Lit_FVF, D3DPOOL_DEFAULT)
D3DVertexBuffer8SetData TerrainPA(h).VBuffer, 0, Len(TerrainPA(0).TriStrip(0)) * TerrainW * 6, 0, TerrainPA(0).TriStrip(0)
Set TerrainPA(0).IBuffer = D3DDevice.CreateIndexBuffer(Len(TerrainPA(0).Indices(0)) * TerrainW * 6, 0, D3DFMT_INDEX16, D3DPOOL_DEFAULT)
D3DIndexBuffer8SetData TerrainPA(0).IBuffer, 0, Len(TerrainPA(0).Indices(0)) * TerrainW * 6, 0, TerrainPA(0).Indice(0)
D3DDevice.SetStreamSource 0, TerrainPA(0).VBuffer, Len(TerrainPA(h).TriStrip(0))
D3DDevice.DrawPrimitive D3DPT_TRIANGLELIST, 0, TerrainW * 2
D3DDevice.SetIndices TerrainPA(0).IBuffer, 0
D3DDevice.DrawIndexedPrimitive D3DPT_TRIANGLELIST, 0, TerrainW * 6, 0, 22