angelchild
27-08-2006 00:16:03
I'm attempting to use the interior BSP scene manager with Ogre.NET, but for some reason my program seems to think the scene manager I create is the generic one and not the BSP one. I'm using Ogre's Dagon release 1.2.2 (the windows SDK for visual studio 8 ), with the CVS version of Ogre.NET from today. This program:
Produces this error:
I had a search on the forum and found this topic, which seems relevant http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=1041. However, I'm certain the BSP plugin manager is loaded, since in the logs I get:
My plugins.cfg:
Am I doing something wrong, or is it a limitation of Ogre.NET/SWIG?
---------------------------------------------------
Nevermind, I fixed it - it seems using "BspSceneManager" when creating the scene manager works fine! Answer was found in this thread: http://www.ogre3d.org/phpBB2/viewtopic.php?t=20621
namespace OgreDotNetBSPManagerProblemCase
{
class Program
{
static void Main(string[] args)
{
new Program().go();
}
private void go()
{
OgreDotNet.Root root = new OgreDotNet.Root();
if (!root.ShowConfigDialog())
Environment.Exit(0);
OgreDotNet.SceneManager sceneManager = root.CreateSceneManager((ushort)OgreDotNet.SceneType.Interior);
sceneManager.SetWorldGeometry("QQQQQQQ");
}
}
}
Produces this error:
-----------------------------------
Details:
-----------------------------------
Error #: 4
Function: SceneManager::setWorldGeometry
Description: World geometry is not supported by the generic SceneManager..
File: ..\src\OgreSceneManager.cpp
Line: 1110
I had a search on the forum and found this topic, which seems relevant http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=1041. However, I'm certain the BSP plugin manager is loaded, since in the logs I get:
20:53:16: Loading library .\Plugin_BSPSceneManager
20:53:16: Registering ResourceManager for type BspLevel
My plugins.cfg:
# 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
Am I doing something wrong, or is it a limitation of Ogre.NET/SWIG?
---------------------------------------------------
Nevermind, I fixed it - it seems using "BspSceneManager" when creating the scene manager works fine! Answer was found in this thread: http://www.ogre3d.org/phpBB2/viewtopic.php?t=20621