0

I have the following globals defined (the relevant ones, anyway):

DWORD dwNumMaterials;
LPD3DXBUFFER lpMaterials;
LPD3DXMESH lpMeshBody;

And the call to D3DLoadMeshFromX is here:

D3DXLoadMeshFromX(L"body.x",
		  D3DXMESH_SYSTEMMEM,
		  lpD3DDevice,
		  NULL,
		  &lpMaterials,
		  NULL,
		  &dwNumMaterials,
		  &lpMeshBody);

When this is called, it returns a generic error (0x80004005). Also, if it is needed I can post more code. Any ideas on what I did wrong? And yes, body.x does exist in the program's path.

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by death_oclock
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.