Recent Changes - Search:

Main.SideBar (edit)

PmWiki

FogOfWar

At the moment, fog of war in Boson works by simply not rendering fogged cells. While this is fast and simple, it doesn't look very good, so it should be improved.One possibility is to use 0 as alpha for all cell corners that are fogged. Most cells near the border of the fog then would have about 2 or so corners with alpha = 0.
E.g. if "-" here marks fogged cell and "+" unfogged one:

 +++++
 ++---
 -----
 -----
 -----

Then corners marked with "o" should be rendered with alpha = 0:

 +++++
 ++ooo
 ooo--
 -----
 -----
Edit - History - Print - Recent Changes - Search
Page last modified on January 11, 2005, at 17:55