joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.83k stars 383 forks source link

Request to add brightness and contrast adjustments #3461

Open Jkapp76 opened 2 years ago

Jkapp76 commented 2 years ago

Code of Conduct & Contributing Guidelines

Have you checked that no other similar feature request(s) already exists?

Is your feature request related to a problem? Please describe.

This request is not about a bad problem, just a feature to get closer to true hardware.

My true old CGA machine has much more vibrant colors than DOSBox has on my laptop screen.

The red on Castle Wolfenstein and Wheel of Fortune 2nd Edition are mind-blowing on the old CRT monitor and pretty dull on the laptop screen. The colors are thick and glowing.

I'd like some type of color adjustment for DOSBox, maybe just a brightness and contrast would do it. It seems like increasing the contrast would be close.

What you want

I think this feature would allow us to get closer to emulating our true hardware.

Describe alternatives you've considered

I've tried using some color adjustment utilites for windows with no luck.

Additional context

I really love how these games look on the CRT. Even if my CRT isn't perfect I like how it looks with some colors blurred into others and whatever.

Keatah commented 2 years ago

Try the ECE build. It isn't as feature rich as X, but the colors really wowed me on Tempest-2000 from the mid-1990's. A step in the right direction.

BridgeHeadland commented 2 years ago

I see that Castle Wolfenstein uses 4-color palette 0 (red, yellow, green, black background).

The way I see it, the color codes for each single color should be like this, normally:

FF5555/Red = 255

FF5555/Green = 85

FF5555/Blue = 85

FFFF55/Red = 255

FFFF55/Green = 225

FFFF55/Blue = 85

55FF55/Red = 85

55FF55/Green = 255

55FF55/Blue = 85

000000/Red = 0

000000/Green = 0

000000/Blue = 0

Probably, in your laptop's case, the color codes are like this:

FF5555/Red = 252

FF5555/Green = 84

FF5555/Blue = 84

FFFF55/Red = 252

FFFF55/Green = 252

FFFF55/Blue = 84

55FF55/Red = 84

55FF55/Green = 252

55FF55/Blue = 84

000000/Red = 0

000000/Green = 0

000000/Blue = 0

Which reduces the saturation by 8 times (from 240 to 232), and the brightness by 2 times (from 160 to 158). That's the case with my PC, and I think it's due to the graphics card in the device (I'm using Windows 10, by the way), from what I've heard. It's possible I'm wrong, I'm not a computer expert, you know.

Jkapp76 commented 2 years ago

Yes. The colors look very pale on my modern PCs running DOSBox. They look dark and bold on my old CGA computer, very rich.

I sold both of my CGA computers recently or I'd upload screenshots.