Video Guide: Overlays on RetroPie

Info on the Pi and retro gaming emulation
Post Reply
Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Video Guide: Overlays on RetroPie

Post by Floob » Thu Mar 05, 2015 10:43 pm

Video seen here:
http://www.dailymotion.com/video/x2is5kt

Details on overlays here:
https://www.youtube.com/watch?v=viSb9t-y7AU

Automatic Tool to apply them here:
https://github.com/biscuits99/rp-video-manager

I am running this on a 720p TV, with CEA mode 4 set when I start the game (by pressing x as it boots).

Contents of /opt/retropie/configs/gb/retroarch.cfg

Code: Select all

video_shader_enable = true
video_shader = /opt/retropie/emulators/retroarch/shader/bead.glsl

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/gb.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.0

aspect_ratio_index = "22"
custom_viewport_width = "432"
custom_viewport_height = "389"
custom_viewport_x = "423"
custom_viewport_y = "165"
The width and height above were chosen to keep the aspect ratio of 160x144 of the original - so I presume I need to keep the ratio anyway.
The x and y determine where the top left corner of the screen should start.

Borders downloaded from:
http://retroarchborders.blogspot.com/

User avatar
mmmretropie
Posts: 4
Joined: Sat Feb 14, 2015 1:41 am

Re: Video Guide: Overlays on RetroPie

Post by mmmretropie » Fri Mar 06, 2015 5:35 pm

this is awesome. cant wait till they get the bsnes core so we use the super gameboy!

from: http://emulation-general.wikia.com/wiki/Using_RetroArch

Code: Select all

Super Game Boy

Using recent builds of the bsnes libretro cores, you can load Game Boy games in a fully emulated Super Game Boy. As this feature is not currently implemented in RGUI, you must do so using a command line. First you need to set the core to a bsnes core (any of the 3 profiles will work) using RGUI or editing your config file, then start RetroArch with the following command to load GB games in SGB mode using bsnes:

retroarch "path to Super Game Boy SNES cartridge ROM" --gameboy "path to Game Boy cartridge ROM"

Put the actual paths to the ROMs in double quotes. For example:

retroarch "C:/Games/SNES/Super Game Boy 2 (Japan).sfc" --gameboy "C:/Games/Game Boy/Kirby's Dream Land (USA, Europe).gb"

You will need sgb.boot.rom in your System folder, this can be found on the Emulator Files page in the SNES file pack if you do not have it.

You can also use the RetroArch-Phoenix launcher to launcher to load them, but YMMV since it is not being updated anymore.

Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Re: Video Guide: Overlays on RetroPie

Post by Floob » Fri Mar 06, 2015 8:35 pm

Lots more retroarch ratio info:

http://libretro.com/forums/showthread.php?t=1471
http://libretro.com/forums/showthread.php?t=1987


Here are the aspect_ratio_index settings

Code: Select all

0: 4:3
1: 16:9
2: 16:10
3: 16:15
4: 1:1
5: 2:1
6: 3:2
7: 3:4
8: 4:1
9: 4:4
10: 5:4
11: 6:5
12: 7:9
13: 8:3
14: 8:7
15: 19:12
16: 19:14
17: 30:17
18: 32:9
19: config (video_aspect_ratio setting)
20: 10:9 (1:1 PAR)
21: Core Provided
22: Custom

Juicebag85
Posts: 2
Joined: Fri Mar 06, 2015 8:59 pm

Re: Video Guide: Overlays on RetroPie

Post by Juicebag85 » Fri Mar 06, 2015 9:12 pm

That is awesome.

I didn't understand that ratio thing so I customized it by myself pixel by pixel. That was a hell lot of work. ^^

But I want to share my configs with you. I got a 1080p TV. Unfortunatly I didn't got it to work with the psx. :( It ignored my customizations.

So here's what you have to add to your specific retroarch.cfg:

gb/gbc:

Code: Select all

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/gb.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.0

aspect_ratio_index = "22"
custom_viewport_width = "214"
custom_viewport_height = "257"
custom_viewport_x = "213"
custom_viewport_y = "112"
snes/nes:

Code: Select all

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/snes.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.0

aspect_ratio_index = "22"
custom_viewport_width = "800"
custom_viewport_height = "597"
custom_viewport_x = "240"
custom_viewport_y = "62"
megadrive(genesis):

