DProphet
28-10-2010 19:09:48
Hi i've got a little problem. And i can't find solution ![Sad :(]({SMILIES_PATH}/icon_sad.gif)
When i writed this code:
i've got exception(it cannot locate terrain.cfg at first)
when i copied terrain.cfg to bin directory i've got exception like this
I didn't change resource.cfg. Everything is ther where i unpack tutorial pack.
It's strange because program is finding ninja without any problem.
Any idea?
It works !
should be in
also skybox.
I also change some options in ogre setup window , like vsync on
![Sad :(]({SMILIES_PATH}/icon_sad.gif)
When i writed this code:
protected override void ChooseSceneManager()
{
mSceneMgr = mRoot.CreateSceneManager(SceneType.ST_EXTERIOR_CLOSE);
// mSceneMgr.SetWorldGeometry("terrain.cfg");
mSceneMgr.SetWorldGeometry("terrain.cfg");
mSceneMgr.SetSkyBox(true, "Examples/SpaceSkyBox");
}
i've got exception(it cannot locate terrain.cfg at first)
when i copied terrain.cfg to bin directory i've got exception like this
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource terrain.png in resource group General or any other group. in ResourceGroupManager::openResource at ..\..\ogre\OgreMain\src\OgreResourceGroupManager.cpp (line 753)
I didn't change resource.cfg. Everything is ther where i unpack tutorial pack.
It's strange because program is finding ninja without any problem.
Any idea?
It works !
mSceneMgr.SetWorldGeometry("terrain.cfg");
should be in
CrateScene
also skybox.
I also change some options in ogre setup window , like vsync on
![Very Happy :D]({SMILIES_PATH}/icon_biggrin.gif)