Terrain problem

terrachild

24-09-2007 13:52:56

I'm trying to load the terrain in tutorial 2 and 3 and it doesn't work.

I first do this:
mSceneManager = mRoot.CreateSceneManager(Convert.ToUInt16(SceneType.ExteriorClose))

No problem.

But this crashes the program:
mSceneManager.SetWorldGeometry("terrain.cfg")

The log shows:
Error #: 7
Function: SceneManagerEnumerator::createSceneManager
Description: No factory found for scene manager of type 'SceneType.ExteriorClose'.
File: ..\src\OgreSceneManagerEnumerator.cpp
Line: 173

What should I do?

Thanks.