Reputation:
I have been working on an incredibly simple 3D game in C++ / DirectX 9.
I quickly modelled a mesh in Blender, and exported it to the .X format. When I use
D3DXLoadMeshFromX("mesh.x", D3DXMESH_MANAGED, NULL, NULL, &materialBuffer, NULL,
&materialCount, &mesh);
The HRESULT returns -2005531760.
I looked this up with the DirectX Error Lookup tool, and it tells me it's a parse error. I have no idea what could have caused this - mesh.x exists in the same directory...
Upvotes: 2
Views: 304
Reputation: 474
It may be that the exporter Blender is using is flawled / not compatible with the directx loading library. Try using a different exporter or exporting as another format and then converting to X.
Upvotes: 1