Opengl circular lighting

Aug 2, 2012 at 8:18pm
I have looked around and found lots of examples involving cone-sized flashlights and shadow handling, but I haven't seen much that simply explains how to create a circular light around the character as they are moving. (Probably easier than I think).

Here is a picture of what I mean http://puu.sh/O1Vl (which is actually the game I am trying to create right now)

I know the basics of opengl lighting but not enough to create something like this, so any help is greatly appreciated.
Aug 2, 2012 at 9:04pm
Use the stencil buffer
Just draw what would be visible
Aug 2, 2012 at 11:42pm
Ok thanks for the advice, will try it out.
(Pretty new to opengl so will have to do some research about it)

Edit: That worked really well, thanks again :D
Last edited on Aug 3, 2012 at 4:14am
Topic archived. No new replies allowed.