Hi guys,
I have a basic DirectX 9c project, but I am having a problem displaying a simple cube mesh.
I can create a cube manually which displays correctly by using vertex buffers etc. So, I know my camera is working correctly.
But, now I am trying to load a cube with the same dimensions via an .X file.
I can load the file happily with no errors being reported and I can see (by querying the mesh interface) that it has 24 verticies and 12 triangles. But nothing is being rendered to the screen.
There are no materials assigned to this mesh, so I'd expect to see a plain white cube.
How I created it
HRESULT hr = D3DXLoadMeshFromX("cube.x", D3DXMESH_SYSTEMMEM, g_d3dDev, &g_adjBuffer, &g_materialBuffer, NULL, &g_numMaterials, &g_model); And how I am trying to present it.
HRESULT hr=g_model->DrawSubset(0); Any ideas as to why nothing is being displayed would be awesome :)
Thanks in advance.