Hi all.
I seem to be having trouble with the DirectX 10 Skinning10 Sample
I think I have it all set up to how the sample sets it up but I cant find the samples vertex type, they use to load the mesh with, just Bytes*
But I need a D3D10_INPUT_ELEMENT_DESC to pass to D3DX10CreateMesh
The fx file that the sample uses is set out like so...
Shader.
struct VSSkinnedIn
{
float3 Pos : POSITION; //Position
float4 Weights : WEIGHTS; //Bone weights
uint4 Bones : BONES; //Bone indices
float3 Norm : NORMAL; //Normal
float2 Tex : TEXCOORD; //Texture coordinate
float3 Tan : TANGENT; //Normalized Tangent vector
};
struct VSStreamOut
{
float4 Pos : POSITION; //Position
float3 Norm : NORMAL; //Normal
float2 Tex : TEXCOORD; //Texture coordinate
float3 Tangent : TANGENT; //Normalized Tangent vector
};
Im not sure if my vertex structure matches the VSSkinnedIn here is mine
struct SkinningVertex
{
D3DXVECTOR3 Pos;
float Weights;
float Bones;
D3DXVECTOR3 Norm;
D3DXVECTOR2 Tex;
D3DXVECTOR3 Tangent;
};