Sign in to follow this  
OmarShehata

Lighting newb?

Recommended Posts

OmarShehata    205
I'm writing my game in Lua but I'm using GLSL for my shaders.

So I want to add a little light to my game, but I have little to no knowledge about 2D or 3D lighting. Specular lights, normal maps, ambient occlusions..all that stuff, I have no idea how any of it works.

So before diving into anything, I thought I'd ask if anyone had any good articles about delving into the matter, or a set of articles that explain the theory well. My game is in 2D and the end result that I would like to achieve is something like this:

http://www.youtube.com/watch?v=s2FNf4h6Utg&feature=channel_video_title

or this:

http://www.youtube.com/watch?v=k3BwZAazWTo&feature=relmfu

Any help, general tips and links would be appreciated. Thanks!

Share this post


Link to post
Share on other sites
Ashaman73    13715
Even if your game is 2d, the math behind this kind of lighting is 3d. I would recommend the book [url="http://www.amazon.com/Real-Time-Rendering-Third-Edition-Akenine-Moller/dp/1568814240/ref=sr_1_1?ie=UTF8&qid=1349161532&sr=8-1&keywords=real+time+rendering"]real-time rendering[/url] for all the basic stuff, it is really good and will explain all you need to know about normal mapping. Edited by Ashaman73

Share this post


Link to post
Share on other sites
Radikalizm    4807
[quote name='Ashaman73' timestamp='1349161696' post='4985976']
Even if your game is 2d, the math behind this kind of lighting is 3d. I would recommend the book [url="http://www.amazon.com/Real-Time-Rendering-Third-Edition-Akenine-Moller/dp/1568814240/ref=sr_1_1?ie=UTF8&qid=1349161532&sr=8-1&keywords=real+time+rendering"]real-time rendering[/url] for all the basic stuff, it is really good and will explain all you need to know about normal mapping.
[/quote]

Another vote for real-time rendering here, it's a must-have book for any graphics programmer, beginner or pro

Share this post


Link to post
Share on other sites
OmarShehata    205
[quote name='Radikalizm' timestamp='1349176450' post='4986023']
[quote name='Ashaman73' timestamp='1349161696' post='4985976']
Even if your game is 2d, the math behind this kind of lighting is 3d. I would recommend the book [url="http://www.amazon.com/Real-Time-Rendering-Third-Edition-Akenine-Moller/dp/1568814240/ref=sr_1_1?ie=UTF8&qid=1349161532&sr=8-1&keywords=real+time+rendering"]real-time rendering[/url] for all the basic stuff, it is really good and will explain all you need to know about normal mapping.
[/quote]

Another vote for real-time rendering here, it's a must-have book for any graphics programmer, beginner or pro
[/quote]

Wow, that book looks awesome. And it's written by the people that made LBP? (Or is that just a happy coincidence that the character is on the cover? :P)

I'll definitely check it out. Anymore links/articles would be appreciated! Thanks!


e to go through it eventually, but for now,

I'll definietly ch

Share this post


Link to post
Share on other sites
Radikalizm    4807
[quote name='OmarShehata' timestamp='1349198786' post='4986106']
And it's written by the people that made LBP?
[/quote]

I'm not sure whether any of the authors actually worked on LBP, I know Naty Hoffman has worked for SCEA for a while but I have no idea which projects.

I have a whole bunch of graphics articles lying around, but they're mostly for very specific topics

Share this post


Link to post
Share on other sites
OmarShehata    205
[quote name='Radikalizm' timestamp='1349203266' post='4986144']
[quote name='OmarShehata' timestamp='1349198786' post='4986106']
And it's written by the people that made LBP?
[/quote]

I'm not sure whether any of the authors actually worked on LBP, I know Naty Hoffman has worked for SCEA for a while but I have no idea which projects.

I have a whole bunch of graphics articles lying around, but they're mostly for very specific topics
[/quote]

You can go ahead and post a few, I'll need them eventually.

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