Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Suggestion: Shaders and gamma setting. #146

Open
TsukiZero opened this issue May 7, 2024 · 5 comments
Open

Feature Suggestion: Shaders and gamma setting. #146

TsukiZero opened this issue May 7, 2024 · 5 comments

Comments

@TsukiZero
Copy link

Particularly like the ones used in the mGBA emulator, specially the GBA Color shader by Pokefan531 and hunterk, as it makes the games less harsh on the eyes when playing on a TV. Or at least a Gamma setting. Here's an example of the difference it would make:
image
No changes

image
1.5 Gamma

image
GBA Color shader

image
GBA Color shader + 1.5 Gamma

@RobertPeip
Copy link
Member

Did you miss that the core does offer comparable options already?

In the OSD -> Audio & Video -> Modify colors

@TsukiZero
Copy link
Author

They are too static as they are, and again there's the lack of Gamma option, so there is no way to simulate the dark screen the GBA has. Couple that with GBA games that were designed with the dark screen in mind but forgot to account for the possibility of Gameboy Player or playing on TV and then not giving the brightness options in game. Some games account for that (Zelda and Summon Night Swordcraft Story, Doom, Duke Nukem...), but the majority doesn't.

And even Nintendo acknowledged that, as evidenced the Nintendo Switch Online having a darkening filter always active on GBA games that actually makes them look real nice.

@RobertPeip
Copy link
Member

There are different brightness options and color shader options, all of which will also make the image darker, so i don't see why you would say that there is no way of simulating the darker screen?

The shader options even include the gamma applied in numbers (2.2, 1.6 and 1.4).

grafik

@TsukiZero
Copy link
Author

Watched someone try to look for a good color filter in the available options for their DKC2 playthrough and none of them looked like they had gamma applied at at all, just lowered color/saturation.

@RobertPeip
Copy link
Member

The gamma is present here:

https://github.com/MiSTer-devel/GBA_MiSTer/blob/master/rtl/gba_gpu_colorshade.vhd#L31-L56

Where each color valuie (0-31, 5 bits) maps to a 10 bit value depending on the gamma, then after the "shader" is converted back.

If you want it different or if it's not good enough for you, you can try to set different values there, maybe you even get some from mGBA, the code should be public.

As the code does indeed apply gamma, I have no clue what you expect otherwise, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants