Results 1 to 3 of 3

Thread: RFC: Texture-based GUIs for different screen resolutions

  1. #1
    Guest

    RFC: Texture-based GUIs for different screen resolutions

    Assume an OpenGL application running full-screen, rendering a simple GUI of buttons, pictures and labels. Given a range of acceptable resolutions from 800x600 to 1600x1200, and acknowledging that screen sizes do not increase linearly with screen resolution, it's clear that a texture/raster-based GUI that looks good at 800x600 will not be appropiate for running at 1600x1200.

    Some thoughts:

    • Putting borders around the GUI fixes relative positioning, but controls still look small and the GUI looks cramped.
    • Stretching an asset set developed for 800x600 fixes relative positioning and control size, but everything appears pixellated.
    • Providing a different asset set for every possible screen resolution is costly in both artist time and distribution size.
    • And anyway, you can never predict every resolution people want to use.
    • An aspect-ratio of 4:3 isn't guaranteed, not even among the most popular resolutions.

    Does anyone have any sagely advice for overcoming this problem?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: RFC: Texture-based GUIs for different screen resolutions

    One solution is to make different images, one for each resolution, or for most important ones. Then, depending on the resolution, use the appropriate texture. This will imply you load images whenever the user will change resolution. But I'm pretty sure users won't do that so often.

    Hope that helps.

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    625

    Re: RFC: Texture-based GUIs for different screen resolutions

    Well, I put everything in [0..1] range and I can tell it looks pretty good. Altough not excellent as OS GUIs, it's still rather usable.
    The main problem is with the 4:3 ratio. This makes things go really bad. I took some time to find a way to solve it but I still don't realize how it is possible to
    1- keep the aspect ratio AND
    2- keep correct window dimensions

    Let's see if something interesting arises from this thread...

Similar Threads

  1. Pixel-based effects and screen DPI dependency
    By Keiron in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-20-2017, 04:16 PM
  2. .dds file and GUIs
    By spoofy13 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-13-2008, 04:10 PM
  3. Getting screen resolutions
    By Cheps in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-11-2003, 02:26 AM
  4. Switching between screen resolutions/color depth
    By borelli in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 12-04-2000, 10:08 AM
  5. about diferent screen resolutions
    By Xception in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-13-2000, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean