Sign in to follow this  
6677

2d lighting

Recommended Posts

I've been working my way through a few XNA tutorials recently and think its finally come to the time where I can actually start a project. I'm not particularly new to programming, hadn't used C# before XNA but have used python, VB.net and a little ruby and lua before but never used graphics before XNA (if you ignore GUI's with winforms and messing around with pygame when your not really ready to go there). I have a few small projects in mind (1 may well be able to be made into a larger project aswell) but one of them requires some form of lighting in it, this is something I've not ever used before.

Has anyone got any links to good resources on 2d lighting techniques?

The only thing I've thought of so far is the old pokemon GBA games where they covered the screen with black with a small hole in the middle for the player, I guess that might work and would be easy enough to code but really I want to do some proper lighting.

Any help much appreciated.

[spoiler]Not needed as much. To help improve my XNA skills I do already have another project to work on short term (mate challenged me to clone a simple game maker game that he made in XNA), the projects I want some lighting for I'm still pinning down a few details first and making a few little demo's of little parts before I decide which one to plunge into.[/spoiler] Edited by 6677

Share this post


Link to post
Share on other sites
There a couple XNA libraries for dynamic lighting/shadows, one is Krypton [url="http://krypton.codeplex.com/"]http://krypton.codeplex.com/[/url] I only know of its existance, I've never personally used it.

Here is an article describing one technique: [url="http://www.gamedev.net/page/reference/index.html/_/technical/graphics-programming-and-theory/dynamic-2d-soft-shadows-r2032"]http://www.gamedev.n...t-shadows-r2032[/url]

Here's another technique using XNA and shaders: [url="http://www.catalinzima.com/2010/07/my-technique-for-the-shader-based-dynamic-2d-shadows/"]http://www.catalinzi...mic-2d-shadows/[/url]

I thought there used to be another good article on 2d lighting on this site, it was a bit older but may have been useful, unfortunately I can't seem to find it.

Share this post


Link to post
Share on other sites
Thank you, all 3 of those links appear very useful.
I'll probably demo with both of the XNA related links and see which works better for me

+1'ed

Share this post


Link to post
Share on other sites

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