Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Yarn on January 25, 2013, 05:40:44 pm

Title: Feature request: Preserve 4:3 ratio of menus
Post by: Yarn on January 25, 2013, 05:40:44 pm
Basically what's described in Mantis #2237 (http://scp.indiegames.us/mantis/view.php?id=2237) (although "crop" wasn't really the correct term to use). In my opinion, the interface would look better in widescreen resolutions if it weren't stretched to fill the screen, especially on super-wide multimonitor setups.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: mjn.mixael on January 25, 2013, 05:45:19 pm
meh, I prefer stretched over 4:3 letterbox. besides why spend time on this instead of allowing widescreen menus altogether?
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: zookeeper on January 25, 2013, 05:47:03 pm
Yeah, the stretching is utterly awful. Some time ago I did try to implement a fix, but unfortunately it turned out to be too complicated (for me, anyway).
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Yarn on January 25, 2013, 06:14:58 pm
Since people have different preferences on this sort of thing, it might be a good idea to let the player decide whether to stretch the menus (although I don't think stretching should be the default). Don't forget that some players use things like AMD Eyefinity and Nvidia 3D Vision to play on multiple monitors; the stretched menus would look absolutely horrible for them.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Ace on January 25, 2013, 06:28:12 pm
I'd be nice to have a launcher option to keep the menu scaled 4:3 and to have an option to have a border image around it (black by default).

So you could do a 1080p border image and the 4:3 menus get placed within.

So I guess I'm asking for a stylized pillarboxing option.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Zacam on January 25, 2013, 07:12:04 pm
I may be off base, but I thought there was already something in play for this.

Maybe it was a script.

Hmm.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: FreeSpaceFreak on January 26, 2013, 01:04:55 am
meh, I prefer stretched over 4:3 letterbox.
Here's someone who plays Diaspora on triple-monitor; I think you'll agree that unstretched would be preferable in this case.
(http://img204.imageshack.us/img204/1235/fs25.jpg)

Quote
besides why spend time on this instead of allowing widescreen menus altogether?
There would be a lot more resolutions to create interface art for, I guess... People play FSO all the way from 5:4 (e.g. 1280x1024) to 16:9. You'd have to create and distribute individual interface packs for different screen ratios (tech support might become interesting on that one), or ask people to download huge all-in-one interface packs (of which they'd only actually use about a quarter). Just for the mainhalls it would be cool, but for every single interface element I think that would be... stretching it :)
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: mjn.mixael on January 26, 2013, 01:27:32 am
Wat?

Just do a similar thing as with the HUD table and allow the modder to create art that can work for multiple resolutions as they see fit.

Also, the number of people that play on triple monitors is much less than normal wide screens... No reason to change all the defaults for the niche crowd. I would still say a proper interface.tbl is a better solution than another game flag to add pillar boxes. It's way more important that we break the menus out of their 1024x768 prison.... This is 2013 after all.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Goober5000 on January 26, 2013, 02:31:33 am
I may be off base, but I thought there was already something in play for this.

Maybe it was a script.

Hmm.

There is a tab in the display control panel on Windows that offers the option to preserve the aspect ratio when scaling screens.  This is what I use, and it may be what you're thinking of.  (Caveat: It may only be an option for certain video cards.)
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: The E on January 26, 2013, 03:21:26 am
And it wouldn't work in this case anyway. What we do right now is to scale the interface graphics to the screen resolution. What we should be doing is to allow the user to choose a scaling mode; that is, offer up a selection of either the old behaviour, scale while preserving aspect ratio (filling the rest of the screen with black or something), and not scale at all (with the graphics centered on the screen and the rest blacked out).
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: zookeeper on January 26, 2013, 03:34:58 am
I may be off base, but I thought there was already something in play for this.

Maybe it was a script.

Hmm.

You're probably referring to something else, but just for the record, I also attempted to write a script which would de-stretch everything while in menus. It didn't work out because then model rendering (in tech lab, for instance) and possibly text as well were getting borked.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Yarn on January 26, 2013, 06:24:43 pm
I may be off base, but I thought there was already something in play for this.

Maybe it was a script.

Hmm.

You're probably referring to something else, but just for the record, I also attempted to write a script which would de-stretch everything while in menus. It didn't work out because then model rendering (in tech lab, for instance) and possibly text as well were getting borked.
When the game stretches the menus, it stretches everything in the menus--even text--except for the mouse cursor and 3D models.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Woolie Wool on January 27, 2013, 09:45:56 am
Wat?

Just do a similar thing as with the HUD table and allow the modder to create art that can work for multiple resolutions as they see fit.

Also, the number of people that play on triple monitors is much less than normal wide screens... No reason to change all the defaults for the niche crowd. I would still say a proper interface.tbl is a better solution than another game flag to add pillar boxes. It's way more important that we break the menus out of their 1024x768 prison.... This is 2013 after all.

