Page 1 of 1
rendering problems with ogre and cegui
Posted: Wed Jan 26, 2005 15:21
by lindquist
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]
Re: rendering problems with ogre and cegui
Posted: Wed Jan 26, 2005 19:42
by CrazyEddie
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.
Re: rendering problems with ogre and cegui
Posted: Wed Jan 26, 2005 21:30
by lindquist
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
Re: rendering problems with ogre and cegui
Posted: Thu Jan 27, 2005 09:30
by CrazyEddie
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.
Re: rendering problems with ogre and cegui
Posted: Thu Jan 27, 2005 12:05
by lindquist
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.
Re: rendering problems with ogre and cegui
Posted: Thu Jan 27, 2005 13:17
by Injector
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.
Re: rendering problems with ogre and cegui
Posted: Thu Jan 27, 2005 17:47
by lindquist
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
Re: rendering problems with ogre and cegui
Posted: Fri Jan 28, 2005 04:33
by nfz
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.
Re: rendering problems with ogre and cegui
Posted: Fri Jan 28, 2005 05:09
by nfz
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.
Re: rendering problems with ogre and cegui
Posted: Fri Jan 28, 2005 09:58
by CrazyEddie
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
Re: rendering problems with ogre and cegui
Posted: Fri Feb 11, 2005 19:21
by nfz
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.
Re: rendering problems with ogre and cegui
Posted: Sat Feb 12, 2005 09:42
by CrazyEddie
Thanks for the update. Nice to know you can always count on ATI for support
Re: rendering problems with ogre and cegui
Posted: Sat Mar 19, 2005 10:49
by ErikHjortsberg
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.
Re: rendering problems with ogre and cegui
Posted: Sat Mar 19, 2005 13:11
by ErikHjortsberg