How to use HDR? It doesn’t used in any of samples and I can’t find it’s mentions in documentations either.
Is it just:
renderpath.Append(cache.GetResource("XMLFile","PostProcess/BloomHDR.xml"));
renderpath.Append(cache.GetResource("XMLFile","PostProcess/AutoExposure.xml"));
(or just second one), or there is something else I should do?
What is the bit depth of render buffers? I guess, it’s 8bit per channel. Can I change it?
Is it possible to enable sRGB conversion on write for backbuffer and rendertargets from script(or XML)?
Thank you. So, there is nothing aside adding renderpath commands. But is there a way to rise buffers color precision? I’m getting some banding artifacts, when it’s too dark, and it become much worse, when I’m trying to use linear space.
Converting colors to gamma space before writing into framebuffer is one way to fight banding. The other would be to rise buffer’s color depth from 8 to 16 or even to floating point, and it’s preferable, I’m sure, because 8bit is too narrow range for HDR.
Is it easy to do? What place in source I should look into?
So you want to load all textures as sRGB? Then you need an XML tag for textures that don’t need conversion(like NormalMaps), and you will end up messing with tags anyway.
[quote=“Bananaft”]Is it just:
CODE: SELECT ALL
? ?renderpath.Append(cache.GetResource(“XMLFile”,“PostProcess/BloomHDR.xml”));
? ?renderpath.Append(cache.GetResource(“XMLFile”,“PostProcess/AutoExposure.xml”));
(or just second one), or there is something else I should do?[/quote]
Well, I figured, that there is also:
This option sets frame buffers to higher bit-depth. And Eliminates banding problem.
I played around with HDR a bit, and now have a question: Why auto exposure range is so narrow? By the look of it, it seems like 0.5-2.0, or even smaller. I’ve tried to change AutoExposureLumRange in AutoExposure.xml, but it only made a difference if I set it even narrower. Setting wider values like 0.001 - 1000 had no effect.
Then I made my own manual exposure pass, and it worked really well, buffer precision was so good, I was able to change exposure by the order of tens thousands!
So am I missing something? How to make auto exposure to work at higher range?