Code: Select all

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/md.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.0

aspect_ratio_index = "22"
custom_viewport_width = "853"
custom_viewport_height = "642"
custom_viewport_x = "214"
custom_viewport_y = "39"
Regards

Edit:

So I played a few sessions and came to the conclusion, that the screen of the Gameboy and the Gameboy Color is way too small. After a few minutes lying on the couch, my eyes began to hurt. So I decided to zoom a bit in and customize the configs again. It was totally worth it. The screen is much bigger now, but you still got that good ol' gameboy feeling. :)

Gameboy (Zoom):

Code: Select all

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/gb.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.3

aspect_ratio_index = "22"
custom_viewport_width = "280"
custom_viewport_height = "338"
custom_viewport_x = "180"
custom_viewport_y = "70"
Gameboy Color (Zoom):

Code: Select all

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/gbc.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.3

aspect_ratio_index = "22"
custom_viewport_width = "280"
custom_viewport_height = "330"
custom_viewport_x = "180"
custom_viewport_y = "74"
Last edited by Juicebag85 on Fri Mar 06, 2015 11:54 pm, edited 2 times in total.

Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Re: Video Guide: Overlays on RetroPie

Post by Floob » Fri Mar 06, 2015 10:36 pm

Thanks for those.
Here are mine based on a 720p tv, running retroarch in CEA mode 4.

GameBoy

Code: Select all

video_shader_enable = true
video_shader = /opt/retropie/emulators/retroarch/shader/bead.glsl

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/gb.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.0

aspect_ratio_index = "22"
custom_viewport_width = "432"
custom_viewport_height = "389"
custom_viewport_x = "423"
custom_viewport_y = "165"
GameBoy Color

Code: Select all

video_shader_enable = true
video_shader = /opt/retropie/emulators/retroarch/shader/bead.glsl

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/gbc.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.0

aspect_ratio_index = "22"
custom_viewport_width = "432"
custom_viewport_height = "389"
custom_viewport_x = "423"
custom_viewport_y = "165"
GameGear

Code: Select all

video_shader_enable = false
video_shader = /opt/retropie/emulators/retroarch/shader/bead.glsl

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/gg.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.0

aspect_ratio_index = "22"
custom_viewport_width = "432"
custom_viewport_height = "389"
custom_viewport_x = "423"
custom_viewport_y = "165"
Atari Lynx

Code: Select all

video_shader_enable = false
video_shader = /opt/retropie/emulators/retroarch/shader/bead.glsl

input_overlay_enable = true
input_overlay = /opt/retropie/emulators/retroarch/overlays/lynx.cfg
input_overlay_opacity = 0.70 # 1.0
input_overlay_scale = 1.0

aspect_ratio_index = "22"
custom_viewport_width = "640"
custom_viewport_height = "408"
custom_viewport_x = "320"
custom_viewport_y = "156"

Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Re: Video Guide: Overlays on RetroPie

Post by Floob » Sat Mar 12, 2016 12:16 pm

Just as a reference
http://libretro.com/forums/showthread.php?t=5149

PAR = pixel aspect ratio; you'll notice one of the aspect ratio options in settings > video > aspect ratio says "X:Y (1:1 PAR)". That means that it maps exactly 1 emulated pixel to exactly 1 monitor pixel, which sometimes looks weird. For example, NES/SNES are 8:7 with 1:1 PAR, which looks too skinny for some people who are used to 4:3 (the normal CRT aspect ratio). 1:1 PAR is the norm for many handhelds, though (with the Game Gear being a notable exception).

integer scale = most old consoles ran at a low resolution of approx. 240 lines (NES/SNES have 224 active lines and then 8 unused overscan lines on top and bottom). When you scale up to fit a 1080p screen, 1080 isn't an even multiple of 240 (that is, 1080 / 240 = 4.5), so you end up with inconsistently sized pixels on the vertical axis, which causes CRT/scanline effects to look weird, Mega Man's lifebars to look bad, etc. Integer scale rounds down to the highest whole integer scale factor (in the case of 1080p, that's 4.0x) so none of that stuff happens. This has the side effect of leaving a bunch of unused black areas around the game and *that's* what most of the overlay/borders you find online are trying to fill.

Post Reply