shader: crt-hyllian with sharpness hack

Home Forums RetroPie Project Video Output on RetroPie shader: crt-hyllian with sharpness hack

This topic contains 8 replies, has 4 voices, and was last updated by Profile photo of patrickm patrickm 2 years ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #98489
    Profile photo of patrickm
    patrickm
    Participant

    I thought I would share this for those who use 720 displays and like using shaders. This is the “crt-hyllian” shader with the “sharpness hack” option enabled, which removes the blur effect. Enjoy =)

    https://www.dropbox.com/s/k1e9uaqhtpkeaxq/crt-hyllian-sharpness-hack?dl=0

    just add the .glsl extension and drop it in the shader folder.

    #98508
    Profile photo of Floob
    Floob
    Member

    Thanks. I like this.
    I should really update my shaders video with ones based on hyllian.

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

    #98512
    Profile photo of patl
    patl
    Participant

    Yes, I also think that looks really nice.
    Also, because even with your hack the image is still minimal soft an not 100% sharp πŸ˜‰
    The problem is that the image (depending on the game) a little stuttering.
    The best way to realize it, is in Super Mario World 2 on SNES.
    – In generally, if you run just around the area look on blocks or something.
    When you set off the shader, the game runs much smoother.
    – In the beginning, while the island turns.
    – In the first level, in the first cave with the rolling stone.

    If you change the core to Pocket SNES, it is slightly better but still clearly visible.
    With an overlay image and Pocket, SNES Mario World 2 always as fast as if no shader is in use.

    I have overclocked my Pi2 to official max in the config.

    #98513
    Profile photo of Floob
    Floob
    Member

    I’ll do a bit of a comparison soon – although the TV my Pi runs off usually is 720p, so if I go with overlays I’ll need to create some custom ones.

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

    #98520
    Profile photo of InsecureSpike
    InsecureSpike
    Participant

    awesome! thanks man!

    #98521
    Profile photo of patrickm
    patrickm
    Participant

    Yes, I also think that looks really nice.
    Also, because even with your hack the image is still minimal soft an not 100% sharp πŸ˜‰
    The problem is that the image (depending on the game) a little stuttering.
    The best way to realize it, is in Super Mario World 2 on SNES.
    – In generally, if you run just around the area look on blocks or something.
    When you set off the shader, the game runs much smoother.
    – In the beginning, while the island turns.
    – In the first level, in the first cave with the rolling stone.

    If you change the core to Pocket SNES, it is slightly better but still clearly visible.
    With an overlay image and Pocket, SNES Mario World 2 always as fast as if no shader is in use.

    I have overclocked my Pi2 to official max in the config.

    Shaders in general don’t run well at 1080p on the pi, but setting your display to output a lower resolution will add input lag and scaling artifacts. The solution if you want to use shaders with the pi? Buy a 720p display πŸ˜›

    Anyway, glad you like it.

    edit: also, just to be clear, I didn’t come up with this hack- it’s actually a parameter option, but it’s somewhat difficult to edit; you have to edit the .cg version of the file on a PC and convert it to .glsl using a python script.

    #98522
    Profile photo of patrickm
    patrickm
    Participant

    Thanks. I like this.
    I should really update my shaders video with ones based on hyllian.

    It’s one of my favorites and what I would use with the pi if I had a 720p native display.

    The reason this one is so good IMO is because it doesn’t seek to replicate flaws like color bleed that degrade the picture quality, but just those aspects of the CRT which enhanced the picture quality, like the “blending” you got from a composite signal. This was actually used by some graphic artists to create special effects – the force field in sonic the hedgehog is a good example.

    On the pi, everything is a compromise. On a 1080p display the best compromise IMO is to use the scanline overlays, but if I had a 720p native display I would totally go for Hyllian. There are more options to tweak, if you’re interested.

    If I had a more powerful computer, I might opt for crt-royale or crt-easymode with modified settings. I’ve seen some really amazing shots of those shaders in action.

    #98549
    Profile photo of Floob
    Floob
    Member

    In terms of a guide for this one, do you just select that shader, or did you specify a new viewport setting as well etc.. ?
    I think you had this in your original guide, but have deleted it now to show the overlay details instead?

    I guess I could just do a comparison of default settings, plus with this shader chosen? Or were there extra tweaks you wanted in there?

    RetroPie help guides --> https://goo.gl/Yfy8kj
    Please read this before asking for help --> http://goo.gl/eLErnl

    #98551
    Profile photo of patrickm
    patrickm
    Participant

    In terms of a guide for this one, do you just select that shader, or did you specify a new viewport setting as well etc.. ?
    I think you had this in your original guide, but have deleted it now to show the overlay details instead?

    I guess I could just do a comparison of default settings, plus with this shader chosen? Or were there extra tweaks you wanted in there?

    I deleted the original recommendations because I’m assuming that the vast majority of people are using 1080p displays, and shaders are really only good if you are on a 720 display (with the Pi).

    I think for all shaders the best results are had when you use integer scale. This will ensure pixel-perfect scaling and, most importantly, that the scanlines are evenly spaced and the same shape.

    There is also an option to adjust bloom strength and beam width/sensitivity, if you are interested in that.

    I’m actually kind of jealous of those with a 720p display as they’re actually kind of hard to find, now. I was considering buying one for the retropie, but I think it would be cheaper to just buy a slightly more powerful computer like the mini Intels.

    I’ll post steps to editing glsl shaders on the pi a little later- that would make a good video.

Viewing 9 posts - 1 through 9 (of 9 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar