Original Post
Hi Guys
New to DirectX so please be gentle.
I have this code that loads a mesh from a file:
LPD3DXMESH g_pMesh
D3DXLoadMeshFromX(strFilename, D3DXMESH_MANAGED,
g_pd3dDevice, NULL, &pD3DXMtrlBuffer, &g_dwNumMaterials, &g_pMesh )
My question is how do apply a transformation matrix to this to rotate the mesh. The specific example is that this is a model from 3DStudio and it sits on it''s nose not on it''s wheels so I want to rotate the mesh just after it has loaded.
I have found loads of mesh functions but none of them seem to apply a matrix to a mesh.
Thanks.
Giles Roadnight
giles.roadnight.name