I'm getting trouble trying to use CEGUI with Ogre.
Here is my 'history':
* First, I was using Ogre 1.2.3 and CEGUI 0.4.1. But, when running, I got segmentation fault, and it seems to be because I'm using TinyXML in my app (see http://www.cegui.org.uk/phpBB2/viewtopic.php?t=1$
* So, considering this and the many improvements done for CEGUI 0.5, I decided to do the update.
Here is what I did:
- Downloading CEGUI 0.5-rc2.
- Compiling an installing it.
- Patching Ogre 1.2.3 with path found at http://www.ogre3d.org/phpBB2/viewtopic. ... egui+patch. Everything went fine (except for the Ocean demo where I need to manually apply the path.
- Then, I tried the samples in ogre, and it seems to work (at least the Gui sample seems to display some CEGUI things).
- After that, I recompiled CEGUI to get the samples working with Ogre.
Those samples runs good using opengl renderer, but hangs on a black screen when selecting ogre renderer.
Here is the Ogre log I get:
18:19:05: RenderSystem capabilities
18:19:05: -------------------------
18:19:05: * Hardware generation of mipmaps: yes
18:19:05: * Texture blending: yes
18:19:05: * Anisotropic texture filtering: yes
18:19:05: * Dot product texture operation: yes
18:19:05: * Cube mapping: yes
18:19:05: * Hardware stencil buffer: yes
18:19:05: - Stencil depth: 8
18:19:05: - Two sided stencil support: yes
18:19:05: - Wrap stencil values: yes
18:19:05: * Hardware vertex / index buffers: yes
18:19:05: * Vertex programs: yes
18:19:05: - Max vertex program version: arbvp1
18:19:05: * Fragment programs: yes
18:19:05: - Max fragment program version: arbfp1
18:19:05: * Texture Compression: yes
18:19:05: - DXT: yes
18:19:05: - VTC: no
18:19:05: * Scissor Rectangle: yes
18:19:05: * Hardware Occlusion Query: yes
18:19:05: * User clip planes: yes
18:19:05: * VET_UBYTE4 vertex element type: yes
18:19:05: * Infinite far plane projection: yes
18:19:05: * Hardware render-to-texture: yes
18:19:05: * Floating point textures: yes
18:19:05: * Non-power-of-two textures: no
18:19:05: * Volume textures: yes
18:19:05: * Multiple Render Targets: 4
18:19:05: * Point Sprites: yes
18:19:05: * Extended point parameters: yes
18:19:05: * Max Point Size: 1024
18:19:05: Registering ResourceManager for type Texture
18:19:05: ResourceBackgroundQueue - threading disabled
18:19:05: Particle Renderer Type 'billboard' registered
So, nothing semm to be wrong, but the screen is just all black and nothing happens (even the escape key doesn't work).
And so, since Ogre samplse are working fine, I tried to use it in my own application, but I got another problem:
Here is my code:
Code: Select all
a_renderer = new CEGUI::OgreCEGUIRenderer(&App::singleton().renderWindow(),
Ogre::RENDER_QUEUE_OVERLAY,
false,
3000,
&App::singleton().sceneManager());
With the above code, execution gave me
../include/CEGUISingleton.h:70: static T& CEGUI::Singleton<T>::getSingleton() [with T = CEGUI::System]: Assertion `ms_Singleton' failed.
wich is normal.
So, I added this:
Code: Select all
a_system = new CEGUI::System(a_renderer);
but then, I got an exception with the output '*** ERROR: Unknown', and my program exits.
Am I doing something wrong, and can anyone help me solving this issue?