2x resolution mode

MrSniffles
Posts: 57
Joined: Tue May 26, 2020 11:11 am
Has thanked: 37 times
Been thanked: 15 times

2x resolution mode

Unread post by MrSniffles »

Are there any examples of what this looks like vs regular mode? I'm not entirely sure I know what I'm looking for, but I tried it briefly with Final Fight One and it looked identical to me.
softtest9
Posts: 165
Joined: Thu May 28, 2020 7:13 pm
Has thanked: 3 times
Been thanked: 22 times

Re: 2x resolution mode

Unread post by softtest9 »

From the readme:

"Improved rendering resolution for:

Affine background: "Mode7" games, typically racing games like Mario Kart
Affine sprites: games that scale or rotate sprites"

So basically this sounds like the "HD mode" that mgba and bsnes have. Most games don't use any scaling and should thus look identical. However I tried it out with Golden Sun and the world map looks gorgeous with the backgrounds set to 2x. It removes a lot of the shimmering/unevenness when graphics are scaled by the GBA hardware.
MrSniffles
Posts: 57
Joined: Tue May 26, 2020 11:11 am
Has thanked: 37 times
Been thanked: 15 times

Re: 2x resolution mode

Unread post by MrSniffles »

Ahhh! Wow, yeah, really noticeable on Mario Kart! Thanks for that 👍
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: 2x resolution mode

Unread post by FPGAzumSpass »

The background improves mostly in those racing games that don't use bitmap mode/polygons and some other games with rotoscaled background.

Scaled and rotated sprites are by far more common.

Often one would not realize the difference without switching between both, as it doesn't look unnatural in higher resolution.
You probably notice it when you used it a bit and go back to the not-improved version.
User avatar
siskavard
Posts: 63
Joined: Sun May 24, 2020 11:47 pm
Has thanked: 29 times
Been thanked: 6 times

Re: 2x resolution mode

Unread post by siskavard »

The scale filters don't show up with the new modes.
User avatar
Sigismond0
Posts: 339
Joined: Mon May 25, 2020 2:21 am
Has thanked: 1 time
Been thanked: 66 times

Re: 2x resolution mode

Unread post by Sigismond0 »

They do, but just at 1/2 of their normal size.
User avatar
siskavard
Posts: 63
Joined: Sun May 24, 2020 11:47 pm
Has thanked: 29 times
Been thanked: 6 times

Re: 2x resolution mode

Unread post by siskavard »

oh, haha!
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: 2x resolution mode

Unread post by FPGAzumSpass »

Yes, unfortunatly you need a high resolution now for something like the lcd filters.
Gamma filters do indeed not work currently.

Keep in mind that you can turn the new feature off for games that don't use it and still use all the old features.
It's unfortunate, but we probably have to live with the fact that the mode must be adjusted on a game by game basis, or leave it always off.
User avatar
belgarcat
Posts: 26
Joined: Sun May 24, 2020 9:39 pm
Location: Catalonia
Has thanked: 6 times
Been thanked: 11 times

Re: 2x resolution mode

Unread post by belgarcat »

I’ve tested Gadget Racers and it looks great! Thanks for you work
User avatar
Keith Stack
Posts: 5
Joined: Sun May 24, 2020 7:48 pm

Re: 2x resolution mode

Unread post by Keith Stack »

2x res looks awesome on games with lots of sprite rotation, like Sonic Advance.

9CQMM7n.png
9CQMM7n.png (394.87 KiB) Viewed 11201 times

Beautiful!
keithstack.com
softtest9
Posts: 165
Joined: Thu May 28, 2020 7:13 pm
Has thanked: 3 times
Been thanked: 22 times

Re: 2x resolution mode

Unread post by softtest9 »

Wow, I never even thought of it affecting Sonic Advance. Very cool.
User avatar
Hectic
Posts: 47
Joined: Tue Jun 09, 2020 3:23 am
Been thanked: 10 times

Re: 2x resolution mode

Unread post by Hectic »

It seems that this enhancement does not work on 240p res. But would it be possible to take this and create a kind of SSAA filter for 240p res? Am I the only one who would like to see something like this filtering the zoom-out of certain Neo-Geo fighters?
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: 2x resolution mode

Unread post by FPGAzumSpass »

Yes it only works over HDMI, added it to the readme.

Supersampling would work, but with the low resolution it doesn't work well as it gets very blurry. Made a comparison shot:
Attachments
allmodes.jpg
allmodes.jpg (671.56 KiB) Viewed 11082 times
User avatar
Hectic
Posts: 47
Joined: Tue Jun 09, 2020 3:23 am
Been thanked: 10 times

Re: 2x resolution mode

Unread post by Hectic »

FPGAzumSpass wrote: Mon Jun 22, 2020 4:37 am Yes it only works over HDMI, added it to the readme.

Supersampling would work, but with the low resolution it doesn't work well as it gets very blurry. Made a comparison shot:
Yes, thats what I mean but it shouldn't look like that. I've made my own SSAA version from your image. You can see a lil more detail in the lane divider line and in the barrier of the right side.
allmodes_b_.jpg
allmodes_b_.jpg (901.16 KiB) Viewed 11054 times
The sharpness effect sholdn't be there, just dont at that. ;P
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: 2x resolution mode

Unread post by FPGAzumSpass »

In this case: please tell me what formula you used and maybe i can implement it.

My fomula was just a simple:
- add all 4 pixel
- divide by 4
User avatar
Hectic
Posts: 47
Joined: Tue Jun 09, 2020 3:23 am
Been thanked: 10 times

Re: 2x resolution mode

Unread post by Hectic »

FPGAzumSpass wrote: Mon Jun 22, 2020 11:09 am In this case: please tell me what formula you used and maybe i can implement it.

My fomula was just a simple:
- add all 4 pixel
- divide by 4
lol ¯\_(ツ)_/¯ I've just taken the bottom-left frame, scale 25% (carefuly to be pixel-perfect) and then scale 400%...
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: 2x resolution mode

Unread post by FPGAzumSpass »

So the software you used does the effect. Probably something more sophisticated and maybe using more adjacent pixels than just the available 2x2 grid.

Without knowing the math behind, we only know that it would be possible to do it with unlimited ressources and random pixel access.
Question is, if there is a function that uses only the 2x2 oversampled pixels and also generate such a quality from it.
mic_
Posts: 33
Joined: Thu May 28, 2020 8:45 am
Has thanked: 1 time
Been thanked: 5 times

Re: 2x resolution mode

Unread post by mic_ »

My fomula was just a simple:
- add all 4 pixel
- divide by 4
I don't know if that would make any noticable difference, but would it be possible (with a reasonable effort) to take the fractional part of the rotation/scaling coordinates into account instead of giving all 4 pixels equal weight?
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: 2x resolution mode

Unread post by FPGAzumSpass »

That information is not available anymore, as the pixels are calculated at different time, especially for the sprites.
Post Reply