Advertisement Jump to content
Sign in to follow this  
Quat

Hdr Issue with Blending

This topic is 1780 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

Before when I had a LDR system, I blended my foam particles on top of water like so:

 

F = SrcColor + (1 - SrcColor)*DstColor

 

This prevented the color from getting too bright since I wanted a white foam effect, not a bright "magic" effect.  This is coming out too dark after tonemapping.  Since the SrcColor is a "fake light" value from the texture, I tried scaling its values up to make it "HDR" but that breaks the (1 - SrcColor) since SrcColor can now be greater than 1.  What is the proper way to do this with HDR and tonemapping?

Share this post


Link to post
Share on other sites
Advertisement

Lights are additive, so why not just use additive blending ?

 

F = SrcColor + DstColor

 

If you still want to dim the background, use the alpha channel.

 

F = SrcColor + (alpha*DstColor)

 

Calculate a reasonable alpha value between 0..1 to simulate the dimm factor.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!