21:9 TITLEPIC gets stretched on a 16:9 screen

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Nash »

Playing around with the fullscreen image scaling feature that just got added, I'm playing at 1920x1080 but this 21:9-compatible TITLEPIC replacement gets stretched: https://github.com/nashmuhandes/WidePix ... master.zip
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Graf Zahl »

Works for me, after fixing the downloaded file.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Nash »

What's the fix?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Graf Zahl »

The image must go into a "graphics" subfolder.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Nash »

It looks incorrect for me, even after moving the pic into a "graphics" subfolder. Of note is that when the full console is up (achievable by opening the console at the title menu, outside of a level), the scale looks correct. [EDIT: I was actually wrong, see Graf's next post]

GIF animation comparison.

Image
Last edited by Nash on Sun Mar 15, 2020 9:20 am, edited 2 times in total.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Nash »

Here's an animation of unmodded (has pillarboxes) VS modded. Modded has the texture moved into /graphics/ in the Doom 2 filter folder.

Expectation: with modded, the image scale should remain the same, just with more detail filling up the left and right pillarboxes.

Image
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Graf Zahl »

Yes, the full console always scales the image to fit the screen - it has always been doing that. Using the titlepic as console background has always been a crutch, but you know what'd happen if that was changed, don't you?
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Nash »

Graf Zahl wrote:Yes, the full console always scales the image to fit the screen - it has always been doing that. Using the titlepic as console background has always been a crutch, but you know what'd happen if that was changed, don't you?
Okay, I stand corrected. I was actually wrong in my other post; the image is NOT correct in the fullscreen console. You are right that console has always stretched to fit and indeed that also looks incorrect (the image is now too narrow) but you are right about it not being a good idea to change the console.

However, that's not what's being reported here. Have you seen my next post? The one with the image flipping between 4:3 and 16:9. The scale actually changes. I thought the scale shouldn't change. It indeed looks too fat in 16:9.

I assumed that the image will remain in the same scale, gradually revealing hidden pixels as the window size increases.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Nash »

I have updated the graphics to have proper pixel coverage to fill 21:9 now... same link as in the OP... (it used to be 474 pixels; now it's 560, as per advice in this thread). Thinking that the wrong sizes might've skewed the validity of my report - who knows that the wrong size might be throwing of the scaling code that GZDoom is doing - however even with the proper size, the original issue isn't resolved. The issue being, with the widescreen replacements, the image gets stretched horizontally and looks significantly different than their unmodded 4:3 counterparts.
User avatar
Tormentor667
Posts: 13533
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Tormentor667 »

I can confirm that this feature isn’t working correctly yet for HELP screens in 21:9 as well:
viewtopic.php?f=124&t=68196&p=1146634#p1146634
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Graf Zahl »

fixed for real this time by aspect-compensating all images with a height of 200 pixels.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: 21:9 TITLEPIC gets stretched on a 16:9 screen

Post by Nash »

Wonderful, our widescreen replacements look perfect now. Thanks!
Post Reply

Return to “Closed Bugs [GZDoom]”