hi yes i am trying, however i dont seem to be able to get it to work
[code="delphi"]
pVertices, pIndices: Pointer;
SetLength(tModel.lstTri, pNewMesh.GetNumFaces);
pNewMesh.LockVertexBuffer(D3DLOCK_READONLY, pVertices);
pNewMesh.LockIndexBuffer(D3DLOCK_READONLY, pIndices);
for i := 0 to pNewMesh.GetNumFaces do begin
tModel.lstTri[i].X := // ... lost here..
tModel.lstTri[i].Y :=
tModel.lstTri[i].Z :=
end;
[/code]
i am having trouble using these both. do you have any examples of this routine? thanks.
Bookmarks