Menu Text

Found a bug? Report it here.

Moderator: PPS-Leaders

Post Reply
zorkfan
Noxonian Grollknom
Posts: 6
Joined: Tue Jul 05, 2011 8:43 pm

Menu Text

Post by zorkfan » Tue Jul 05, 2011 8:49 pm

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

User avatar
1337
Baron Vladimir Harkonnen
Posts: 521
Joined: Wed Oct 10, 2007 7:59 am

Re: Menu Text

Post by 1337 » Tue Jul 05, 2011 9:31 pm

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?
http://www.xkcd.com/
A webcomic of romance, sarcasm, math, and language.

User avatar
Mozork
Mogthorgar, the mighty
Posts: 134
Joined: Wed Sep 24, 2008 3:27 pm

Re: Menu Text

Post by Mozork » Tue Jul 05, 2011 9:37 pm

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"

zorkfan
Noxonian Grollknom
Posts: 6
Joined: Tue Jul 05, 2011 8:43 pm

Re: Menu Text

Post by zorkfan » Tue Jul 05, 2011 10:13 pm

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

User avatar
1337
Baron Vladimir Harkonnen
Posts: 521
Joined: Wed Oct 10, 2007 7:59 am

Re: Menu Text

Post by 1337 » Wed Jul 06, 2011 2:52 am

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.
http://www.xkcd.com/
A webcomic of romance, sarcasm, math, and language.

User avatar
greenman
Baron Vladimir Harkonnen
Posts: 360
Joined: Wed Oct 03, 2007 2:53 pm
Contact:

Re: Menu Text

Post by greenman » Wed Jul 06, 2011 8:20 am

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 ;)
There are only 10 types of people in the world: Those who understand binary, and those who don't.

zorkfan
Noxonian Grollknom
Posts: 6
Joined: Tue Jul 05, 2011 8:43 pm

Re: Menu Text

Post by zorkfan » Wed Jul 06, 2011 9:33 am

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

User avatar
1337
Baron Vladimir Harkonnen
Posts: 521
Joined: Wed Oct 10, 2007 7:59 am

Re: Menu Text

Post by 1337 » Thu Jul 07, 2011 2:28 pm

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.
http://www.xkcd.com/
A webcomic of romance, sarcasm, math, and language.

zorkfan
Noxonian Grollknom
Posts: 6
Joined: Tue Jul 05, 2011 8:43 pm

Re: Menu Text

Post by zorkfan » Fri Jul 08, 2011 10:40 pm

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

User avatar
1337
Baron Vladimir Harkonnen
Posts: 521
Joined: Wed Oct 10, 2007 7:59 am

Re: Menu Text

Post by 1337 » Sat Jul 09, 2011 2:19 am

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.
http://www.xkcd.com/
A webcomic of romance, sarcasm, math, and language.

zorkfan
Noxonian Grollknom
Posts: 6
Joined: Tue Jul 05, 2011 8:43 pm

Re: Menu Text

Post by zorkfan » Sun Jul 17, 2011 3:24 pm

Any response from the cegui people?

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Menu Text

Post by x3n » Sun Jul 17, 2011 5:29 pm

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
Fabian 'x3n' Landau, Orxonox developer

zorkfan
Noxonian Grollknom
Posts: 6
Joined: Tue Jul 05, 2011 8:43 pm

Re: Menu Text

Post by zorkfan » Wed Jul 20, 2011 1:44 am

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.

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Re: Menu Text

Post by x3n » Wed Jul 20, 2011 7:55 am

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).
Fabian 'x3n' Landau, Orxonox developer

User avatar
1337
Baron Vladimir Harkonnen
Posts: 521
Joined: Wed Oct 10, 2007 7:59 am

Re: Menu Text

Post by 1337 » Sun Jul 24, 2011 4:07 am

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.
http://www.xkcd.com/
A webcomic of romance, sarcasm, math, and language.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest