Jump to content
Sign in to follow this  
  • entries
    223
  • comments
    165
  • views
    79680

Why? Why dost thou torment me so?

Sign in to follow this  
Stephen R

199 views

I got multiple coloured lights working today - kind of. I seem to have run into quite a significant hurdle though. I can't seem to get the system to render multiple layers of objects well.

I'm working off the 2d soft shadows article here on GDNet which uses the alpha channel to store the light values before it renders the actual geometry on top of that. I can't quite seem to get the system to both blend the geometry correctly when using multiple layers of geometry as well as blending the multiple render passes. The only solution I can think of is to render all the geometry to a texture once, fully bright without any lighting. Then render each light using the target texture as the geometry source. I should be able to get the effect I want but it will result in a bit of a performance hit because I'm going to have to change the render target twice per scene - hopefully it'll still be fast enough. If its done well it might even be faster than the other way.

So I'll get that working tomorrow.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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
  • 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!