Multiple Viewports in Ogre Makes Text Unreadable

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Gf11speed
Not too shy to talk
Not too shy to talk
Posts: 22
Joined: Mon Jun 13, 2005 17:51
Contact:

Multiple Viewports in Ogre Makes Text Unreadable

Postby Gf11speed » Thu Jan 04, 2007 15:31

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?
Syntasoft Games
www.syntasoft.com

User avatar
Gf11speed
Not too shy to talk
Not too shy to talk
Posts: 22
Joined: Mon Jun 13, 2005 17:51
Contact:

Postby Gf11speed » Thu Jan 04, 2007 16:08

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.
Syntasoft Games

www.syntasoft.com

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Postby spannerman » Thu Jan 04, 2007 16:59

Ok, but how are you specifying the dimensions in the layout files? Are you using UnifiedAreaRect?

User avatar
Gf11speed
Not too shy to talk
Not too shy to talk
Posts: 22
Joined: Mon Jun 13, 2005 17:51
Contact:

Postby Gf11speed » Thu Jan 04, 2007 17:48

Yes the XML layout files are using UnifiedAreaRect. Is that incorrect?
Syntasoft Games

www.syntasoft.com

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Postby spannerman » Thu Jan 04, 2007 21:11

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.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 11 guests