XNA .FBX Vertex Color Missing

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2012-11-07T16:58:48Z Indexed on 2012/11/07 16:59 UTC
Read the original article Hit count: 257

Filed under:
|
|

When I vertex paint and export my models from Blender (or Maya) for use in my XNA 4.0 project, I somehow lose the vertex color channel for the model. I use no custom model object or content pipelines and my own shader throws me the error:

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

I tryed to reopen the model in other modeling tools and the vertex colors are there. What could cause the vertex color channel to not get loaded in XNA 4.0?

Here's a temporary link to the FBX file(server refuses to send a fbx, so rename the .jpg file to .fbx after downloading) http://resources.gamestack.org/BananaBush.jpg

© Stack Overflow or respective owner

Related posts about c#

Related posts about XNA