This project is read-only.

Error while trying to visualize a .X 3d model

Apr 16, 2013 at 11:02 PM
Edited Apr 16, 2013 at 11:02 PM
Hello Guys, I'm currently loading a 3d model in .X format, but i keep getting this error messages when the program tries to draw it:

"The current vertex declaration does not include all the elements required by the current vertex shader. BlendWeight0 is missing"


Could you help me please?


PS: I'm using the PandaDirectXMaxExporter plugin to export the 3D model
Apr 17, 2013 at 5:06 AM
You are trying to visualize a skinned model. Try apply a SkinnedMaterial to the model.
Apr 17, 2013 at 3:32 PM
Actually I've applied a SkinnedMaterial to the model. So I don't know what's wrong with it.
Apr 22, 2013 at 8:02 AM
Correct a mistake in my previous comment, you should be using a BasicMaterial. The error message indicates that the skeleton/skin info of your model is not correctly exported.
Apr 26, 2013 at 5:46 PM
But, if I use a BasicMaterial I wouldn't be able to control the animations.
Apr 27, 2013 at 4:25 AM
That error indicate that the model was exported without any skin information. Try view the .x file in some 3rd party tools (like DirectX X Viewer) to see if the animation was exported.
Jun 3, 2013 at 5:59 PM
Thanks a lot,

Really, the error was in export the model. I have another problem, the same error but when I try to load a model with facial animations.