I can't see the model
Posted: Mon Feb 02, 2015 3:48 pm
I have a model which I've exported in from Blender using the OgreExporter (no errors)
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:
If I use sinbad instead of my own model, everything works perfectly fine and I can see the model, but as soon as I am using my model, I cant see anything... there is no model..
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?
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?