Operating System: :Linux:
Render System: :GL3Plus:
I was trying to render the sphere.mesh that comes with Ogre and I've used OgreMeshTool to convert it from 1.8 to 2.1. Problem is that I'm getting this error.
Code: Select all
Mesh: Loading sphere.mesh.
OGRE EXCEPTION(3:RenderingAPIException): Fixed Function pipeline is no longer allowed nor supported. The material BaseWhite must use shaders in HlmsLowLevel::calculateHashFor at /home/bjf/ogre/OgreMain/src/OgreHlmsLowLevel.cpp (line 157)
Couldn't apply datablock '[Hash 0xc4be0758]' to this renderable. Using default one. Check previous log messages to see if there's more information.
Code: Select all
{
Ogre::SceneManager *sm = getMainSceneManager();
Ogre::HlmsUnlitDatablock *block = CGS::getColorBlock(Green);
Ogre::Item *item = sceneManager->createItem("sphere.mesh",
Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME,
Ogre::SCENE_DYNAMIC);
item->setDatablock(block);
Ogre::SceneNode *sn =
sm->getRootSceneNode(Ogre::SCENE_DYNAMIC)->
createChildSceneNode(Ogre::SCENE_DYNAMIC);
sn->attachObject(item);
sn->setPosition(Ogre::Vector3(0.0f, 0.0f, 0.0f));
}