terrachild
04-10-2006 23:57:05
I got tutorials 1, and 2 to work in VB.NET using 2005 Express.
But, I can't get tutorial 3 to work. How do you set scene manager to SceneType.ExteriorClose. I keep getting errors.
The tutorial contains this line:
mSceneManager = mRoot.CreateSceneManager((ushort)SceneType.ExteriorClose);
VB.NET doesn't like this, so I changed it to:
mSceneManager = mRoot.CreateSceneManager("SceneType.ExteriorClose")
But this causes an error.
//
16:14:01: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManagerEnumerator::createSceneManager
Description: No factory found for scene manager of type 'SceneType.ExteriorClose'.
File: ..\src\OgreSceneManagerEnumerator.cpp
Line: 173
Stack unwinding: <<beginning of stack>>
//
The plugins config looks fine:
//
# Defines plugins to load
# Define plugin folder
PluginFolder=.
# Define plugins
Plugin=RenderSystem_Direct3D9
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_BSPSceneManager
Plugin=Plugin_OctreeSceneManager
Plugin=Plugin_CgProgramManager
//
Any help would be appreciated.
Chris
But, I can't get tutorial 3 to work. How do you set scene manager to SceneType.ExteriorClose. I keep getting errors.
The tutorial contains this line:
mSceneManager = mRoot.CreateSceneManager((ushort)SceneType.ExteriorClose);
VB.NET doesn't like this, so I changed it to:
mSceneManager = mRoot.CreateSceneManager("SceneType.ExteriorClose")
But this causes an error.
//
16:14:01: An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManagerEnumerator::createSceneManager
Description: No factory found for scene manager of type 'SceneType.ExteriorClose'.
File: ..\src\OgreSceneManagerEnumerator.cpp
Line: 173
Stack unwinding: <<beginning of stack>>
//
The plugins config looks fine:
//
# Defines plugins to load
# Define plugin folder
PluginFolder=.
# Define plugins
Plugin=RenderSystem_Direct3D9
Plugin=RenderSystem_GL
Plugin=Plugin_ParticleFX
Plugin=Plugin_BSPSceneManager
Plugin=Plugin_OctreeSceneManager
Plugin=Plugin_CgProgramManager
//
Any help would be appreciated.
Chris