rendering problems with ogre and cegui

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

rendering problems with ogre and cegui

Postby lindquist » Wed Jan 26, 2005 15:21

Hi all.
I've just started looking into Ogre about a week ago. And through recommendations from their site I'm now also trying out CEGUI...

Everything seems really nice and i like it alot. But I have an issue with rendering. With Ogres DX9 renderer everything works flawlessly, but in OpenGL nothing looks right...

Does anyone have any ideas ? Ogre itself works fine, its just the rendering of CEGUI that gets messed up.

[img align=left]http://www.helix.dk/shots/dx9.jpg[/img]
[img align=left]http://www.helix.dk/shots/gl.jpg[/img]

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: rendering problems with ogre and cegui

Postby CrazyEddie » Wed Jan 26, 2005 19:42

Hmmm, that's an odd one :) I've not seen anything quite like this before.

Are you using the default scene manager? If not, have you told the Gui system which scene manager you're using?

CE.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: rendering problems with ogre and cegui

Postby lindquist » Wed Jan 26, 2005 21:30

I am using ST_GENERIC

creates the Ogre::SceneManager

Code: Select all

scene = root->getSceneManager( Ogre::ST_GENERIC );


creates the CEGUI:OgreRenderer

Code: Select all

CEGUI::Renderer *r = new CEGUI::OgreRenderer( window, Ogre::RENDER_QUEUE_OVERLAY, false, 0, Ogre::ST_GENERIC );


and yeah... its pretty odd :shock:

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: rendering problems with ogre and cegui

Postby CrazyEddie » Thu Jan 27, 2005 09:30

Hi,

Okay I'm not sure how to reproduce this, everything works okay here.

Have you tried any of the gui demos (running the binaries will do, if you do not want to compile); do any of these show the same issue? This should allow us to narrow the field a little.

Thanks,

CE.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: rendering problems with ogre and cegui

Postby lindquist » Thu Jan 27, 2005 12:05

Hi again.
I just tried out demo4,6,7 precompiled versions.
It's exactly the same. DX9 works fine, OpenGL screws up.

Right now I'm think driver issues. I'm using a Radeon 9600 XT with Catalyst 5.1...

Right now I'm home having my lunch break, but I'll try out another driver when I get off work.

The screenshots are from 0.1.1 but I tried out the CVS version and it's exactly the same.

anyways... Thanx for the quick reply.

User avatar
Injector
Just popping in
Just popping in
Posts: 18
Joined: Wed Jan 12, 2005 12:06

Re: rendering problems with ogre and cegui

Postby Injector » Thu Jan 27, 2005 13:17

Just wanted to state that I have got the same problems (for quite a while), but it only happens on ATI cards (tested with 9200, 9700 Pro and Mobility 9700), the nVidia ones I tested with (5900XT, 6600GT) work fine, so I also think that this is a driver issue.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: rendering problems with ogre and cegui

Postby lindquist » Thu Jan 27, 2005 17:47

Ok... I tested my demo on my roommates computer and it worked fine.
Should have done this in the first place.
He has a standard Radeon 9600 with some old driver installed.

I then tried reverting to the 4.12 catalyst (13 dec. I think) and it worked fine for me too...

So it seems that ATI's catalyst 5.1 has faulty OpenGL support.
Either that or there is some obscure bug in Ogres OpenGL renderer itself...

Well... It's good enough for me that it works with 4.12

User avatar
nfz
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Wed Jan 12, 2005 12:06

Re: rendering problems with ogre and cegui

Postby nfz » Fri Jan 28, 2005 04:33

When I tried out the new catalyst drivers (5.1) on 17 Jan 05 I ran into the same problem. I rolled back to 4.12 for now untill I get a response back from ATI dev support or the next driver comes out. My bet is the next driver update will be out before I get a response to my query about the problem. I have been trying to set up a small test case using just OpenGL but so far I cannot duplicate the problem. Seems to be something with Dynamic vertex buffers and alpha blending.

User avatar
nfz
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Wed Jan 12, 2005 12:06

Re: rendering problems with ogre and cegui

Postby nfz » Fri Jan 28, 2005 05:09

Made some headway on this. Its not Dynamic vbo and alpha blending as I thought since my little test app works fine. Seems to be something in the render state setting in gl when an Ogre material gets rendered then CEGUI. Kind of a deja vu with the SO_FLAT/SO_GOURAUD problem. Seems like the previous drivers were more lax/forgiving maybe. If no Ogre materials get rendered then things work fine for CEGUI rendering. I'll play some more with the render state settings in ogrerenderer.cpp.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: rendering problems with ogre and cegui

Postby CrazyEddie » Fri Jan 28, 2005 09:58

Cool, I can't reproduce this here so if it does turn out to be another missing render state setting (I felt for sure we had them all now :( ), your finding it will be a great help :)

CE

User avatar
nfz
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Wed Jan 12, 2005 12:06

Re: rendering problems with ogre and cegui

Postby nfz » Fri Feb 11, 2005 19:21

Well, never got a reply from ATI about this problem but Catalyst 5.2 is out and the problem is now gone. Ogre GL renderer now works fine with CEGUI.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: rendering problems with ogre and cegui

Postby CrazyEddie » Sat Feb 12, 2005 09:42

Thanks for the update. Nice to know you can always count on ATI for support ;)

User avatar
ErikHjortsberg
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Jan 23, 2005 12:45
Location: Sweden
Contact:

Re: rendering problems with ogre and cegui

Postby ErikHjortsberg » Sat Mar 19, 2005 10:49

I got the same problem when I switched from nvidia driver 1.0-6629 to 1.0-7167.
I use Mandrake 10.1, Ogre 1.0 and CEGUI 0.2.0. I have a Geforce 6800 128Mb.

User avatar
ErikHjortsberg
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Jan 23, 2005 12:45
Location: Sweden
Contact:

Re: rendering problems with ogre and cegui

Postby ErikHjortsberg » Sat Mar 19, 2005 13:11

The problem has been solved, see here: http://www.ogre3d.org/phpBB2/viewtopic.php?t=8713


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 12 guests