You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
crashes. I have traced this to the point where createMeshCopy tries to copy the SMeshBuffer, and it actually blows up trying to copy materials (one is 0xFFFFFFFF).
It would be very useful if you could provide a simple testcase (modify one of the tutorials if necessary) that illustrates the problem. If necessary, you might need to provide a sample mesh.
No problem. I thought maybe this was a known thing there was an easy answer to. Maybe there still is.
I have modified the 01.HelloWorld code to demonstrate the problem. Look for the Interesting Part in the code and comment in or out some different cases.
I have included a sample .x file of mine (and an abridged texture), as well as one from the SDK. Both cause the createMeshCopy() function to crash.
I would like this to work. I really need to make a copy of this mesh.
IIRC this was a bug due to a wrong cast in the createMeshCopy (which insisted on working on an SMesh whereas .x files use CSkinnedMesh). This should be fixed, though, but maybe only in SVN/trunk.