Trouble loading in terrain.cfg

Tempest

22-10-2005 23:03:51

Hey guys, I'm struggling with getting the terrain to display from Wiki Tutorial 3.

I don't see where ExampleAnimation will let you override the "ChooseSceneManager" function, so I'm trying to set the SceneManager type to "ExteriorClose" from within CreateScene():


protected override void CreateScene()
{
mSceneManager = mRoot.GetSceneManager(SceneType.ExteriorClose);

mSceneManager.SetWorldGeometry("terrain.cfg");
}


This doesn't throw any exceptions; however, its just a blank scene.

I've been reading that its possible that an additional plugin needs to be installed. My Plugins.cfg contains the following:


# Defines plugins to load

# Define plugin folder
PluginFolder=.

# Define plugins
Plugin=RenderSystem_Direct3D7
Plugin=RenderSystem_Direct3D9
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_BSPSceneManager
Plugin=Plugin_OctreeSceneManager
Plugin=Plugin_CgProgramManager


Thanks again for everyone's help!

thelsdj

23-10-2005 06:51:15

For these kind of alterations I suggest copying ExampleApplication.cs from OgreDotNet project into your own and then you can make alterations to ExampleApplication easily.

Tempest

25-10-2005 06:24:50

For these kind of alterations I suggest copying ExampleApplication.cs from OgreDotNet project into your own and then you can make alterations to ExampleApplication easily.

Awesome, that worked.

Thanks again for the help.