Homebrew RetroArch Super Game Boy Borders! (overlays)

Chaos Rush

Well-Known Member
OP
Member
Joined
Jan 11, 2010
Messages
170
Trophies
0
XP
429
Country
United States
I'm a huge fan of using Super Game Boy Borders, to me it just feels wrong to play a GB/GBC game on a TV without a border. I was disappointed when I found out that Gambatte for RetroArch Wii doesn't have Super Game Boy support (both color and border), but with some tricky manipulation of the overlay system, I have found a workaround.


IMG_0385.JPG

First of all, the Super Game Boy borders are 256x224 (typical SNES screen resolution), and the actual Game Boy screen portion is 160x144. When stretched to a 4:3 aspect ratio (so in my case 640x480), the Game Boy screen portion approximately became 400x308 - but this tutorial has it at 400x300 because that's the only way I could get everything to work, since because of how RetroArch Wii works, the overlay has to be the same aspect ratio as the actual viewport.

So here's how to achieve it:
1. download the "border overlays.zip" at the bottom of this post.
2. place the contents in "apps/retroarch-wii/overlays/wii" on wherever you have RetroArch Wii stored (such as an SD card)
3. Change your Wii and your TV screen settings to 4:3 mode. (otherwise things won't have the correct aspect ratio)
4. load up RetroArch Wii and choose the Game Boy emulator (gambatte)
5. Go to Settings--->Video Options
6. Make these changes:
6a. Screen Resolution: 640x480p
6b. Default Filter: Bilinear filtering
6c. Aspect Ratio: Custom
6d. Custom Ratio: (120, 104 : 400x 300)
7. Go to Settings--->Overlay options
7a. Overlay Scale: 1.60
7b. Select Overlay Preset, choose one of the new overlays I provided in the download
7c. Overlay Opacity: 1.00
And that should do it!

This was done on a 16:9 TV, so I'm not sure how it would affect CRT TV's. Because my custom overlays have artificial scanlines built in, if anyone wants me to make ones without the scanlines so that it would display better on CRT TV's, just ask lol.

Or you could just use this as a template:
480p.png
 

Attachments

  • border overlays.zip
    100.5 KB · Views: 1,270

Gaming4Ever

Banned!
Banned
Joined
May 28, 2014
Messages
486
Trophies
0
Age
43
XP
136
Country
United States
Nice this is something that was bugging me too....u really need the Full retro experience hehehe

THX for this man appreciate it
 

drakorex

Well-Known Member
Member
Joined
Jan 19, 2011
Messages
1,882
Trophies
0
XP
1,077
Country
United States
One thing I noticed though, when you start another Retroarch emulator, it uses the last settings from whatever you had before. So you'll end up playing a NES game on a smaller resolution with a Super Gameboy around it. Hopefully this will be fixed in the future.
 

SuperrSonic

Well-Known Member
Member
Joined
Dec 9, 2011
Messages
807
Trophies
1
XP
2,323
Country
Puerto Rico
I see what you did there, "overlay0_full_screen" doesn't work on the GC/Wii versions. So it doesn't scale to the current resolution(640x480, a 4:3 AR) but when you use 400,300 for GB games you get a 4:3 ratio which means you can use the scale option to scale perfectly around the viewport.

You can still let your Wii use widescreen, but have your TV use 4:3 mode. Lastly if you want to avoid bilinear filtering you can mess with overlay0_rect but it's a pain to use.

One thing I noticed though, when you start another Retroarch emulator, it uses the last settings from whatever you had before.
That should not happen unless you didn't have a config for that core in the first place. What RA does is copy the settings in retroarch.cfg to the core config and vice versa. See if you load VBA Next then its settings from its config will copy over "on the spot" to retroarch.cfg. Except, when you don't have a core config available, the current settings from retroarch.cfg will copy over to the new core config.

I suck at explaining things but hopefully you get it.
 

drakorex

Well-Known Member
Member
Joined
Jan 19, 2011
Messages
1,882
Trophies
0
XP
1,077
Country
United States
I see what you did there, "overlay0_full_screen" doesn't work on the GC/Wii versions. So it doesn't scale to the current resolution(640x480, a 4:3 AR) but when you use 400,300 for GB games you get a 4:3 ratio which means you can use the scale option to scale perfectly around the viewport.

You can still let your Wii use widescreen, but have your TV use 4:3 mode. Lastly if you want to avoid bilinear filtering you can mess with overlay0_rect but it's a pain to use.


That should not happen unless you didn't have a config for that core in the first place. What RA does is copy the settings in retroarch.cfg to the core config and vice versa. See if you load VBA Next then its settings from its config will copy over "on the spot" to retroarch.cfg. Except, when you don't have a core config available, the current settings from retroarch.cfg will copy over to the new core config.

I suck at explaining things but hopefully you get it.
Launching from Wiiflow plugin, if that matters.
 

Maeson

Well-Known Member
Member
Joined
Apr 3, 2013
Messages
1,193
Trophies
2
XP
3,455
Country
Spain
If it's of any help, I'll put here a pack with over a hundred borders from Game Boy games that I recollected time ago, but I have to give credit to SuperrSonic and VagueRant from AR Forums because they made the .cfg's and did some borders themselves.

https://www.dropbox.com/s/s16grwhmcov0w2b/105 SGB Borders Retroarch Wii.rar

They work in a different way, but maybe you can find use for them.
 

Chaos Rush

Well-Known Member
OP
Member
Joined
Jan 11, 2010
Messages
170
Trophies
0
XP
429
Country
United States
So apparently I'm not the first one to try this concept: http://www.libretro.com/forums/viewtopic.php?f=31&t=1545&hilit=super+game+boy
Also if you look at the third post of that link, someone came up with their own method of achieving specifically SGB borders (it's pretty much exactly the same as mine, but the difference is how the borders are scaled) but I can't quite get it to position properly on the screen.

I know this isn't perfect but I think this really just goes to show how badly we want Super Game Boy border support. Playing low-res Game Boy games on a TV blown up to super high resolution is really ugly no matter how accurate you get the pixel ratio, and Super Game Boy borders just makes everything easier on the eyes.
 

SuperrSonic

Well-Known Member
Member
Joined
Dec 9, 2011
Messages
807
Trophies
1
XP
2,323
Country
Puerto Rico
but I can't quite get it to position properly on the screen.

You can use overlay_rect0 to manipulate the overlay, for GB games try "0.0,0.012,1.0,0.976" That's Vague Rant's calculation and according to him there is no math to use it perfectly.

However the feature to use overlays as backgrounds is there, it just doesn't work on Wii.
This link has the details: https://github.com/libretro/RetroArch/issues/621
But to save you the trip, it's because of all the custom resolutions the function wasn't implemented but it's not impossible to do. Of course the troubling part is that the issue was reported like half a year ago, so there's that.

Honestly using rect isn't so bad if you plan to use the same settings(which is the case here).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Yea ps3 is a beast still to today compared to most "sticks"
  • K3Nv2 @ K3Nv2:
    If you just want pi for emulation no point when Anbernic releases new shit every two seconds
    +1
  • BigOnYa @ BigOnYa:
    What's really cool about Pi's tho is you can have multiple SD cards with different OS on each SD card and change from say a gaming machine to a full fledged pc if wanted
  • K3Nv2 @ K3Nv2:
    Plus all bios are set up and usually includes at least 128gbs or 64
  • K3Nv2 @ K3Nv2:
    Yeah but if your main goal is just to play n64 and GameCube you can save about $50 and have the portability option
    +1
  • BigOnYa @ BigOnYa:
    True, but on 2 monitors at 4k. Its just want you want really, to each they own.
  • K3Nv2 @ K3Nv2:
    For a kids aspect Anbernic would be the better option they'd probably melt over the price on a good 4k display
    +1
  • BigOnYa @ BigOnYa:
    For that texasroo guy, I'd recommend the Spell and speak as his first system.
    +1
  • K3Nv2 @ K3Nv2:
    So they buy a pi5 kit for about $150 and say a 28" 4k display probably looking around $400 total
  • K3Nv2 @ K3Nv2:
    They'll be getting in the territory of portable Pcs anyway
    +1
  • BigOnYa @ BigOnYa:
    Again you get what you pay for, its like buying a S series for $300 but its only 1440p native, if you want true 4k, gotta get the X model for $500. But yea you right, when moms buying it anyways, you gotta stay cheap.
  • K3Nv2 @ K3Nv2:
    They could use HD out on their TV no real need for a monitor these days tbh the purists will disagree
  • K3Nv2 @ K3Nv2:
    I'm kind of phasing out on the need for wanting all these consoles cool to have but they just become dust build ups
  • BigOnYa @ BigOnYa:
    I here ya there, I have too many myself, and have hard time letting them go, since most of mine I've modded at some point. Anymore I just play Switch on the go, seriesx at home.
  • Xdqwerty @ Xdqwerty:
    ack my throat
  • K3Nv2 @ K3Nv2:
    I need to invest in some storage totes tbh
  • BigOnYa @ BigOnYa:
    Tots?
  • K3Nv2 @ K3Nv2:
    Tootles
  • BigOnYa @ BigOnYa:
    Tootles? Wtf
  • K3Nv2 @ K3Nv2:
    Oh tootles
  • BigOnYa @ BigOnYa:
    Oh totes , lol, like Tupperware storage, I gotcha
  • BigOnYa @ BigOnYa:
    I'm designing my own entertainment cabinet for my man cave, to store all my systems, then I'm also designing a power supply/HDMI switcher so I can switch to whichever system I want, and power it also. Already picked up the cabinet board, but tinkering with my drawings before start
  • BigOnYa @ BigOnYa:
    But yea, I have frogger arcade cabinet that I gutted and put a Pi4 then Pi5 into, but it never gets played much anymore, should sell it. Even when the kids come over, they don't want to play on it, just the xbox. TMNT and Simpson's arcade is still so fun on it, esp w 2 players.
  • K3Nv2 @ K3Nv2:
    Gonna check out the new Garfield looks like garbage
  • BigOnYa @ BigOnYa:
    Can't wait to see the new "stick" that can actually play Ps3 or 360 games. I know they are getting close.
    BigOnYa @ BigOnYa: Can't wait to see the new "stick" that can actually play Ps3 or 360 games. I know they are...