Sign in to follow this  

Multiple Lights Additive blend - Scene gets Too Bright

This topic is 3591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I rendered a scene with around 4 lights and additive blending, and if the 4 lights shines on certain region that overlaps, example a ligh layout similar to stadium lights, the scene get very whitish - overly bright at the criss cross region of where the lights falls. The region get so bright that part of the shadows no longer appears. http://img168.imageshack.us/img168/4861/scenezl4.png Is this normal?

Share this post


Link to post
Share on other sites
In a fixed point frame buffer (A8R8G8B8 as the most common) - yes. Multiple overlaping lights accumulate lighting results and exceed the framebuffer (0.0 - 1.0) limits. All results exceeding 1.0 are clamped to 1.0 and you get white as a final result.

You can scale your lighting result before writing it to the render target, but you will get overdarkened image in oppose to overbrightened. You can use a larger precision render target (16+ bit per component - fixed or floating point) and then do something with final results before displaying. Read about the HDR rendering...

Share this post


Link to post
Share on other sites

This topic is 3591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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