[SOLVED] cannot select ST_EXTERIOR_CLOSE

Problems building or running the engine, queries about how to use features etc.
Post Reply
SveGo
Halfling
Posts: 55
Joined: Tue Nov 15, 2005 3:15 pm
Location: Rotterdam, the Netherlands

[SOLVED] cannot select ST_EXTERIOR_CLOSE

Post by SveGo »

Hi all,

I cannot select the ST_EXTERIOR_CLOSE scene manager.
When I load a terrain, I get the following error:

Code: Select all

-----------------------------------
Details:
-----------------------------------
Error #: 4
Function: SceneManager::setWorldGeometry
Description: World geometry is not supported by the generic SceneManager.. 
File: ..\src\OgreSceneManager.cpp
Line: 1107
Stack unwinding: <<beginning of stack>>
But I am selecting the ST_EXTERIOR_CLOSE scene manager:

Code: Select all

void SEMApplication::chooseSceneManager()
{
	mSceneMgr = mRoot->createSceneManager(ST_EXTERIOR_CLOSE);
}
So somehow, it isn't selecting the scene manager I want..?
It doesn't matter what SceneManager I select, it always gives me this error (always reporting ST_GENERIC)
I'm using Ogre 1.2.0 RC1

Last but not least, my error.log file:

Code: Select all

