Sign in to follow this  
DarkZoulz

Invalid Mesh?

Recommended Posts

DarkZoulz    106
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
S1CA    1418
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
DarkZoulz    106
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
DarkZoulz    106
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
circlesoft    1178
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
DarkZoulz    106
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this