project-navigation
Personal tools

Author Topic: Prevent battlescape UI element upscaling?  (Read 3450 times)

Offline blau

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Prevent battlescape UI element upscaling?
« on: September 29, 2013, 06:25:55 pm »
Hello!

I'm trying to make a battlescape UI for my standard resolution (1440x900). But UI images are looking blurry and things like bar nodes with the same size values result in bars rendered in different (pixel) sizes.

I've read in an old comment from 2010 that it looks like this because for a resolution greater than 1024x768 everything gets upscaled. Has anything changed since then and is there a way to prevent this?
« Last Edit: October 02, 2013, 10:52:02 pm by blau »

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Prevent battlescape UI element upscaling?
« Reply #1 on: September 30, 2013, 05:44:24 pm »
It's been a very long time since I worked with this, but I believe the game upscales from 1024x768 because that is the size set in the UI scripts. I believe the battlescape window size is set in base/ufos/ui/hud_default.ufo:

Code: [Select]
battlescape battlescape
{
pos "0 0"
size "1024 768"
align LAYOUTALIGN_FILL
}

Try playing around with the size parameter to see if you get any different results.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2555
    • View Profile
Re: Prevent battlescape UI element upscaling?
« Reply #2 on: October 01, 2013, 12:00:01 am »
It's been a very long time since I worked with this, but I believe the game upscales from 1024x768 because that is the size set in the UI scripts. I believe the battlescape window size is set in base/ufos/ui/hud_default.ufo:

As far as I know 1024x768 base is hardcoded... but I can be wrong...

-geever

Offline blau

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Prevent battlescape UI element upscaling?
« Reply #3 on: October 02, 2013, 01:55:30 pm »
Thanks for your answers.

I played around with battlescape and window node sizes but they are always rendered the same way. Looks like it is as geever says.  :'(

Offline Sandro

  • Squad Leader
  • ****
  • Posts: 240
  • Maintenance guy for UFO:AI 3D engine
    • View Profile
Re: Prevent battlescape UI element upscaling?
« Reply #4 on: October 02, 2013, 07:05:34 pm »
As far as I know 1024x768 base is hardcoded... but I can be wrong...

No, you are right -- it is hardcoded. Basically, UI is rendered on (virtual) 1024x768 display.