16:56:15: Creating resource group General
16:56:15: Creating resource group Internal
16:56:15: Creating resource group Autodetect
16:56:15: Registering ResourceManager for type Material
16:56:15: Registering ResourceManager for type Mesh
16:56:15: Registering ResourceManager for type Skeleton
16:56:15: MovableObjectFactory for type 'ParticleSystem' registered.
16:56:15: Loading library OgrePlatform.dll
16:56:15: OverlayElementFactory for type Panel registered.
16:56:15: OverlayElementFactory for type BorderPanel registered.
16:56:15: OverlayElementFactory for type TextArea registered.
16:56:15: Registering ResourceManager for type Font
16:56:15: ArchiveFactory for archive type FileSystem registered.
16:56:15: ArchiveFactory for archive type Zip registered.
16:56:15: DevIL version: Developer's Image Library (DevIL) 1.6.7 Nov  9 2005
16:56:15: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw 
16:56:15: Registering ResourceManager for type HighLevelGpuProgram
16:56:15: Registering ResourceManager for type Compositor
16:56:15: MovableObjectFactory for type 'Entity' registered.
16:56:15: MovableObjectFactory for type 'Light' registered.
16:56:15: MovableObjectFactory for type 'BillboardSet' registered.
16:56:15: MovableObjectFactory for type 'ManualObject' registered.
16:56:15: MovableObjectFactory for type 'BillboardChain' registered.
16:56:15: MovableObjectFactory for type 'RibbonTrail' registered.
16:56:15: Loading library .\RenderSystem_Direct3D9
16:56:15: D3D9 : Direct3D9 Rendering Subsystem created.
16:56:15: D3D9: Driver Detection Starts
16:56:15: D3D9: Driver Detection Ends
16:56:15: Loading library .\RenderSystem_GL
16:56:15: OpenGL Rendering Subsystem created.
16:56:15: Loading library .\Plugin_ParticleFX
16:56:15: Particle Emitter Type 'Point' registered
16:56:15: Particle Emitter Type 'Box' registered
16:56:15: Particle Emitter Type 'Ellipsoid' registered
16:56:15: Particle Emitter Type 'Cylinder' registered
16:56:15: Particle Emitter Type 'Ring' registered
16:56:15: Particle Emitter Type 'HollowEllipsoid' registered
16:56:15: Particle Affector Type 'LinearForce' registered
16:56:15: Particle Affector Type 'ColourFader' registered
16:56:15: Particle Affector Type 'ColourFader2' registered
16:56:15: Particle Affector Type 'ColourImage' registered
16:56:15: Particle Affector Type 'ColourInterpolator' registered
16:56:15: Particle Affector Type 'Scaler' registered
16:56:15: Particle Affector Type 'Rotator' registered
16:56:15: Particle Affector Type 'DirectionRandomiser' registered
16:56:15: Particle Affector Type 'DeflectorPlane' registered
16:56:15: Loading library .\Plugin_CgProgramManager
16:56:15: *-*-* OGRE Initialising
16:56:15: *-*-* Version 1.2.0 (Dagon)
16:56:15: Creating resource group Bootstrap
16:56:15: Added resource location 'C:\OgreSDK\media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
16:56:15: Added resource location 'C:\OgreSDK\media' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/fonts' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/materials/programs' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/materials/scripts' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/materials/textures' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/models' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/overlays' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/particle' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/gui' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location '../Data\Meshes' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location '../Data' of type 'FileSystem' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/packs/dragon.zip' of type 'Zip' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
16:56:15: Added resource location 'C:\OgreSDK\media/packs/skybox.zip' of type 'Zip' to resource group 'General'
16:56:16: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
16:56:16: D3D9 : RenderSystem Option: Anti aliasing = None
16:56:16: D3D9 : RenderSystem Option: Floating-point mode = Fastest
16:56:16: D3D9 : RenderSystem Option: Full Screen = No
16:56:16: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce2 GTS/GeForce2 Pro
16:56:16: D3D9 : RenderSystem Option: VSync = No
16:56:16: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
16:56:16: D3D9 : Subsystem Initialising
16:56:16: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 800x600 windowed  miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false 
16:56:16: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 800x600, 32bpp
16:56:16: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
16:56:16: Registering ResourceManager for type Texture
16:56:16: Registering ResourceManager for type GpuProgram
16:56:16: RenderSystem capabilities
16:56:16: -------------------------
16:56:16:  * Hardware generation of mipmaps: yes
16:56:16:  * Texture blending: yes
16:56:16:  * Anisotropic texture filtering: yes
16:56:16:  * Dot product texture operation: yes
16:56:16:  * Cube mapping: yes
16:56:16:  * Hardware stencil buffer: yes
16:56:16:    - Stencil depth: 8
16:56:16:    - Two sided stencil support: no
16:56:16:    - Wrap stencil values: yes
16:56:16:  * Hardware vertex / index buffers: yes
16:56:16:  * Vertex programs: no
16:56:16:  * Fragment programs: no
16:56:16:  * Texture Compression: yes
16:56:16:    - DXT: yes
16:56:16:    - VTC: no
16:56:16:  * Scissor Rectangle: yes
16:56:16:  * Hardware Occlusion Query: no
16:56:16:  * User clip planes: no
16:56:16:  * VET_UBYTE4 vertex element type: no
16:56:16:  * Infinite far plane projection: no
16:56:16:  * Hardware render-to-texture: yes
16:56:16:  * Floating point textures: no
16:56:16:  * Non-power-of-two textures: yes
16:56:16:  * Volume textures: no
16:56:16:  * Multiple Render Targets: 1
16:56:16:  * Max Point Size: 64
16:56:16: ***************************************
16:56:16: *** D3D9 : Subsystem Initialised OK ***
16:56:16: ***************************************
16:56:16: ResourceBackgroundQueue - threading disabled
16:56:16: Particle Renderer Type 'billboard' registered
16:56:16: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
16:56:16: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 800 H: 600
16:56:16: Parsing scripts for resource group Autodetect
16:56:16: Finished parsing scripts for resource group Autodetect
16:56:16: Parsing scripts for resource group Bootstrap
16:56:16: Parsing script OgreCore.material
16:56:16: Parsing script OgreProfiler.material
16:56:16: Parsing script Ogre.fontdef
16:56:16: Parsing script OgreDebugPanel.overlay
16:56:16: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
16:56:16: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
16:56:16: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
16:56:16: Font TrebuchetMSBoldusing texture size 512x512
16:56:16: Info: Freetype returned null for character 160 in font TrebuchetMSBold
16:56:16: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
16:56:16: Texture: ogretext.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with  hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
16:56:16: Parsing script OgreLoadingPanel.overlay
16:56:16: Finished parsing scripts for resource group Bootstrap
16:56:16: Parsing scripts for resource group General
16:56:16: Parsing script Examples.program
16:56:16: Parsing script StdQuad_vp.program
16:56:16: Parsing script deferred.glsl.program
16:56:16: Parsing script deferred.hlsl.program
16:56:16: Parsing script deferred_post_debug.glsl.program
16:56:16: Parsing script deferred_post_debug.hlsl.program
16:56:16: Parsing script deferred_post_minilight.glsl.program
16:56:16: Parsing script deferred_post_minilight.hlsl.program
16:56:16: Parsing script deferred_post_multipass.glsl.program
16:56:16: Parsing script deferred_post_multipass.hlsl.program
16:56:16: Parsing script deferred_post_onepass.glsl.program
16:56:16: Parsing script deferred_post_onepass.hlsl.program
16:56:16: Parsing script BlackAndWhite.material
16:56:16: Parsing script Bloom.material
16:56:16: Parsing script DOF.material
16:56:16: Parsing script Embossed.material
16:56:16: Parsing script Example-DynTex.material
16:56:16: Parsing script Example-Water.material
16:56:16: Parsing script Example.material
16:56:16: Parsing script Examples-Advanced.material
16:56:16: Parsing script facial.material
16:56:16: Parsing script Glass.material
16:56:16: Parsing script HeatVision.material
16:56:16: Parsing script Hurt.material
16:56:16: Parsing script MotionBlur.material
16:56:16: Parsing script Ocean.material
16:56:16: Parsing script OffsetMapping.material
16:56:16: Parsing script Ogre.material
16:56:16: Parsing script OldTV.material
16:56:16: Parsing script RZR-002.material
16:56:16: Parsing script smoke.material
16:56:16: Parsing script deferred.material
16:56:16: Parsing script deferreddemo.material
16:56:16: Parsing script deferred_post_debug.material
16:56:16: Parsing script deferred_post_minilight.material
16:56:16: Parsing script deferred_post_multipass.material
16:56:16: Parsing script deferred_post_onepass.material
16:56:16: Parsing script Scene.material
16:56:16: Parsing script terrain.material
16:56:16: Parsing script fresnelenviron.material
16:56:16: Parsing script Examples.compositor
16:56:16: Parsing script sample.fontdef
16:56:16: Bad attribute line: glyph	 	0.152344	0.125	0.160156	0.1875 in font Ogre
16:56:16: Parsing script Example-Water.particle
16:56:16: Parsing script Example.particle
16:56:16: Parsing script smoke.particle
16:56:16: Parsing script Compositor.overlay
16:56:16: Parsing script DP3.overlay
16:56:16: Parsing script Example-CubeMapping.overlay
16:56:16: Parsing script Example-DynTex.overlay
16:56:16: Parsing script Example-Water.overlay
16:56:16: Parsing script Shadows.overlay
16:56:16: Finished parsing scripts for resource group General
16:56:16: Parsing scripts for resource group Internal
16:56:16: Finished parsing scripts for resource group Internal
16:56:16: Mesh: Loading CubeX.mesh.
16:56:16: D3D9 : ***** Dimensions altered by the render system
16:56:16: D3D9 : ***** Source image dimensions : 512x384
16:56:16: D3D9 : ***** Texture dimensions : 512x512
16:56:16: Texture: terrain_texture.jpg: Loading 1 faces(PF_B8G8R8,512x384x1) with 9 generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
16:56:16: Win32Input8: DirectInput Activation Starts
16:56:16: Win32Input8: Establishing keyboard input.
16:56:16: Win32Input8: Keyboard input established.
16:56:16: Win32Input8: Establishing mouse input.
16:56:16: Win32Input8: Mouse input established.
16:56:16: Win32Input8: DirectInput OK.
16:56:16: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 4
Function: SceneManager::setWorldGeometry
Description: World geometry is not supported by the generic SceneManager.. 
File: ..\src\OgreSceneManager.cpp
Line: 1107
Stack unwinding: <<beginning of stack>>
16:56:16: *-*-* OGRE Shutdown
16:56:16: Unregistering ResourceManager for type Compositor
16:56:16: Unregistering ResourceManager for type Font
16:56:16: Unregistering ResourceManager for type Skeleton
16:56:16: Unregistering ResourceManager for type Mesh
16:56:16: Unregistering ResourceManager for type HighLevelGpuProgram
16:56:16: Unloading library .\Plugin_CgProgramManager
16:56:16: Unloading library .\Plugin_ParticleFX
16:56:16: *** Stopping Win32GL Subsystem ***
16:56:16: Unloading library .\RenderSystem_GL
16:56:16: Render Target 'OGRE Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
16:56:16: D3D9 : Shutting down cleanly.
16:56:16: Unregistering ResourceManager for type Texture
16:56:16: Unregistering ResourceManager for type GpuProgram
16:56:16: D3D9 : Direct3D9 Rendering Subsystem destroyed.
16:56:16: Unloading library .\RenderSystem_Direct3D9
16:56:16: Unregistering ResourceManager for type Material
16:56:16: Unloading library OgrePlatform.dll
Last edited by SveGo on Tue Apr 11, 2006 7:24 am, edited 1 time in total.
User avatar
smirnof.pl
Halfling
Posts: 59
Joined: Tue Apr 12, 2005 6:40 am
Location: Poland, Bielsko-Biala
Contact:

Post by smirnof.pl »

Hello,
If you want to use PLSM2 you have to load plugin for that type of scene manager. You need to add this line to pluins.cfg file.

Code: Select all

Plugin=Plugin_PagingLandScapeSceneManager2
You should check PLSM2 wiki about instalation details. I hope it will help you :)
SveGo
Halfling
Posts: 55
Joined: Tue Nov 15, 2005 3:15 pm
Location: Rotterdam, the Netherlands

Post by SveGo »

I currently have no use for the paging landscape manager. (which is ST_EXTERIOR_FAR, IIRC)

I just want to use the Terrain Scene Manager that comes with Ogre (ST_EXTERIOR_CLOSE). I shouldn't have to load a seperate plugin for this.
I didn't had to in my previous project. (which was 1.0.6)


Sven
User avatar
danharibo
Minaton
Posts: 997
Joined: Sat Feb 25, 2006 8:14 pm
Location: Wales, United Kingdom
Contact:

Post by danharibo »

i also have a simillar problem, it either had a compile eroor or that happend
SveGo
Halfling
Posts: 55
Joined: Tue Nov 15, 2005 3:15 pm
Location: Rotterdam, the Netherlands

Post by SveGo »

If i put the following two lines right next to each other:

Code: Select all

	mSceneMgr = mRoot->createSceneManager(ST_EXTERIOR_CLOSE);
	printf("Scene manager name: %s\n\n", mSceneMgr->getTypeName().c_str());
