Jump to content
  • Advertisement
Sign in to follow this  
GodlyGamr

Problems Loading Mesh Hierarchy

This topic is 4914 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

Hi all, I've been using This Tutorial to attempt to load an animated tiny.x into my project. I finally managed to construct a bit of code that compiled, however, when trying to load the model, I get a runtime error.
     SkinnedMeshHierarchyAllocator smha(this);

     hr = D3DXLoadMeshHierarchyFromX(filename, D3DXMESH_MANAGED, d3dgrabber.getDevice(), 
               &smha, NULL, &pFrameRoot, &pAnimController);
     if (FAILED(hr))
		MessageBox(NULL, "LOAD ERROR", "ERROR", MB_OK);



I know that trying to obtain the device from another class is causing one problem, as this function will always fail and return D3DERR_INVALIDCALL. When I tried to assimilate it into my general graphics code, it went through my SkinnedMeshHierarchyAllocator's functions to create frames and mesh containers, but after finishing that, I still received the "LOAD ERROR" message box and the program exited (null pointer probably). I can't figure out what is causing the problem then, as this line of code looks almost identical to the code in the SkinnedMesh sample with the SDK. Thanks in advance for any advice you can give me, Jeff

Share this post


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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!