Sign in to follow this  
jeffkingdev

Average Luminance & HDR

Recommended Posts

AliasBinman    855
Well this depends on how you render the scene in the first place. Typically games will now render in linear light space to a fp16 backbuffer. This is then subject to exposure control and tonemapping to get this unbounded HDR image into an LDR range for display. So in this case yes the values can go above 1

However if you only render to an LDR format in the first place (some games still do this) then values typically won't be above 1.

Share this post


Link to post
Share on other sites
MJP    19754
If you're calculating an average luminance value for the purpose of exposure control, then yes the value can most definitely be higher than 1. You'll want to use a floating-point format like R16_FLOAT or F32_FLOAT.

Share this post


Link to post
Share on other sites
jeffkingdev    787
Thanks Guys!

1 More question, I didn't feel right making a new post.

When I add bloom to my HDR, it ends up making the bloom parts all white. Is that correct? Shouldn't it retain the color of what it's 'blooming'?

When you do it like finalColor = colorFromToneMapper + bloom; (bloom just adds on top making finalColor over 1, which will ultimately be clamped at 1.

Am I missing something here??

Thanks
Jeff.

Share this post


Link to post
Share on other sites
CryZe    773
Bloom from a physical perspective is just the lenses not being perfectly clear. They tend to scatter a small amount of the incoming light while it's traversing through the lense. The tone mapper from a physical standpoint is the retina of your eye or the image sensor of a camera, which receives the light after it travelled through the lenses and converts it into clamped electrical impulses.

Conclusion: You have to tonemap the high dynamic range image that already has bloom and other lens flares applied to it and not the other way round.

Overall, it's still perfectly fine to have a white point, where everything brighter than this white point is just clamped to white. Edited by CryZe

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this