philazzi44 / DnDCS

DnD Client-Server
3 stars 1 forks source link

Fog Image whiteness #20

Open philazzi44 opened 10 years ago

philazzi44 commented 10 years ago

Right now, when a Fog Image comes in, it's a black (fog) and white (revealed) map. We then iterate all the data to flip all white areas to be fully transparent.

We should look into updating the Server to send over the transparency (and set it up front).

If that isn't possible, then maybe look into how the Web Client can use the Fog coming in as a mask, where the 'white' ends up being the revealed area. See http://christianheilmann.com/2013/06/15/image-masking-with-html5-canvas/ for masking.