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

Correct for PSX color mapping #34

Open
zole opened this issue May 28, 2022 · 0 comments
Open

Correct for PSX color mapping #34

zole opened this issue May 28, 2022 · 0 comments

Comments

@zole
Copy link
Contributor

zole commented May 28, 2022

From the spec:

The Playstations RGB values aren't linear to normal RGB values (as used on PCs). The min/max values are of course the same, but the medium values differ:

Intensity        PC      PSX
 Minimum          0       0
 Medium (circa)   16      8
 Maximum          31      31

Ie. on the PSX, the intensity increases steeply from 0 to 15, and less steeply from 16 to 31.

I'm assuming that PSX developers would design their textures around this (although maybe not all of them!), but it seems absurd to make users go through that step, so I'm not sure how to apply this part of the spec. Maybe sampled texels should be converted from linear to PSX space, lit/dithered/etc., and then converted back to linear.

@zole zole added the accuracy label May 28, 2022
@zole zole added this to the Hardware Accuracy milestone May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant