cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
902 stars 115 forks source link

Lightmaps #182

Open cxong opened 11 years ago

cxong commented 11 years ago

Lightmaps can be used to improve the ambiance of the maps. This is basically a huge "texture" (pixel buffer) the size of the map holding brightness values.

We could have two types of lightmaps:

The reason fully-dynamic lights aren't included (lights that can move) is because having their light affected by walls is much harder.

Adding the lights will require map format enhancements. The editor can allow adding light sources manually, or new map items (wall items, or floor/room items) that can emit light can be added.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

cxong commented 6 years ago

For static maps, try a library like https://github.com/onecoolx/picasso for generating high-quality images