Här är min kod:Har lite problem med animeringar i DX8...
<code>
Dim i As Long, TempVector As D3DVECTOR, TempVertex As D3DLVERTEX, TempMesh As D3DXMesh
For i = 0 To CurMeshObject.GetMesh.GetNumVertices
D3DXVec3Lerp TempVector, Vec3(MeshObject(0).GetVertex(i).X, MeshObject(0).GetVertex(i).Y, MeshObject(0).GetVertex(i).z), Vec3(MeshObject(1).GetVertex(i).X, MeshObject(1).GetVertex(i).Y, MeshObject(1).GetVertex(i).z), 0.9
TempVertex = CurMeshObject.GetVertex(i)
TempVertex.X = TempVector.X
TempVertex.Y = TempVector.Y
TempVertex.z = TempVector.z
CurMeshObject.SetVertex(i) = TempVertex
Next i
Set TempMesh = CurMeshObject.GetMesh
D3DXMeshVertexBuffer8SetData TempMesh, 0, Len(CurMeshObject.GetVertex(0)) * CurMeshObject.GetMesh.GetNumVertices, 0, CurMeshObject.GetVertex(0)
CurMeshObject.SetMesh = TempMesh
</code>
Alla vertex:arna blandar sig, ser ni nått fel?