Than I've converted the model from the xml format to the binary mesh unsing the OgreXMLConverter (no errors)
Now I want to load the whole thing into my Ogre Scene using this code:
Code: Select all
GameManager::getInstance()->getSceneManager()->setAmbientLight(Ogre::ColourValue::White);
// Load the mesh from the folder
playerNode = GameManager::getInstance()->getSceneManager()->getRootSceneNode()->createChildSceneNode("playerNode");
//playerNode->rotate(Ogre::Vector3::UNIT_Y, Ogre::Radian(Ogre::Math::PI));
playerNode->setPosition(0,0,-25.0f);
// playerNode->scale(1.0f,1.0f,1.0f);
//sinbadNode->rotate(Ogre::Vector3(0,1,0),Ogre::Radian(Ogre::Degree(90)),Ogre::Node::TS_WORLD);
playerEntity = GameManager::getInstance()->getSceneManager()->createEntity("vincent_Casual_Male_Lod_0","Untitled.mesh");
playerEntity->setMaterial(Ogre::MaterialManager::getSingletonPtr()->getByName("vincent_Casual_Male_Lod_0Mat"));
if(playerEntity)
playerNode->attachObject(playerEntity);
Here is a link to the model (mesh, skeleton, material and texture) it also includes the ogre.log, in which I cant find anything bad.
https://drive.google.com/file/d/0Bx9OKn ... sp=sharing
Can anyone tell me why I do not see my model?