Jump to content
  • Advertisement
Sign in to follow this  
akira32

D3DXConcatenateMeshes D3DERR_INVALIDCALL

This topic is 3665 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I merge the models by using D3DXConcatenateMeshes fucntion. These models use the same xfile. When I merge three models, the D3DXConcatenateMeshes fucntion will return -2005530516(D3DERR_INVALIDCALL). Does somebody ever meet the situation?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Evil Steve
What do the Debug Runtimes say the problem is?


Thanks! The error message is "D3DX: D3DXCreateMesh: Too many faces/vertices for a 16bit mesh". I had solved this problem. I forcely add D3DXMESH_32BIT into the Option of D3DXConcatenateMeshes. Your suggest is a great idea that I have known but I do not know how significant it is.

D3DXConcatenateMeshes(ppMeshes,NumMeshes,Options|D3DXMESH_32BIT,pGeomXForms,NULL,elems,m_pD3DDevice,&pMeshOut);

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!