Ratio 4:3 and 16:10 (16:9)

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

djphilipe
Quite a regular
Quite a regular
Posts: 48
Joined: Thu Aug 23, 2007 10:15
Location: Slovakia
Contact:

Ratio 4:3 and 16:10 (16:9)

Postby djphilipe » Fri Nov 27, 2009 09:18

Hi,
my application is designed for resolution 1024x768 (ratio 4:3),Imagesets etc. But I have bought a new monitor with resolution 1680x1050 (16:10). And if I run my application the GUI is deformed(non-uniform stretched).

Original 1024x768:
Image

In 1680x1050:
Image

That images are stretched it's OK. But they ratio is destroyed.

How are the ways of repair this problem? (so that I mustn't create a new imagesets)

Thanks
Filip

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Ratio 4:3 and 16:10 (16:9)

Postby Jamarr » Fri Nov 27, 2009 16:41

I'm a little confused here because what you are describing is the expected behavior. If you have a 4:3 image and you want to scale it up to 16:9, then you have to stretch/distort the image; 4/3 != 16/9. This is basic math.

If you want to "fit" the 4:3 image into the 16:9 area, then you have two options 1) used fixed offsets in your layout (as opposed to scaled offsets) so that regardless of ratio, your window position/sizes remain fixed or 2) force CEGUI to use a 4:3 ratio when changing the display size (in this case, set it too 1400x1050 instead of 1680); though note that your gui will not cover the entire screen...

Second, if you had done a search for Aspect Ratio you could have found the answer yourself.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests