Page 1 of 1

Menu Text

Posted: Tue Jul 05, 2011 8:49 pm
by zorkfan
Running arch linux svn version 8729, with the bug present in standard package as well. Some fonts are rendered OK, but menu options are garbled:

Image

Image

Re: Menu Text

Posted: Tue Jul 05, 2011 9:31 pm
by 1337
Hi zorkfan,

Thanks a lot for reporting the issue! We don't have that many people working on Arch, which is currently one of the few Linux distros using CEGUI v0.7 instead of the old v0.6.
So I suspect that there is a compatibility issue. Unfortunately I have not yet seen this problem anywhere (we've had multiple other CEGUI problems, but none looked like this).

If you don't mind my asking, what is the native language installed on your machine?

Maybe Mozork knows more?

Re: Menu Text

Posted: Tue Jul 05, 2011 9:37 pm
by Mozork
I have no idea why it would look like that.
Out of curiosity, how does it look if you open the orxonox.ini file (in your build/config folder) and replace:

Code: Select all

[GUIManager]
guiScheme_ = "TaharezGreen"
with

Code: Select all

[GUIManager]
guiScheme_ = "Orxonox"

Re: Menu Text

Posted: Tue Jul 05, 2011 10:13 pm
by zorkfan
Native language is english, and cegui is, in fact, version 7.

Changing the ini file did change the menu, but it is still corrupted:
Image

Re: Menu Text

Posted: Wed Jul 06, 2011 2:52 am
by 1337
Have you tried any other game/demo/program that uses CEGUI 0.7 and Ogre?
Probably not, because I couldn't even name one.

Something might be wrong with the image codec or the renderer. And both have been completely rewritten in CEGUI 0.7.
I'm guessing that we need to insert some additional code into our game to fix it, but no idea what or where.

I'll check the CEGUI forums tomorrow. Maybe I can find a similar issue.

Re: Menu Text

Posted: Wed Jul 06, 2011 8:20 am
by greenman
maybe it helps if you post some log files: in ${build directory}/log/ the files cegui.log, (maybe) ogre.log and orxonox.log

could be that there is a hint for this problem somewhere hidden in one of these files ;)

Re: Menu Text

Posted: Wed Jul 06, 2011 9:33 am
by zorkfan
cegui.log is about 4 lines long. I thought it might be my WM (compiz in gnome3), but switching did not help. I guess it may also be worth mentioning I'm running an ATI card with the most recent catalyst drivers.

Logs:

ogre.log

orxonox.log

Re: Menu Text

Posted: Thu Jul 07, 2011 2:28 pm
by 1337
My CEGUI Forum searches were unsuccessful.
Can you start the game with --standalone? Then you'll bypass the menu and directly get to the default level.
I'm curious what that looks like then.

Re: Menu Text

Posted: Fri Jul 08, 2011 10:40 pm
by zorkfan
So I can get in game. On one hand, most of the graphics are gorgeous, so good work! On the other hand, some things are corrupted, and my mouse is not handled correctly. It tends to stop moving periodically and jumps. Pics:

Image

Image

Re: Menu Text

Posted: Sat Jul 09, 2011 2:19 am
by 1337
So this is definitely just a CEGUI issue. Either by our code or a CEUI bug.
CEGUI renders via OGRE, so if there was a driver or OpenGL issue, it would look different.

I'm gonna have to drag this to the CEGUI forum.

Re: Menu Text

Posted: Sun Jul 17, 2011 3:24 pm
by zorkfan
Any response from the cegui people?

Re: Menu Text

Posted: Sun Jul 17, 2011 5:29 pm
by x3n
Just a random guess, but maybe your png library is messed up. In your last picture, the crosshair in the center is clearly visible, but the damage overlay (the box around the crosshair) is just noise.
There's no difference in how these images are loaded into Orxonox, both are png, but maybe they were saved using a different compression or something.
You can try to open these images in a picture viewer, maybe this gives us more hints... the paths are data_extern/images/overlay/crosshair3.png and /centeroverlay.png

Re: Menu Text

Posted: Wed Jul 20, 2011 1:44 am
by zorkfan
Just checked and both are saved as .png, and geeqie shows them with no problem. After looking around it does seem to be a png problem, since the background of the main menu, a jpg, renders fine. I'll try a rebuild of my png libraries.

EDIT: a reinstall of both libpng and lib32-libpng did not help.

Re: Menu Text

Posted: Wed Jul 20, 2011 7:55 am
by x3n
Thanks for testing, too bad it didn't help.
We may try to get help or search for similar cases in the Ogre forums as well, since it doesn't
only happen in the menu (and, after all, cegui is also rendered using Ogre).

Re: Menu Text

Posted: Sun Jul 24, 2011 4:07 am
by 1337
Can you try this: open one of the PNGs in question with a tool like GIMP and then explicitly save it as 32 bit PNG. Or use any other method to generate a 32 bit PNG with alpha channel.
The reason is that I've had similar issues with PNGs using palettes, but only on certain systems.

Sorry for the late reply by the way, I was on vacation for a week.