Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Updated crt-pi shader



  • I've fixed a minor bug I found in the crt-pi shader and produced a version for those playing vertical games on horizontal screens. Details in this post on the Libretro forums.

    I've noticed there has been some confusion on various forums about which is the most up to date version of these shaders to use. In future I'm going to release any updates onto the Libretro site only. It makes sense to have one place people can go to and know they are getting the definitive version and the Libretro site seems the best place for that.

    dave j



  • @davej Thanks Davej and Bravo! I am really liking the results.



  • @davej Thanks for the update!

    I guess the best way to apply these would be on a per rom cfg basis? (unless the vertical and horizontal games were split into their own folder/emulator settings)
    If thats the case, a script could potentially parse a mame .dat file that contained the rom orientation then output a .cfg file with the correct .glslp file referenced for each game?


  • Global Moderator

    @Floob said in Updated crt-pi shader:

    @davej Thanks for the update!

    I guess the best way to apply these would be on a per rom cfg basis? (unless the vertical and horizontal games were split into their own folder/emulator settings)

    this is what i've been doing! eg:
    donpachi.zip.cfg

    video_shader = "/opt/retropie/emulators/retroarch/shader/crt-pi-vertical.glslp"
    video_shader_enable = "true"
    
    # Never save-on-exit after an override config
    # or the override will make into the core config.
    config_save_on_exit = false
    

    If thats the case, a script could potentially parse a mame .dat file that contained the rom orientation then output a .cfg file with the correct .glslp file referenced for each game?

    great idea! i guess you could build a specific dat/gamelist using romlister, of all vertical games. i don't think the dats themselves hold information about the screen orientation (?)

    i'll update the common-shaders repo with the new shaders soon. i have a few ideas for variants that i'm bouncing around the other thread.



  • @dankcushions Thats a good point - yes, I dont think it is in the mame dat.
    From memory I think romlister has a very flexible .bat editor - so it could generate these .cfg itself!

    It is bugging me I cant remember exactly how romlister/mame etc.. know which game has what screen orientation.


  • Global Moderator

    i think it's in the various files you merge in to the dat via romlister, to add metadata to help searching. eg controls.dat/xml has a 'cocktail' field, which seems to be set to true for vertical games: http://controls.arcadecontrols.com/

    however, the file doesn't seem to be complete. eg, i couldn't find donpachi listed at all, which is definitely a vertical game. might be a start, though!



  • @Floob said in Updated crt-pi shader:

    I guess the best way to apply these would be on a per rom cfg basis? (unless the vertical and horizontal games were split into their own folder/emulator settings)
    If thats the case, a script could potentially parse a mame .dat file that contained the rom orientation then output a .cfg file with the correct .glslp file referenced for each game?

    If you are going to implement this keep in mind that people who have vertically oriented screens need the opposite shaders to those who have horizontal screens. An option to use the opposite shaders would be needed for those people.


  • Global Moderator

    the shaders in retropie have been updated to these latest versions. here's some pretty screenshots:

    crt-pi
    alt text

    crt-pi-curvature
    alt text

    crt-pi-vertical
    alt text

    crt-pi-curvature-vertical
    alt text

    reinstall retroarch via retropie-setup to get the new ones.

    PS @davej - i added pre-modified curvature versions with the mask + curve + scanlines turned on. hope that's ok? can always remove if not :)



  • Just to clarify will the new shaders make their way into the RetroPie distribution package or will we need to download and manually install them from here on out?


  • Global Moderator

    @Riverstorm said in Updated crt-pi shader:

    Just to clarify will the new shaders make their way into the RetroPie distribution package or will we need to download and manually install them from here on out?

    they are in. a reinstall of retroarch would get them, or i presume the just released version of retropie :)



  • @dankcushions said in Updated crt-pi shader:

    @Riverstorm said in Updated crt-pi shader:

    Just to clarify will the new shaders make their way into the RetroPie distribution package or will we need to download and manually install them from here on out?

    they are in. a reinstall of retroarch would get them, or i presume the just released version of retropie :)

    Oh, thanks Dank, I didn't see the new release. This will give me something to setup over the holiday weekend! ;)


  • administrators

    @Riverstorm would need to install retroarch from source if the shader was updated after the last binaries were built. I will split out the overlays and shaders for retropie 4.0 so they can be updated independently


  • Global Moderator

    oh, careful installing retroarch from source as it currently breaks mame2003! i'm trying to fix that at the moment.. hopefully tomorrow



  • @BuZz said in Updated crt-pi shader:

    @Riverstorm would need to install retroarch from source if the shader was updated after the last binaries were built. I will split out the overlays and shaders for retropie 4.0 so they can be updated independently

    Thanks Buzz, shaders made me a Libretro core convert. It's like art in motion on my screen, simply beautiful! Have a great weekend! ;)

    @dankcushions Thanks Dank for the heads up!



  • Is anyone using the shader with Atari 2600 (lr-stella) games? It looks great to me with MAME, FBA, NES and SNES but the Atari seems off or touch to blurry. I've been using River Raid as my test game and looking at the word FUEL and the text on the bottom it looks like it goes from blue to white with slight lighter shading until it soft blurs out to much and not really artifact-ish. Could the rendering engine of Stella be creating a different effect with the Shader?



  • @Riverstorm is your mask type set to 0 in the config file?



  • @Riverstorm The Atari 2600 has a very low horizontal resolution. By default, crt-pi just uses linear filtering horizontally - which, in combination with the low resolution, is what is causing it to look blurry. You can make it sharper by uncommenting the SHARPER line so it reads.

    #define SHARPER



  • @davej said in Updated crt-pi shader:

    @Riverstorm The Atari 2600 has a very low horizontal resolution. By default, crt-pi just uses linear filtering horizontally - which, in combination with the low resolution, is what is causing it to look blurry. You can make it sharper by uncommenting the SHARPER line so it reads.

    #define SHARPER

    Perfect! That was the ticket! Is it best to duplicate the files to accommodate the Atari Shader? I duplicated crt-pi.glslp and crt-pi.glsl adding -atari to the name. Then modified the shader 0 line to point to the newly named glsl while uncommenting #define SHARPER or how are people doing per emulator tweaks.

    Should I do anything with the mask or leave as is?



  • @Riverstorm said in Updated crt-pi shader:

    Perfect! That was the ticket! Is it best to duplicate the files to accommodate the Atari Shader? I duplicated crt-pi.glslp and crt-pi.glsl adding -atari to the name. Then modified the shader 0 line to point to the newly named glsl while uncommenting #define SHARPER or how are people doing per emulator tweaks.

    That sounds a reasonable approach. I tend to use just one shader unless I'm working on them so I'm not the best person to ask.

    Should I do anything with the mask or leave as is?

    It's pretty much an aesthetic decision as to which mask to use so whichever you think looks best.



  • @davej said in Updated crt-pi shader:

    That sounds a reasonable approach. I tend to use just one shader unless I'm working on them so I'm not the best person to ask.

    Thanks Dave, I didn't want to mess up how MAME and other emulators looked so I duplicated it with the tweak for Atari but out of curiosity would leaving #define SHARPER on effect how the other emulators look or would they still be the same?


Log in to reply
 

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.