I am wanting to add the crt-geom-curve.cg shader to Hyllian’s newest shader…
but would like to alter the curved edges and rounded corner as i fell they are too sever, what lines do i need to be looking at to make these slightly shallower???
I am wanting to add the crt-geom-curve.cg shader to Hyllian’s newest shader…
but would like to alter the curved edges and rounded corner as i fell they are too sever, what lines do i need to be looking at to make these slightly shallower???
I broke cgwg’s CRT down to one effect per shader in higan’s glsl format. You could combine the corner and curvature bits into one shader and set it after Hyllian’s.
Here’s the bit that makes the corners round: https://github.com/hizzlekizzle/quark-s … /corner.fs
and here’s the curvature bit: https://github.com/hizzlekizzle/quark-s … rvature.fs
Without the oversampling, though, the image will have a serious moire problem.
Hmm have added both of those and saved as curved.cg and then selected that as the 2nd shader after Hyllian’s shader, but it doesnt appear to work and as a result stops Hyllian’s shader from working. Any ideas?
ah, yeah, it’s significantly more involved than that. That was just intended to give you some resources, assuming you already knew what you were doing.
It’s actually pretty hard to get individual effects out of cgwg’s CRT shader because every function depends on everything else, basically. I was planning to paste the old, simpler barrel distortion function here, but it doesn’t seem to work anymore for some reason o_O
yeah I have zero experience of building or even editing the shader files, I leave that to the experts. I’ll ask Hyllian if he could add it as an option in his next update
Based on your other posts, it seems you don’t actually want the curvature, which distorts scanlines. You would probably be best served by just making an overlay in photoshop/GIMP that puts a round edge on the corners.
Hmmm, i would know how to go about doing that, there a guide about anywhere for making overlays for retroarch?
Here’s a quick stab at it: http://www.mediafire.com/download/xfesm … verlay.zip
unzip it and then go into retroarch, go to RGUI and go to ‘overlay settings.’ choose the border.cfg.
Ah thanks. Yeah thats kind of what im after, maybe not such big rounded corners and a very slight arch/bow on each of the side of the screen. Kind of like the bezel shape of big10p’s Arcade bezels…
http://ouyaforum.com/showthread.php?955 … IY-artwork
Can i ask how you made that overlay please, so i can learn how to do it?
I have grabbed the screen mask.png from big10ps zip file (attached) and renamed it to border.png, but when i load retroarach using this i get a completely white screen, i try altering the opacity which starts to show retroarch RGUI but also removes the screen mask edges, any ideas?
Yeah, retroarch just puts the overlay on top of the game, so you need transparency in the overlay image to see the game underneath. Try this version: http://i.imgur.com/GRwTNJi.png
I did a blog post awhile back that explains how to make your own: http://filthypants.blogspot.com/2013/10 … rders.html
Excellent, that more or less spot on, thanks!!!
How did you make the center of that png transparent then?
Ok i have slightly edited the image and increased the canvas size, to allow for more scaling via the overlay options in RGUI if you want to add more over or under scan effect to the image, i have also made a vertical bezel as well. See attached zip file
Would be really good if these could get added to the next release of Retroarch!???
In GIMP, there’s an option under the ‘color’ menu called ‘color to alpha.’ I used it with white as the color.
I can add it to the common-overlays repo. I’m not sure if all of those get shipped with RetroArch, but they’re easy to download separately from there, if not.
Hmm i cant seem to get that to work with the attached bezel frame, as soon as you ‘color with alpha’, you can faintly see the chequered pattern behind the frame, so its making the frame slightly transparent…
Color to alpha does exactly what it says: it takes all of a color and turns it to transparency. So, if you tell it to turn black to alpha, the rest of the image will become as transparent as it is black. So, in this case, you would want to use the magic wand tool to select the non-bezel part and then use color to alpha, that way it won’t affect the bezel.
Here’s the result: http://i.imgur.com/tQ3XLFi.png
strange think i have noticed. When using the MAME 2014 core, it doesn’t appear to show the bezel any ideas why this happens?
my first guess would be that it’s a weird scale thing and I would try messing with the overlay scale to see if it’s just outside of your monitor’s visible range
Thats the first thing i throught of and tried to lower the scale of the overlay but didnt make it appear. Any other ideas why it wouldnt show up when using the MAME core?
Interesting: looks like overlays just straight-up don’t work with the MAME core. I’ll try to look into it.
ok thanks