1 Attachment(s)
Sample: SkinnedMesh (Animated)
Hi,
Many people are looking for a way to load skinned meshes and animated them. After long search i found some C# code on the japanese MSDN (http://www.microsoft.com/japan/msdn/...n/dx9/mxd9.asp)
It would be great if anyone can translate this to english :)
I rewrote the application in visual basic, so heres the result
The is 1 line (449 of D3DBlank.vb file) i was'nt able to convert
Code:
if (infl > caps.MaxVertexBlendMatrices) break;
What is C# "break" in VB?
The SkinnedMesh.zip file contains the VB source code of the sample. The bin file has been remove, so u have to copy tiny.x with texture from DX9 SDK to the bin folder of the sample or change the path in the source.
For making custom animations for the mesh see http://msdn.microsoft.com/library/de...st/directx.asp. I did not try this out yet
The sample is made using Visual Basic.NET 2003 and DirectX9 SDK 1.0.1901.0. The sample will not work when using VS.NET 2002 or DX9 SDK 1.0.900.0
Greets Nightmare