Original Post
Hi!
i''m (currently) using this object to load a mesh file created 3dsmax. ( Because I can convert from 3ds->x with that converter ). So I open it, and quickly get the vertex and index buffer. But when I want to get the ''attribute table'' the functions return with 0 attrivutes. why? what did I write wrong?
please help me! Tnx!
for some more accurate image of my problem:
at the rendering:
D3DXATTRIBUTERANGE attribs[32]; //and I even tried it with DAR* attrubs;
DWORD atrnum;
g_pMesh->GetAttributeTable( attribs, &atrnum );
g_pd3dDevice->SetStreamSource( 0, g_dologVB, sizeof(ULVERTEX) );
g_pd3dDevice->SetIndices( g_dologIB, 0 );
for( int i=0;iSetTexture( 0, g_pMeshTextures );
g_pd3dDevice->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, attribs[i].VertexStart, attribs[i].VertexCount, attribs[i].FaceStart, attribs[i].FaceCount );
}