Jump to content
  • Advertisement
Sign in to follow this  
DarkZoulz

Invalid Mesh?

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

ConvertToBlendedMesh() returns INVALID_MESH. But i've tried loading diffrent meshes and not all fail. Could it have something to do with the amount of frames in the skinned mesh? This particular one that fails have quite alot of frames.

Share this post


Link to post
Share on other sites
Advertisement
Try linking with d3dx9d.lib rather than d3dx9.lib.

d3dx9d.lib is the *debug* version of D3DX which will tell you more about *why* ConvertToBlendedMesh() returned an error. It will tell you in the debugger's "output" window when you run your app in the debugger.

Share this post


Link to post
Share on other sites
Ah, thanks! It says: 'D3DX: ConvertAdjacencyToPointReps: Possible bad adjacency loop found cannot continue.'

So I guess it has something to do with adjacency.

Share this post


Link to post
Share on other sites
um...i've checked my code. I can't see anything that might be wrong regarding adjacency... the buffer is filled correctly. The funny thing is that almost all meshes except this one (exported from maya 6 to X) works!

Share this post


Link to post
Share on other sites
Quote:
Original post by DarkZoulz
um...i've checked my code. I can't see anything that might be wrong regarding adjacency... the buffer is filled correctly. The funny thing is that almost all meshes except this one (exported from maya 6 to X) works!

That probably just means that it's corrupted, or it's outdated. Where did you get it from?

Share this post


Link to post
Share on other sites
It was exported from maya 6 using microsoft's own X exporter plug-in... But I checked it with D3DXValidMesh() and it returned some strange messages about duplicate triangles.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!