Skip to content

Commit

Permalink
Added davej shader and chito overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
biscuits99 committed Nov 14, 2015
1 parent 311604e commit 09444e6
Show file tree
Hide file tree
Showing 55 changed files with 999 additions and 3 deletions.
29 changes: 29 additions & 0 deletions info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,31 @@ This copies the extra overlays and shaders etc.. across to the correct directori
"Use Shaders"
This will apply a shader file to the systems, as opposed to using overlays at all.

"CRT Shader"
This is from davej
http://blog.petrockblock.com/forums/topic/crt-pi-a-pi2-friendly-crt-shader/
There are some variables set at the top of the shaders/crt-pi.glsl file that can be used to control some aspects of the shader.

#define MULTISAMPLE
#define CURVATURE
#define BARREL_DISTORTION_X 0.15
#define BARREL_DISTORTION_Y 0.25
#define MASK_BRIGHTNESS 0.65
#define SCAN_LINE_WEIGHT 6.0
#define BLOOM_FACTOR 1.5
#define INPUT_GAMMA 2.4
#define OUTPUT_GAMMA 2.2

You can change the curvature by changing the BARREL_DISTORTION_X and BARREL_DISTORTION_Y values (0.0 will turn it off for that dimension). Better, you can turn if off entirely by commenting out the CURVATURE line (put a double slash // at the start of the line). This will cause it to skip the distortion code and speeds up the shader a bit. The barrel and mask shaders can be similarly controlled but just have the BARREL_DISTORTION_X and BARREL_DISTORTION_Y values.

You can similarly comment out the MULTISAMPLE line and speed things up a bit by skipping the multi-sample code at the risk of increasing moire effects.

MASK_BRIGHTNESS controls how bright the screen will be.

You�re best leaving the others alone. Altering SCAN_LINE_WEIGHT and BLOOM_FACTOR will likely make moire effects worse. The two GAMMA values affect brightness and should not need changing on a correctly configured monitor (and if you monitor is not correctly configured, fixing that is a far better idea).

It�s perhaps worth pointing out that the shader is designed to be used with linear filtering. CRT electron beams are not square and the combination of linear filtering with scan lines and bloom makes the edges of bright pixels next to dark pixels rounded which looks a bit more accurate. People are of course free to set filtering to nearest if they prefer.

"Overlays"
These are the settings from user "patl" found here:
http://blog.petrockblock.com/forums/topic/scanlines-overlays-an-configs-for-softer-look/
Expand Down Expand Up @@ -47,6 +72,10 @@ patrickm has said "some people might prefer 4x because the scanlines are slightl
"Thorig-1080p"
These settings are using new custom overlays that have a different TV overlay used.

"Chito-1080p"
These settings are using new custom overlays that have a different TV overlay used.
https://github.com/israelperez/retro-gaming

"Consoles-720p"
These are the settings from user "patrickm" found here:
http://blog.petrockblock.com/forums/topic/list-of-recommended-shaders-for-raspberry-piretropie-how-to-get-the-crt-look/
Expand Down
6 changes: 6 additions & 0 deletions system-retroarch/mame-libretro/retroarch-original.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

input_remapping_directory = /opt/retropie/configs/mame-libretro/

#include "/opt/retropie/configs/all/retroarch.cfg"
5 changes: 5 additions & 0 deletions system-retroarch/mame-mame4all/retroarch-original.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

input_remapping_directory = /opt/retropie/configs/mame-mame4all/

#include "/opt/retropie/configs/all/retroarch.cfg"
4 changes: 4 additions & 0 deletions users/chito/overlays/1980-1990_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = 1980-1990_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/1980-1990_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions users/chito/overlays/1990-2000_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = 1990-2000_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/1990-2000_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions users/chito/overlays/GameGear_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = GameGear_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/GameGear_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions users/chito/overlays/GameboyAdvance_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = GameboyAdvance_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/GameboyAdvance_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions users/chito/overlays/GameboyColor_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = GameboyColor_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/GameboyColor_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions users/chito/overlays/Gameboy_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = Gameboy_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/Gameboy_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions users/chito/overlays/NeoGeoPocketColor_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = NeoGeoPocketColor_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/NeoGeoPocketColor_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions users/chito/overlays/NeoGeoPocket_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = NeoGeoPocket_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/NeoGeoPocket_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
161 changes: 161 additions & 0 deletions users/chito/overlays/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# Retropie/EmulationStation Overlays
This setup is for a screen size of 1920 x 1080. To add these overlays to your retropie/emulationstation you will need to

1. create a folder called **1080p** in the folder **/opt/retropie/emulators/retroarch/overlays/**
2. copy all the overlay pngs and their cfg files to this new folder
3. locate the retroarch.cfg for each of the systems and add the following lines to the top

##Gameboy
/opt/retropie/configs/gb/retroarch.cfg

video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 640
custom_viewport_height = 576
custom_viewport_x = 654
custom_viewport_y = 257
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/Gameboy_1080p.cfg
input_overlay_enable = true
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##Gameboy Color
/opt/retropie/configs/gbc/retroarch.cfg

video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 640
custom_viewport_height = 576
custom_viewport_x = 640
custom_viewport_y = 191
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/GameboyColor_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##Gameboy Advanced
/opt/retropie/configs/gba/retroarch.cfg

video_smooth = false
video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 960
custom_viewport_height = 640
custom_viewport_x = 480
custom_viewport_y = 220
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/GameboyAdvance_1080p.cfg
input_overlay_enable = true
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##GameGear
/opt/retropie/configs/gamegear/retroarch.cfg

video_smooth = false
video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 640
custom_viewport_height = 576
custom_viewport_x = 639
custom_viewport_y = 253
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/GameGear_1080p.cfg
input_overlay_enable = true
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##NeoGeo Pocket
/opt/retropie/configs/ngp/retroarch.cfg

video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 800
custom_viewport_height = 760
custom_viewport_x = 563
custom_viewport_y = 161
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/NeoGeoPocket_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##NeoGeo Pocket Color
/opt/retropie/configs/ngp/retroarch.cfg
/opt/retropie/configs/ngpc/retroarch.cfg

video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 800
custom_viewport_height = 760
custom_viewport_x = 563
custom_viewport_y = 161
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/NeoGeoPocketColor_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##WonderSwan
/opt/retropie/configs/wonderswan/retroarch.cfg

video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 1120
custom_viewport_height = 720
custom_viewport_x = 400
custom_viewport_y = 180
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/WonderSwan_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##WonderSwan Color
/opt/retropie/configs/wonderswanc/retroarch.cfg

video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 1120
custom_viewport_height = 720
custom_viewport_x = 400
custom_viewport_y = 180
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/WonderSwanColor_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##1980s Retro consoles
/opt/retropie/configs/nes/retroarch.cfg
/opt/retropie/configs/mastersystem/retroarch.cfg

video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 1280
custom_viewport_height = 960
custom_viewport_x = 78
custom_viewport_y = 57
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/1980-1990_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

##1990s Retro consoles
/opt/retropie/configs/snes/retroarch.cfg
/opt/retropie/configs/megadrive/retroarch.cfg

video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 1280
custom_viewport_height = 960
custom_viewport_x = 320
custom_viewport_y = 60
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/1080p/1990-2000_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000
4 changes: 4 additions & 0 deletions users/chito/overlays/WonderSwanColor_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = WonderSwanColor_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/WonderSwanColor_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions users/chito/overlays/WonderSwan_1080p.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
overlays = 1
overlay0_overlay = WonderSwan_1080p.png
overlay0_full_screen = true
overlay0_descs = 0
Binary file added users/chito/overlays/WonderSwan_1080p.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
video_smooth = false
video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 640
custom_viewport_height = 576
custom_viewport_x = 639
custom_viewport_y = 253
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/chito/GameGear_1080p.cfg
input_overlay_enable = true
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

input_remapping_directory = /opt/retropie/configs/gamegear/

#include "/opt/retropie/configs/all/retroarch.cfg"
21 changes: 21 additions & 0 deletions users/chito/system-retroarch-cfg/gb/retroarch-overlay-chito-gb.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 640
custom_viewport_height = 576
custom_viewport_x = 654
custom_viewport_y = 257
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/chito/Gameboy_1080p.cfg
input_overlay_enable = true
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000


# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

input_remapping_directory = /opt/retropie/configs/gb/
# video_smooth = false
video_shader = /opt/retropie/emulators/retroarch/shader/hq4x.glslp
# video_shader_enable = true

#include "/opt/retropie/configs/all/retroarch.cfg"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
video_smooth = false
video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 960
custom_viewport_height = 640
custom_viewport_x = 480
custom_viewport_y = 220
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/chito/GameboyAdvance_1080p.cfg
input_overlay_enable = true
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000


# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

input_remapping_directory = /opt/retropie/configs/gba/

#include "/opt/retropie/configs/all/retroarch.cfg"
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 640
custom_viewport_height = 576
custom_viewport_x = 640
custom_viewport_y = 191
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/chito/GameboyColor_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000


# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

input_remapping_directory = /opt/retropie/configs/gbc/
# video_smooth = false
video_shader = /opt/retropie/emulators/retroarch/shader/hq4x.glslp
# video_shader_enable = true

#include "/opt/retropie/configs/all/retroarch.cfg"
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 1280
custom_viewport_height = 960
custom_viewport_x = 78
custom_viewport_y = 57
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/chito/1980-1990_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

input_remapping_directory = /opt/retropie/configs/mastersystem/

#include "/opt/retropie/configs/all/retroarch.cfg"
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
video_fullscreen_x = 1920
video_fullscreen_y = 1080
custom_viewport_width = 1280
custom_viewport_height = 960
custom_viewport_x = 320
custom_viewport_y = 60
aspect_ratio_index = 22
input_overlay = /opt/retropie/emulators/retroarch/overlays/chito/1990-2000_1080p.cfg
input_overlay_enable = "true"
input_overlay_opacity = 1.000000
input_overlay_scale = 1.000000

# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line

input_remapping_directory = /opt/retropie/configs/megadrive/

#include "/opt/retropie/configs/all/retroarch.cfg"
Loading

0 comments on commit 09444e6

Please sign in to comment.