• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Add these gameboy shaders?

Scheduled Pinned Locked Moved Ideas and Development
shadershadersgameboygame boy
59 Posts 20 Posters 33.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    edmaul69
    last edited by edmaul69 2 Jan 2017, 20:43 1 Feb 2017, 19:57

    deleted look at last post

    1 Reply Last reply Reply Quote 0
    • E
      edmaul69
      last edited by edmaul69 2 Jan 2017, 23:03 1 Feb 2017, 20:40

      so i figured out how to get it working. not as good as original because of the grid i had to add to it. in /opt/retropie/configs/all/retroarch/shaders/ create a file named "gb-pocket-shader.glslp". in that file insert this:

      shaders = "5"
      shader0 = "shaders/dot.glsl"
      shader1 = shaders/gb-pass-1.glsl
      shader2 = shaders/gb-pass-2.glsl
      shader3 = shaders/gb-pass-3.glsl
      shader4 = shaders/gb-pass-4.glsl
      
      scale_type0 = "viewport"
      scale0 = 1
      
      scale_type1 = source
      scale1 = 1
      
      scale_type2 = source
      scale2 = 1
      
      scale_type3 = source
      scale3 = 1
      
      scale_type4 = source
      scale4 = 1
      
      filter_linear0 = false
      filter_linear1 = false
      filter_linear2 = false
      filter_linear3 = false
      filter_linear4 = false
      
      textures = COLOR_PALETTE;BACKGROUND
      COLOR_PALETTE = resources/sample-palettes/gbp-palette.png
      COLOR_PALETTE_linear = false
      BACKGROUND = resources/sample-bgs/paper-bg.png
      BACKGROUND_linear = true
      
      M 1 Reply Last reply 1 Feb 2017, 20:47 Reply Quote 2
      • M
        mediamogul Global Moderator @edmaul69
        last edited by mediamogul 2 Jan 2017, 20:52 1 Feb 2017, 20:47

        @edmaul69

        Chez swanky!

        This is one of the most impressive shaders I've seen. Does it affect performance at all?

        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

        E 2 Replies Last reply 1 Feb 2017, 21:09 Reply Quote 0
        • E
          edmaul69 @mediamogul
          last edited by edmaul69 2 Jan 2017, 21:50 1 Feb 2017, 21:09

          ignore this.

          1 Reply Last reply Reply Quote 0
          • E
            edmaul69 @mediamogul
            last edited by 1 Feb 2017, 21:10

            @mediamogul also it does not cause slowdown. it is nice. i am glad he brought this to my attention.

            1 Reply Last reply Reply Quote 0
            • E
              edmaul69
              last edited by 1 Feb 2017, 21:45

              im not sure how the code was originally but this looks good on the pi but doesnt seem as nice as the pics you posted. can you post the contents of the shader you have?

              T 1 Reply Last reply 1 Feb 2017, 22:39 Reply Quote 0
              • T
                Tasio @edmaul69
                last edited by 1 Feb 2017, 22:39

                @edmaul69 This shader is included with the RetroArch but the one in the retropie is different.
                The good looking is this https://github.com/RetroPie/common-shaders/blob/master/handheld/gameboy/gb-shader.glslp

                works fine on windows, click for more quality
                0_1485988703954_gb shader.png

                E 1 Reply Last reply 1 Feb 2017, 22:46 Reply Quote 0
                • E
                  edmaul69 @Tasio
                  last edited by edmaul69 2 Jan 2017, 22:55 1 Feb 2017, 22:46

                  @Tasio and i cant get the grid with the settings that way. i had to change shader 0 to dot.glsl. no clue how to get the grid otherwise. but even this way is still better than the previous options on the pi. if i knew how to edit a .glslp file i would.

                  1 Reply Last reply Reply Quote 0
                  • D
                    Darksavior
                    last edited by 2 Feb 2017, 03:41

                    @edmaul69 Thanks. I tried your shader config but unfortunately, besides not looking that great, it makes the games so slow that they're unplayable.

                    E 1 Reply Last reply 2 Feb 2017, 09:17 Reply Quote 0
                    • E
                      edmaul69 @Darksavior
                      last edited by edmaul69 2 Feb 2017, 10:33 2 Feb 2017, 09:17

                      @Darksavior i am aware. i was not happy with any shader for the gameboy. every overlay i have seen arent any good because they arent pixel accurate placed lines. i made an overlay specific to my screen resolution. for these to lookany good they have to be specific to the resolution size. not as good as that shader but i think its way better than anything on the pi at the moment for gameboy. if you are on a small device you will have to click on the pic to enlarge it to see how it really looks. i will settle on this for the time being. plus overlays have no slowdown. if you like it any i can make it in whatever resolution you are using. @mediamogul i would love your opinion or critique on this. Ive also played with rounding the corners a little but it doesnt display properly when i created this image since i just took a screenshot and then slapped the overlay on top of it since overlays dont appear in screenshots.

                      alt text

                      M 1 Reply Last reply 2 Feb 2017, 15:15 Reply Quote 0
                      • M
                        mediamogul Global Moderator @edmaul69
                        last edited by 2 Feb 2017, 15:15

                        @edmaul69

                        I think the overlay is a good compromise that still looks nice. Sure, it isn't as as authentic as the shaders in question, but since they're just too much for the Pi to handle, it's great to have this as an option.

                        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                        E 1 Reply Last reply 2 Feb 2017, 18:05 Reply Quote 0
                        • E
                          edmaul69 @mediamogul
                          last edited by edmaul69 2 Feb 2017, 22:48 2 Feb 2017, 18:05

                          @mediamogul can you do me a favor and take a 1080p screenshot of in game play of super off road not using horizontal stretching? I dont have a 1080p tv until i move back home 3000 miles away at the end of this month.

                          I wish those shaders worked. I absolutely love them. That mario pic just shows pure awesomeness. Its cool that it actually squares up all of the pixels because there are 4 different size pixels on the pi.

                          M 1 Reply Last reply 2 Feb 2017, 18:50 Reply Quote -1
                          • M
                            mediamogul Global Moderator @edmaul69
                            last edited by 2 Feb 2017, 18:50

                            @edmaul69

                            Here you go...

                            https://s28.postimg.org/okri4npy3/Super_Off_Road_U_170202_133843.png
                            https://s28.postimg.org/c4usawwm3/Super_Off_Road_U_170202_133823.png

                            RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                            E 1 Reply Last reply 2 Feb 2017, 22:11 Reply Quote 0
                            • E
                              edmaul69 @mediamogul
                              last edited by edmaul69 2 Feb 2017, 22:20 2 Feb 2017, 22:11

                              @mediamogul here you go. this is the green one to test. once you let me know if it is aligned right i will start a new thread. let me know if i need to move a pixel to the left or right. look along the edges of the black blocks. if you see a thin pixel line of the background color i need to fix that by shifting one pixel to the right or left. i may need to thicken the line too if it is too thin. i have full instructions for anyone testing it out. these lines of code go in your /opt/retropie/configs/gb/retroarch.cfg file:

                              input_overlay = /opt/retropie/configs/all/retroarch/overlay/"NameOfGreen1080Overlay".cfg
                              input_overlay_enable = true
                              input_overlay_opacity = 0.800000
                              input_overlay_scale = 1.000000
                              

                              then you need to make a config to go with the overlay named the exact same as the overlay and put this info in it:

                              overlays = 1
                              overlay0_overlay = "NameOfGreen1080Overlay.png"
                              overlay0_full_screen = true
                              overlay0_descs = 0
                              

                              then you need to name the overlays .png file the same as all the other info. then stick the overlay and the config file in /opt/retropie/configs/all/retroarch/overlay/

                              alt text

                              M K 2 Replies Last reply 2 Feb 2017, 23:04 Reply Quote 0
                              • M
                                mediamogul Global Moderator @edmaul69
                                last edited by 2 Feb 2017, 23:04

                                @edmaul69

                                I'll set it up a little later this evening and let you know how it goes.

                                RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                E 1 Reply Last reply 2 Feb 2017, 23:07 Reply Quote 0
                                • E
                                  edmaul69 @mediamogul
                                  last edited by 2 Feb 2017, 23:07

                                  @mediamogul cool. Thank you.

                                  M 1 Reply Last reply 3 Feb 2017, 04:22 Reply Quote 0
                                  • M
                                    mediamogul Global Moderator @edmaul69
                                    last edited by 3 Feb 2017, 04:22

                                    @edmaul69

                                    Alright, I think it lines up pretty well, but I'll let you be the judge:
                                    https://s29.postimg.org/89hqxpf91/Donkey_Kong_JUE_v1_1_170202_203604.png
                                    https://s29.postimg.org/uzgvqoygl/Donkey_Kong_JUE_v1_1_170202_203637.png

                                    RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                    E 1 Reply Last reply 3 Feb 2017, 05:06 Reply Quote 0
                                    • E
                                      edmaul69 @mediamogul
                                      last edited by 3 Feb 2017, 05:06

                                      @mediamogul any thoughts on how it is playing with it? I just now beat super mario land so it at least inspired me enough to play with it. If you think its good enough (of course nowhere as good as those shaders :( ) i will put together a zip file with a green, gray and black one for several different resolutions and post it on here.

                                      M 1 Reply Last reply 3 Feb 2017, 05:15 Reply Quote 0
                                      • M
                                        mediamogul Global Moderator @edmaul69
                                        last edited by 3 Feb 2017, 05:15

                                        @edmaul69

                                        I played through a few levels of Kong 94 and it didn't seem to skip a beat. I'd say it's good to go. Nice job btw.

                                        RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                                        E 1 Reply Last reply 3 Feb 2017, 05:54 Reply Quote 0
                                        • E
                                          edmaul69 @mediamogul
                                          last edited by 3 Feb 2017, 05:54

                                          @mediamogul thanks. I do like that there isnt any trailing or weird effects you get from a lot of overlays because the pixels dont line up with the overlays. I just wish i had more control of the background color in this emulator with the existing shaders but i have tried and failed. I need to spend more time to get it working right.

                                          1 Reply Last reply Reply Quote 0
                                          24 out of 59
                                          • First post
                                            24/59
                                            Last post

                                          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                                            This community forum collects and processes your personal information.
                                            consent.not_received