[OpenLayer] Dynamic lighting & shadows
I was successful in creating a flashlight-like effect in Allegro using _getpixel(), but how could something like this be done using OpenLayer?
I've created a cone-shaped Poly, but I can't use either GetPixel or GetMemoryBitmap because my FPS drops down to 0. Any ideas?
My allegro version of the program (it's a test, and the code is butt ugly, or even worse, and there are memory leaks everywhere... but it's a test) is here: http://cursedtyrant.freshsite.pl/lighttest.rar
The correct link is http://cursedtyrant.freshsite.pl/tests/lighttest.rar
EDIT: Any way I could do that with a polygon?
[Edited by - CursedTyrant on July 4, 2006 12:02:37 PM]
EDIT: Any way I could do that with a polygon?
[Edited by - CursedTyrant on July 4, 2006 12:02:37 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement