hoffhoff
10-10-2006 02:37:24
Hello,
I have exported a scene of an island on Max with oFusion. Then I copied the generated files to the data folder of ogre and I´m trying to load it like:
Well, it is working, but the textures are not loaded in the scene.
I'm also loading a simple mesh (wich I created with ofusion) and in it the textures are working fine.
Is there something else I have to do for loading the terrain?
Thanks!
I have exported a scene of an island on Max with oFusion. Then I copied the generated files to the data folder of ogre and I´m trying to load it like:
void CApplication::chooseSceneManager()
{
oScene = new OSMScene;
oScene->initialise("island.osm", NULL);
oScene->createScene();
mSceneMgr = oScene->getSceneManager();
}
void CApplication::createScene()
{
mSceneMgr->setAmbientLight(Ogre::ColourValue(0.5,0.5,0.5));
mSceneMgr->setShadowTechnique(Ogre:: SHADOWTYPE_TEXTURE_MODULATIVE );
}
Well, it is working, but the textures are not loaded in the scene.
I'm also loading a simple mesh (wich I created with ofusion) and in it the textures are working fine.
Is there something else I have to do for loading the terrain?
Thanks!