So I've created a model of a bee in blender to be exported into Ogre. Because different parts of the bee need different materials, I left the head, middle section and legs of the bee as one mesh, the striped tail as another mesh, and the pair of wings as a third mesh (I'm new to blender, so this may be poor form...). I rigged the wing mesh with an armature and saved an animation of the wings flapping, and all looked well. Then, I exported the meshes, one at a time, without any errors. Then, to unify the meshes into one ogre mesh, I merged the .material files, and merged the .mesh.xml files by moving all of the <submesh>....</submesh> blocks into one main Bee.mesh.xml file. I also was careful to transfer everything in the wings submesh, etc regarding the vertex assignments to the bones. Next I ran the skeleton and mesh xml's through the XML Converter, and again had no problem
At runtime, my simulation attempted to load the bee mesh, and the knot.mesh (included with ogre). and produced this:
Code: Select all
Mesh: Loading Bee.mesh.
Skeleton: Loading bee_skeleton.skeleton
Mesh: Loading knot.mesh.
etc etc etc
Code: Select all
OgreMesh.cpp:1481: static void Ogre::Mesh::softwareVertexBlend(const Ogre::VertexData*, const Ogre::VertexData*, const Ogre::Matrix4*, bool): Assertion `srcElemPos && srcElemBlendIndices && srcElemBlendWeights && "You must supply at least positions, blend indices and blend weights"' failed.
Can anyone point me in the right direction as to what this is referring to?