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 35.7k 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.
    • edmaul69E
      edmaul69
      last edited by edmaul69

      deleted look at last post

      1 Reply Last reply Reply Quote 0
      • edmaul69E
        edmaul69
        last edited by edmaul69

        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
        
        mediamogulM 1 Reply Last reply Reply Quote 2
        • mediamogulM
          mediamogul Global Moderator @edmaul69
          last edited by mediamogul

          @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

          edmaul69E 2 Replies Last reply Reply Quote 0
          • edmaul69E
            edmaul69 @mediamogul
            last edited by edmaul69

            ignore this.

            1 Reply Last reply Reply Quote 0
            • edmaul69E
              edmaul69 @mediamogul
              last edited by

              @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
              • edmaul69E
                edmaul69
                last edited by

                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 Reply Quote 0
                • T
                  Tasio @edmaul69
                  last edited by

                  @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

                  edmaul69E 1 Reply Last reply Reply Quote 0
                  • edmaul69E
                    edmaul69 @Tasio
                    last edited by edmaul69

                    @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
                    • DarksaviorD
                      Darksavior
                      last edited by

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

                      edmaul69E 1 Reply Last reply Reply Quote 0
                      • edmaul69E
                        edmaul69 @Darksavior
                        last edited by edmaul69

                        @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

                        mediamogulM 1 Reply Last reply Reply Quote 0
                        • mediamogulM
                          mediamogul Global Moderator @edmaul69
                          last edited by

                          @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

                          edmaul69E 1 Reply Last reply Reply Quote 0
                          • edmaul69E
                            edmaul69 @mediamogul
                            last edited by edmaul69

                            @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.

                            mediamogulM 1 Reply Last reply Reply Quote -1
                            • mediamogulM
                              mediamogul Global Moderator @edmaul69
                              last edited by

                              @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

                              edmaul69E 1 Reply Last reply Reply Quote 0
                              • edmaul69E
                                edmaul69 @mediamogul
                                last edited by edmaul69

                                @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

                                mediamogulM K 2 Replies Last reply Reply Quote 0
                                • mediamogulM
                                  mediamogul Global Moderator @edmaul69
                                  last edited by

                                  @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

                                  edmaul69E 1 Reply Last reply Reply Quote 0
                                  • edmaul69E
                                    edmaul69 @mediamogul
                                    last edited by

                                    @mediamogul cool. Thank you.

                                    mediamogulM 1 Reply Last reply Reply Quote 0
                                    • mediamogulM
                                      mediamogul Global Moderator @edmaul69
                                      last edited by

                                      @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

                                      edmaul69E 1 Reply Last reply Reply Quote 0
                                      • edmaul69E
                                        edmaul69 @mediamogul
                                        last edited by

                                        @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.

                                        mediamogulM 1 Reply Last reply Reply Quote 0
                                        • mediamogulM
                                          mediamogul Global Moderator @edmaul69
                                          last edited by

                                          @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

                                          edmaul69E 1 Reply Last reply Reply Quote 0
                                          • edmaul69E
                                            edmaul69 @mediamogul
                                            last edited by

                                            @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
                                            • First post
                                              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.