128 reputation
3
bio website
location
age
visits member for 2 years, 4 months
seen Jun 6 '13 at 17:44

Jan
2
awarded  Scholar
Jan
2
accepted Hide individual regions on a territory map
Jan
2
comment Hide individual regions on a territory map
This is essentially what we ended up doing. One layer is the map the player sees. There's another reference layer with the same topology but with color coding. A third visible layer provides the fog of war: look up the corresponding colors in the reference layer and change the alpha values in the fog layer to reveal only the portion we see. I wrote a bit about it on my blog: paulgestwicki.blogspot.com/2013/01/…
Jan
2
awarded  Supporter
Aug
13
comment Hide individual regions on a territory map
If all I needed to do was detect clicks, I'd probably use a color mask. It's the showing and hiding of regions that I'm puzzling over. I suppose I could use a color mask as a way to cluster pixels within a region, and when I need to show a region, change just the alpha of the corresponding pixels in the map image. That is, if I'm clicking on the 'red' masked territory, then for each red pixel in the mask, change the alpha of the pixel at the corresponding coordinate. I'll have to consider that.
Aug
11
awarded  Student
Aug
11
asked Hide individual regions on a territory map