Search found 10 matches

by pawn
Tue Aug 19, 2014 21:32
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

Sorry for the delay, the time runs too quickly hehe XD So the problem is that the ogre's render function is called one time at all (not once per window) so I can't call the functions at each render. What I have done is this: root->renderOneFrame(); guiRenderer->initialiseRenderStateSettings(); secon...
by pawn
Tue Aug 12, 2014 17:36
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

Sorry but due to a connection error (I think) my post never arrived -.-' So... I never (explicitly) render guicontexts, I only call root->renderOneFrame(); where root is the Ogre::Root singleton, the call stack that I previously posted is (I think) the responsable for the rendering of the contexts w...
by pawn
Mon Aug 11, 2014 11:09
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

I am not sure that works, infact now if in the second RenderWindow I don't look meshes the gui part renders correctly, when meshes appears the gui part is not correct. I mean in the scene there always are meshes but the gui renders differently if I point the camera to a direction where there are not...
by pawn
Sat Aug 09, 2014 07:50
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

By "second state" I meant when in my application there are 3d objects and gui (like the 2nd image)
by pawn
Sat Aug 09, 2014 01:46
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

Well, I tried to call initialiseRenderStateSettings() and now renders correctly the main menu but not correctly the second state. (Referring to the previous screenshots the first and the third are now correct, the second is still the same... RenderWindows can be initialized with some misc parameters...
by pawn
Thu Aug 07, 2014 10:45
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

Sorry I write window but I should write RenderWindow... I tried to sets the blend states explicitly by calling the function: root->getRenderSystem()->_setSeparateSceneBlending(Ogre::SBF_SOURCE_ALPHA, Ogre::SBF_ONE_MINUS_SOURCE_ALPHA, Ogre::SBF_ONE_MINUS_DEST_ALPHA, Ogre::SBF_ONE); after root->render...
by pawn
Wed Aug 06, 2014 22:57
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

I create two windows from Ogre::Root, I do not use (explicitly) opengl contexts and from the Ogre code seems to use a unique renderer.
I've not found a way to access the contexts, if I need to access them I'll try to search more deeply...
by pawn
Wed Aug 06, 2014 14:11
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

Ok, I found the following function: void OgreRenderer::initialiseRenderStateSettings() { using namespace Ogre; // initialise render settings [...] bindShaders(); // set alpha blending to known state setupRenderingBlendMode(BM_NORMAL, true); } which calls void OgreRenderer::setupRenderingBlendMode(co...
by pawn
Tue Aug 05, 2014 21:34
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Re: Multiple windows with Ogre3D and CEGUI

Yes,
those are the two windows of my application, I created them with:

Code: Select all

root->createRenderWindow("The Render Window", 800, 600, false, &misc );

The renderer I use is OpenGL Rendering Subsystem.

Thanks
by pawn
Tue Aug 05, 2014 10:21
Forum: Help
Topic: Multiple windows with Ogre3D and CEGUI
Replies: 19
Views: 14818

Multiple windows with Ogre3D and CEGUI

Hello, I'm a new user. I'm trying to develop an application using two windows, the Ogre part seems to work as I create two separate windows and assign to each of them a viewport and a camera. The problem is that I want to display on each of them some CEGUI windows, to do that I assign to each of the...

Go to advanced search