Jump to content
  • Advertisement
Sign in to follow this  
littlekid

Multiple Lights Additive blend - Scene gets Too Bright

This topic is 3809 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
Advertisement
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
yes better precision is ideal
another simple method is instead of using blending of ONE ONE
use ONE ONE_MINUS_SRC_COLOR

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!