Page 1 of 1

Multiple Viewports in Ogre Makes Text Unreadable

Posted: Thu Jan 04, 2007 15:31
by Gf11speed
So I have a scene that goes from a single, to multiple viewports in Ogre, and contains static text boxes. When I add two viewports the text obviously is half the size (half the height since I have two viewports on top of each other). This causes a problem cause now the text is 2 times harder to read. :)

I tried adjusting the height of the individual static text elements but no luck. Is there any better way to make the height of the text within a widget twice the height without changing the font? (since changing the font would increase the width as well, which I don't want to do).

Am I making any sense?

Posted: Thu Jan 04, 2007 16:08
by Gf11speed
I tried setting the window layout to absolute metrics mode, but no luck:

layout_InRace->setMetricsMode(CEGUI::Absolute);

Also tried:
staticText->setMetricsMode(CEGUI::Absolute);

I am loading CEGUI XML layouts, and the text that is getting scrunched up is just a static text box.

Posted: Thu Jan 04, 2007 16:59
by spannerman
Ok, but how are you specifying the dimensions in the layout files? Are you using UnifiedAreaRect?

Posted: Thu Jan 04, 2007 17:48
by Gf11speed
Yes the XML layout files are using UnifiedAreaRect. Is that incorrect?

Posted: Thu Jan 04, 2007 21:11
by spannerman
I really think you should do a bit of research into Cegui's positioning and sizing system. Make sure you understand this bit here.

As you can see, by design UnifiedAreaRect is made of both relative and absolute values (scale and offset). So trying to use setMetricsMode does not make any sense with regards to your problem.