It gives me the following line in the output:

Code: Select all

Scene manager name: DefaultSceneManager
It seems that Ogre isn't selecting the terrain scene manager as the new scene manager.
User avatar
xavier
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 9481
Joined: Fri Feb 18, 2005 2:03 am
Location: Dublin, CA, US
x 22

Post by xavier »

Dagon changed the way you select scene managers, since it now supports multiple scene managers for the same scene. See any of the demos for the proper way to select a scene manager.
SveGo
Halfling
Posts: 55
Joined: Tue Nov 15, 2005 3:15 pm
Location: Rotterdam, the Netherlands

Post by SveGo »

I've got the line

Code: Select all

mRoot->createSceneManager(ST_EXTERIOR_CLOSE);

from the terrain tutorial.

Looking at the terrain demo, it uses the line:

Code: Select all

mRoot->createSceneManager("TerrainSceneManager");
But this results in the error:

Code: Select all

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: SceneManagerEnumerator::createSceneManager
Description: No factory found for scene manager of type 'TerrainSceneManager'. 
File: e:\projects\ogrecvs\branches\dagon_vc8_clean\ogrenew\ogremain\src\ogrescenemanagerenumerator.cpp
Line: 173 
edit:
I've now created a new project (using the project file from the Terrain demo) with the terrain sources in them. This way, the project should be the exact same as the terrain demo.
But I still get the exact same error. :cry:
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Are you loading the OctreeSceneManager, is it in your plugins.cfg?
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
smirnof.pl
Halfling
Posts: 59
Joined: Tue Apr 12, 2005 6:40 am
Location: Poland, Bielsko-Biala
Contact:

Post by smirnof.pl »

lol, i dont know why i wrote in my post about PLSM2, hehe my mistake :)
As Jacome wrote you should check plugins.cfg and there must be

Code: Select all

Plugin=Plugin_OctreeSceneManager
SveGo
Halfling
Posts: 55
Joined: Tue Nov 15, 2005 3:15 pm
Location: Rotterdam, the Netherlands

Post by SveGo »

jacmoe wrote:Are you loading the OctreeSceneManager, is it in your plugins.cfg?
Argh... how could I have missed that... there was a misspelling in that file :? (would have espected a note in the error log?)

I was to obsessed with the code, especially after the noted about Dagon...

It works now, Tnx guys!
Post Reply