And who's going to make that art? Do you know how incredibly complex the interface art is and how few times anyone has successfully replaced it? I can think of exactly three all new interfaces in the entire history of FSO modding (TVWP, Diaspora, and Wing Commander Saga). That's it.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: FreeSpaceFreak on January 27, 2013, 10:58:58 am
And who's going to make that art? Do you know how incredibly complex the interface art is and how few times anyone has successfully replaced it? I can think of exactly three all new interfaces in the entire history of FSO modding (TVWP, Diaspora, and Wing Commander Saga). That's it.
Well, that's what we have the templates for, right? I could see them extended for different resolutions...
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: mjn.mixael on January 27, 2013, 02:07:20 pm
And who's going to make that art? Do you know how incredibly complex the interface art is and how few times anyone has successfully replaced it? I can think of exactly three all new interfaces in the entire history of FSO modding (TVWP, Diaspora, and Wing Commander Saga). That's it.
Well, that's what we have the templates for, right? I could see them extended for different resolutions...

Indeed.

I just don't see it as super beneficial to add more code that helps lock us into an outdated resolution. I think time would be better spent finding a middle ground that will allow unstretched 4:3 ratios if desired, while still giving modders more tools to make the interface at whatever resolutions they see fit.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Yarn on January 27, 2013, 02:42:10 pm
Just to be clear, my request is really about showing menus in whatever aspect ratio they were designed for (by user preference, of course), similar to how FSO currently plays movie files. I have no problem with widescreen menus--I would welcome them, actually. I just don't like FSO's stretched menus.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: The E on January 27, 2013, 05:00:25 pm
I just don't see it as super beneficial to add more code that helps lock us into an outdated resolution. I think time would be better spent finding a middle ground that will allow unstretched 4:3 ratios if desired, while still giving modders more tools to make the interface at whatever resolutions they see fit.

The thing is, the interface art we do have looks pretty bad once it's stretched out to modern resolutions, and if we go into extreme multimonitor setups, it can get actively unusable. That is something we need to address, and IMHO we need to address it sooner than any other feature additions regarding the interface (The ability to define a scaling mode being, IMO, a necessary function for any other form of interface we do).
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Rodo on January 27, 2013, 06:33:33 pm
I know it's hard but, can't something like what was made for the HUD code be applied in this case?

It will probably require to define table entries or something like that for every menu or button arrangement in the options screen, hangar screen and all that, but it seems like an optimal solution. you'll get the interface stretching in line and at the same time be providing mods the tools to develop custom menus throughout the entire game.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Reprobator on January 28, 2013, 02:20:33 am
As a eyefinity user (6084*1080 ) i really wish an option to prevent scaling to resolution even if it stay 4/3 and doesn't filled fully a single screen , it would be anyway 100 time better than the actual things :D

The hud like solution can be neat but it'll require a lot of work!

THe two solution would be perfect, if you have no table ready for you then you can tickle a standard 4/3 centered interface in the launcher
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Swifty on January 28, 2013, 02:13:41 pm
I know it's hard but, can't something like what was made for the HUD code be applied in this case?

I had to rewrite the HUD code to do that and that took about 6-9 months to complete while being unemployed. It's best if we have smarter scaling of interface screens for now until someone volunteers to implement a better replacement/rewrite/extension of the current interface system.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Woolie Wool on January 30, 2013, 10:57:38 pm
And who's going to make that art? Do you know how incredibly complex the interface art is and how few times anyone has successfully replaced it? I can think of exactly three all new interfaces in the entire history of FSO modding (TVWP, Diaspora, and Wing Commander Saga). That's it.
Well, that's what we have the templates for, right? I could see them extended for different resolutions...

The templates are just a gray, recolorable version of the original FS2 interface. You still have to redraw the UI, a truly monumental amount of work.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: mjn.mixael on January 30, 2013, 11:04:15 pm
In all my time here.. can you name me once when something being a "truly monumental amount of work" has ever stopped me? Juss sayin.
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Phantom Hoover on January 31, 2013, 04:13:46 am
Wat?

Just do a similar thing as with the HUD table and allow the modder to create art that can work for multiple resolutions as they see fit.

Also, the number of people that play on triple monitors is much less than normal wide screens... No reason to change all the defaults for the niche crowd. I would still say a proper interface.tbl is a better solution than another game flag to add pillar boxes. It's way more important that we break the menus out of their 1024x768 prison.... This is 2013 after all.

or you know we could just use the simple, easy solution and allow pillarboxing as an option now and work on resizing all the interfaces later
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Reprobator on February 01, 2013, 09:31:47 am
200% agreed!  :yes:
Title: Re: Feature request: Preserve 4:3 ratio of menus
Post by: Ace on February 04, 2013, 04:58:51 pm
If this is implemented, can it please have support for a texture to surround the pillarbox?