1) add v1:: namespaces.
2) among setMaterial add setDatablock()
3) initialize Movable Object for Tile.cpp
Code: Select all
Ogre::NameValuePairList params;
//wxMessageBox("START ");
mTiles[i][j] = static_cast<Tile*>(Ogre::Root::getSingleton().getSceneManager
(CfgManager::getSingleton().main_scene_manager_name)
->createMovableObject(
TileFactory::FACTORY_TYPE_NAME,&Ogre::Root::getSingleton().getSceneManager
(CfgManager::getSingleton().main_scene_manager_name)
->_getEntityMemoryManager(Ogre::SCENE_DYNAMIC),
¶ms));
5)
Code: Select all
void Tile::_updateRenderQueue(Ogre::RenderQueue* queue)
{
mLightListDirty = true;
queue->addRenderable(this, mRenderQueueID);
queue->addRenderable(mRenderQueueID, 5, false,this, this,false);
}
theere in Tile.cpp present addRenderable( function, but last function not using in Ogre 2.1.
Old terrain (ogre 1.8.1) looks as:
Large
On ogre 2.1 Terrain is not visible.
no crashes but no visible geometry.
Large