Mega Bezel Reflection Shader! - Feedback and Updates

I was following along with this the other day, but never replied. Everything worked here for me eventually but I had to set TATE mode to on, not off. I couldn’t see the correct image “with no shader applied” unless I enable TATE mode. Then I can load the shader (I tried MBZ_advanced and standard) and I can use flip core image vertical, core image horizontal, and rotate crt tube in the shader parameters to get it looking correct. (I doubt that it matters, but I’m also running at 2560x1440.) Core is MAME 2003-Plus, which probably does matter…

I don’t get any scanlines in the bezel, though.

1 Like

@HyperspaceMadness Hey Hyperspace, do you know how to fix this?

On RA > Settings > Video my preset is Aspect Ratio 16:9 and Integer Corretion OFF I tried find Rotation on my MAME Core but don’t fint TATE settings for try (MAME Core 2010)

I using MBZ_4_Basic_Border_Guest_DrVenom

2 Likes

@WaffeSS

Is there a specific reason you are using the MAME 2010 core?

@HyperspaceMadness may have some trick up his sleeve, but it seems to me that you may have found a core that doesn’t feed the required information to the shader engine.

It also seems that MAME 2003 & MAME 2003 Plus both also share this symptom.

MAME 2016 and Current work just fine.

3 Likes

@Duimon

Nothing, i use this MAME 2010 because worked fine with my Roms (MAME 2003 or MAME 2003 Plus wont load / start Games on my Retroarch)

Duimon where i find MAME 2016 for RA?

Edit #1: MAME Current can boot fine my roms, let me test now :slight_smile:

Edit #2: Worked fine without any issues, i think i only need small tweaks to make it fit on Overlay (this Overlay not merged with Shader such your Presets Duimon, because it i think i need make manual tweak right?

This is Shader without Overlay

This is Shader with Overlay

2 Likes

Yeah, I think I’ve been using Mame 2016, I think it gives the vertical arcade image as vertical without any core rotation.

The main problem is that when ever the core is trying to do a rotation it rotates the whole viewport (even though you don’t see it, at first you only start to see it when you start drawing stuff in the viewport, this is what you are seeing when you see the distorted frame with extra thick frame on one side and thin side on the other)


Here’s some progress on the Black Cropping

Cropping Off

Cropping only black on

6 Likes

@HyperspaceMadness Thanks for help Hyper, i think i need update HSM because my version don’t have this option called Crop Mode, let me update my version and test this feature :slight_smile:

3 Likes

This hasn’t been released, it’s just a sneak peak at my development copy :wink:

2 Likes

Very nice my friend, very nice. A few months ago I’m sure it was decided auto cropping wasn’t possible. Looks like we have both learned a thing or two in the last year.

Auto Cropping <-------- :exploding_head:

BTW. In these Advanced preset graphics I’ve been working on, the “Source Matte Color” parameter has been invaluable.

2 Likes

From the last few posts I gather that the core I am using actually matters because there is some communication with the shader. I am using FBNeo core for lower input latency, and have just tested a MAME core. MAME works in correct orientation by default, FBNeo need to rotate in the core, as otherwise can’t get the right orientation within the shader parameters only.

But ultimately this all doesn’t seem to matter much as even with MAME, I get the lines through the bezel…

Here’s a post from further up the thread showing working with FBNeo

The lines through the bezel (which are actually all the way across the screen) really seem like they are not coming from the shader. I think maybe it is an old retroarch overlay which has scanlines in it. You can check this by going to overlays and turning it off.

1 Like

Yes turning on Vertical mode in FBNeo is what I meant. So this is how you would also suggest it right? In that case that is what I did all along (Side note, I feel like turning that on vs rotating in RA Video settings has different effects on the shader mask/scanlines - seems to become messy with FBNeo’s Vertical mode).

As for the bezel lines yes that was actually the culprit, many thanks!

1 Like

So you should have vertical mode OFF, and have NO rotation in retroarch video settings.

At this point with no shader the image should be on its side.

Then you load the shader and turn on Rotate in the shader parameters.

If I do that, so ALL rotation parameters off EVERYWHERE (including Vertical OFF in FBNeo), my default image is this. I have to turn Vertical ON (which you seem to state in your own example produces the desired result) and then CRT Rotate on in the shader.

In any case, everything seems to look OK even doing it with Vertical ON, so thanks for the help. Just leaving this here in case it helps anyone else.

1 Like

Nice, will this “autocropping” works on the fly? Some games only have black bars in certain scenarios, like Zelda II from NES. So my question is, when there are no need for cropping will it reverse to no cropping automatically?

1 Like

Yeah it will reverse the cropping automatically, you set how much you want it to possibly be able to crop, then it only crops up to that much when the area is black. Basically it will only ever crop absolutely black stuff

2 Likes

So this setting to choose how much you want to possibly cut is to prevent it from cutting scenes with a lot of black, like Super Mario 64 Intro for example?

2 Likes

Yup, that’s exactly right :smiley:

2 Likes

Hi @HyperspaceMadness

I have a question reg Dual-Screen-3DS__MBZ__2__STANDARD__LCD-GRID

For some reason when I select this preset for 3DS (any available core: Citra or CItra2018) The output appears to be rotated vertically, so the top screen gets cropped instead of the bottom one. Is this intentional?

1 Like

I think the Flip Viewport vertical parameter needs to be on for this one, because Citra flips the viewport vertically (Even if it’s not noticeable).

I need to update the preset with this setting.

1 Like

Not sure If you mentioned the existing toggler. If it was the existing one then here is the result It swapped the screens, however I still can’t crop the “original bottom” screen

Update: Seems like it is possible to Crop the “original bottom” (and restore top screen) with

HSM_CROP_OVERSCAN_LEFT = “40.000000”

HSM_CROP_OVERSCAN_RIGHT = “40.000000”

HSM_DUALSCREEN_2ND_SCREEN_SIDES_CROP = “0.000000”

Maybe you can check if such approach will be suitable for the fix

1 Like