Home > Software engineering >  Ultimate guide for help [DirectX game development] mapping model
Ultimate guide for help [DirectX game development] mapping model

Time:09-21

C + +/novice directX

Follow [DirectX game development ultimate guide] learned chapter 13

Say according to the book with Xmesh. H CXModel replacement in temporary class CXModel

Then I debugging, under the release into the scene when the tips below



This is what is problem containerEx is a null pointer?

Then I find their own reasons found LoadXFile function under D3DXLoadMeshHierarchyFromX always return false;

Original sentence: the if (FAILED (D3DXLoadMeshHierarchyFromX (file, D3DXMESH_MANAGED m_device, & amp; Leisure, NULL, & amp; M_root, & amp; M_animControl)))
return false;

Whether D3DXLoadMeshHierarchyFromX failed

I really don't know is what reason, how to solve the great god so please help me answer thank you, here's the code

https://pan.baidu.com/s/18_I_ISxvLzOosCdXndjZuA password ziel





CodePudding user response:

Using the Microsoft DirectX SDK (June 2010)

CodePudding user response:


The broken book I also bought, drew 100 ocean, feel unworthy, translation is a machine's feeling,
Failure load, path and see if it is wrong

CodePudding user response:

refer to the second floor smwhotjay response:

The broken book I also bought, drew 100 ocean, feel unworthy, translation is a machine's feeling,
Load failed, and see if it is wrong path


Need to regenerate the lib files

CodePudding user response:

refer to the second floor smwhotjay response:

The broken book I also bought, drew 100 ocean, feel unworthy, translation is a machine's feeling,
Load failed, and see if it is wrong path


The file path? File path should be to use the temporary before class can render for chapter 13 this way not

Breakpoint to view the file is a file

CodePudding user response:

Why use the Release? Under the Debug debugging, error information more accurate
  • Related