What am i doing wrong? Loading models with directx(C++),
Members - Reputation: 102
Posted 23 July 2012 - 04:35 PM
It didn't work. I believe it succesfully finds and loads the model. But it shows nothing on the screen.(Except the color i used to clear the screen) Can you look into the code and tell me what am i doing wrong?
I attached both of the original tutorial code and my modified one.
P.S sorry for my bad english
meshproblem.rar 7.24KB 44 downloads
Members - Reputation: 411
Posted 30 November 2012 - 09:08 AM
if( FAILED( D3DXLoadMeshFromX( "modelname.x", D3DXMESH_SYSTEMMEM,
&pD3DXMtrlBuffer, NULL, &model.g_dwNumMaterials,
&model.g_pMesh ) ) )
MessageBox( NULL, "Could not find modelname.x", "Meshes.exe", MB_OK );