Page 1 of 1
Different text look
Posted: Wed Nov 04, 2009 21:04
by mukai
Hi.
I have small problem with text look. I'm using CELayoutEditor for make layout file and everything is fine but when i load this layout to my game somethings look different. It isn't big difference but it's. In editor it looks better so why it Can't look the same in game.
Upper is from game, lower from editor. I painted yellow lines to show you what I mean. Same problem is with button's text but button is smaller so difference is smaller too.
Re: Different text look
Posted: Wed Nov 04, 2009 23:44
by Van
Is your screen resolution the same? The CEGUIEditor rendering resolution is fixed to pre-set options (Menu->View->Make Exactly xxx). If you are running your game in a different resolution it may appear slightly different (especially if you use Wide Screen resolutions).
Re: Different text look
Posted: Thu Nov 05, 2009 08:12
by mukai
Yes, is the same. I use Menu->View->Make Exactly 1024 x 768 and game resolution is 1024 x 768 too. I think it's something with text align because each text is a bit lower then it should.
Re: Different text look
Posted: Thu Nov 05, 2009 15:00
by scriptkid
Hi,
It looks more as if there is some anti-aliasing going on in the editor, which is not happening in the game. The text looks a bit more sharp in-game.
Do you explicitely set the Font property of your layout, or do you rely on default fonts, which might be different in game from the editor?
Re: Different text look
Posted: Thu Nov 05, 2009 16:11
by mukai
I tried run my game with differents anti-aliasing value, didn't help. I set font in layout file like that:
Code: Select all
<Property Name="Font" Value="Houdini-10" />
I use exactly the same font, imageset, scheme and looknfeel files in both game and editor. I figured out that editor use OpenGL (I found OpenGLGUIRenderer.dll in editor folder) and thought it can be problem because I use Direct in my game but when i change it to OpenGl it didn't help.
Re: Different text look
Posted: Thu Nov 05, 2009 21:40
by mukai
I made this today to show exactly what is my problem.
Windows look exactly the same but text is rendering different (left windows from game right from editor)
Now the question is how to make game render text like editor do (in practice it looks much better).