Replies: 4 comments 24 replies
-
Yes, this is supported. If you want to fully debug/dump the generated shaders, the most flexible way to do this is:
The resulting Of course, for best results, you'll also want to run a separate HDR signal analysis pass using pl_shader_detect_peak, and optionally a HDR feature extraction pass. Edit: Of course, I should point out, that if you're already using OpenGL, and you're comfortable with having libplacebo call into your GL context directly, you can vastly simplify the process of mapping all textures etc by just using a |
Beta Was this translation helpful? Give feedback.
-
Can you explain to me how to get and pass the LUT textures into opengl from libplacebo when the pl_shader_color_map_ex()'s pl_color_map_args' state is set and the tone mapping function is pl_tone_map_spline or similar? It seems it creates some LUTs, but I cannot figure how to add them to my code or how to pass them on to the GL backend. If you have sample or test code that you can point me to, it would be ideal. I apologyze for my dumb questions, but I am still new to libplacebo's great API. You should be really proud of yourself @haasn! You created a marvelous library! |
Beta Was this translation helpful? Give feedback.
-
Never mind. I figured it out by myself. I had to use the pl_tex* functions to extract the LUT data. |
Beta Was this translation helpful? Give feedback.
-
I have some questions: Why does libplacebo bt2446a seem to use MaxDML instead of MaxCLL for default tone mapping upper limit? In my opinion it should use MaxCLL because that is the highest luminance limit of the content, MaxDML is not used so it reduces the effective tone mapping performance for a range that is not used. Why does libplacebo use 203.0 nits by default for max limit for SDR tonemapping instead of standard 100 nits? Maybe it works better, but I have the doubt... Is it because it takes 0.2023 nits as minimum limit for SDR aswell? 203/0,2023 = ~ 100 units of dynamic range.. What default values does Thank you for this wonderful library. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am investigating using libplacebo for tonemapping HDR to SDR, as it seems the most capable library.
However, I need to integrate it with a custom pipeline using OpenColorIO and OpenGL.
Is there any way to output the shader code created by libplacebo into its own function (or to see what it does behind the scenes for debugging), like in OpenColorIO, so that my OpenGL wrapper code calls (in pseudo code):
?
Beta Was this translation helpful? Give feedback.
All reactions