cansik / processing-postfx

A shader based postFX library for processing.
148 stars 13 forks source link

Would it be possible to make an HDR postfx filter? #31

Closed quinton-ashley closed 2 years ago

quinton-ashley commented 6 years ago

https://learnopengl.com/Advanced-Lighting/HDR

cansik commented 6 years ago

@quinton-ashley I will have a look

quinton-ashley commented 6 years ago

wow! That was fast. Your code looks like it should work but when I tried it out it seems opengl is still rendering the frames in SDR RGB instead of 10 bit BT2020 colorspace YUV444. Does something in the Processing core need to change or do you think this conversion could be done with a shader?

cansik commented 6 years ago

It's not finished yet :) I just added tone mapping and exposure. We need to allocate a new framebuffer with a larger float depth. But I will look into this :)

quinton-ashley commented 6 years ago

ah I gotcha, sounds good. Thank you!

quinton-ashley commented 6 years ago

hey just checking in on you! Have you made any more progress on this? I'm excited if this is possible. The new Windows 10 update now has really solid HDR/WCG support so that might make things easier for you.

cansik commented 6 years ago

@quinton-ashley Yeah I tried out some things, but it is not that easy to allocate this kind of buffer in processing :) Maybe I have time during the summer!

quinton-ashley commented 6 years ago

Sweet!