Jump to content
  • Advertisement
Sign in to follow this  
luasitdown

OMG D3DXCreateMeshFVF fail

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

HRESULT :-2005530516 I use dx error lookup program, it show: HRESULT: 0x8876086c (2289436780) Name: D3DERR_INVALIDCALL Description: Invalid call Severity code: Failed Facility Code: FACILITY_D3D (2166) Error Code: 0x086c (2156) Why does it fail? it is unbelievable. I use createvertexbuffer for the same data ( vertices number etc....),it is ok. why D3DXCreateMeshFVF fail.

Share this post


Link to post
Share on other sites
Advertisement
What parameters are you calling it with? Have you enabled the D3D debug runtime and checked for any output?

Share this post


Link to post
Share on other sites
Quote:
Original post by Promit
What parameters are you calling it with? Have you enabled the D3D debug runtime and checked for any output?



// it work
hr = m_device->CreateVertexBuffer(
m_numVertices* sizeof( TerrainVertex ),
D3DUSAGE_WRITEONLY,
TerrainVertex::FVF,
D3DPOOL_MANAGED,
&m_vb,
0);

// it fail
hr = D3DXCreateMeshFVF(
m_numTriangles,
m_numVertices,
D3DXMESH_MANAGED,
TerrainVertex::FVF,
m_device,
&m_d3dxmesh );




I set debug runtime debug output leve more
here is ouput window info:
Direct3D9: :====> ENTER: DLLMAIN(014916f0): Process Attach: 00000598, tid=000006a0
Direct3D9: (INFO) :Win2K SP1 or above detected - enabling VB swap workaround

Direct3D9: :====> EXIT: DLLMAIN(014916f0): Process Attach: 00000598
Direct3D9: (INFO) :Direct3D9 Debug Runtime selected.
D3D9 Helper: Enhanced D3DDebugging disabled; Application was not compiled with D3D_DEBUG_INFO
Direct3D9: (INFO) :======================= Hal HWVP device selected

Direct3D9: (INFO) :HalDevice Driver style 9

Direct3D9: :DoneExclusiveMode

Share this post


Link to post
Share on other sites
When the D3DXCreateMeshFVF function is executed and fails, a descriptive error will be printed to the debug spew. Step through the code and step over the D3DXCreateMeshFVF function call. Once you step over it, check the debug spew for errors.

neneboricua

Share this post


Link to post
Share on other sites
Quote:
Original post by neneboricua19
When the D3DXCreateMeshFVF function is executed and fails, a descriptive error will be printed to the debug spew. Step through the code and step over the D3DXCreateMeshFVF function call. Once you step over it, check the debug spew for errors.

neneboricua


where is debug spew? is it output window?

Share this post


Link to post
Share on other sites
It is in the output window, but you have to link to d3dx9d.lib instead of d3dx9.lib to get D3DX debug output. It looks like right now you're using the DirectX debug runtime but that's not the same thing.

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.

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!