alvr-org / ALVR

Stream VR games from your PC to your headset via Wi-Fi
MIT License
5.51k stars 488 forks source link

feature request: Configurable color space #2426

Open nowak-pl opened 1 month ago

nowak-pl commented 1 month ago

Currently ALVR sets color space to DCI-P3 in client. https://github.com/alvr-org/ALVR/blob/4d0d0ce59ac6ffe34b4e19f5fc8bfe25f6ab8202/alvr/client_openxr/src/lib.rs#L245

It would be nice to have selectable color space in streamer because content authored in Rec. 709 or sRGB doesn't look the best when expanded to P3 without proper conversion and then clipped to HMD LCD panel native color space.

zmerp commented 1 month ago

We are limited by the codec standards. It is best not to needlessly change the color space before encoding because that will exacerbate color aliasing (banding).

Or I may be misinterpreting your question. We could add an option on the streamer to instruct the client to use a specific color space.

nowak-pl commented 1 month ago

I'm only talking about sending to client which color space should it use in set_color_space call, no conversions on either end.

zmerp commented 1 month ago

Yeah it can be done. There is a openxr extension to do that. I'll accept PR to implement it.