Jump to content
  • Advertisement
Sign in to follow this  
_Flecko

Explosions on light backgrounds

This topic is 4710 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've got additive blended particle effects working fine over dark backgrounds using the render state DestinationBlend=Blend.One. Everything looks nice, bright, and detailed. However, on light backgrounds it looks all washed out - I guess the particles blend with the background and become too light. Is there any way to make effects look nice on light backgrounds/get them to blend with each other, but not what's on screen? Edit: haven't figured this out at all yet, but I know a little more now. I learned more about blending states, so I understand why this way doesn't work, I just don't totally understand how to do it better. The issue is that part of what the particle ought to do visually is lighten what's underneath it, but it also is to some extent opaque, so if it is blended with a white background it should darken/color it as well. I can't really think of any blends that represent this. Can anyone help? [Edited by - _Flecko on July 5, 2005 2:43:29 AM]

Share this post


Link to post
Share on other sites
Advertisement
Hi,

maybe this will be better:
SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);

kp



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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!