DerKoun / bsnes-hd

bsnes fork that adds HD video features
GNU General Public License v3.0
624 stars 35 forks source link

transparency effects when scaling #117

Open InanimateCrbnRod opened 1 year ago

InanimateCrbnRod commented 1 year ago

I don't know if this is an issue or expected behavior. When I turn off mode 7 hd scaling and I have the "simulate blur" option turned on, the effect works as intended and things like the water in super mario world are transparent. The effect is even better when adding something like the jinc2 shader on top of it. However if scaling is on, the transparency is now checkerboarded. Jinc2 and other de-dithering shaders have a harder time counteracting this as well when hd mode 7 scaling is on. is there a solution to this or is this just the expected behavior? Thank you

InanimateCrbnRod commented 1 year ago

okay so the problem only happens when hd mode 7 is active, I'm just a casual user so forgive me if I'm misunderstanding anything, but what appears to be happening is that because it increases the resolution, doubling the pixels, the "simulate blur" option is still doing the math at og resolution. it needs to scale with the mode 7 setting. Is there any way to make this happen? I love the way games look with the hd mode factor at 480 (2x), but no matter what shaders I use I can't get transparency effects to work unless I disable the scaling. Thanks in advance!

DerKoun commented 1 year ago

BLur emulation and shaders can't handle the scaling (which is pretty much integer nearest neighbor for non-mode7 elements) in most cases. I have ideas to help with that, but those won't work until the GPU fork is established, which won't be soon.