Quantcast
Channel: Questions in topic: "shader"
Viewing all articles
Browse latest Browse all 7500

Fog of War Explored Area Gray out / un-updated areas

$
0
0
So I'm working with a RTS style game and I am unsure as how in SC2 or WC3 etc. when the player has explored an area and seen a building and left the area there appears to be a grayed out image of what was found in that area that doesn't update until the player returns to the region. IE player sees a building, and it displays when he looks at that portion of the map and if it's destroyed but the area hasn't been explored since the building is destroyed it still displays that building on that player's view of the region. Also the player doesn't see any unit movement inside that area. ![alt text][1] I am looking at two implementations using a shader that changes the alpha value of the aperture point where the camera sees the player seen here http://www.youtube.com/watch?v=yzcfTb9e0lo. The second is sort of a block veil plane that sits above the map and is changed when the player enters the region seen here http://www.youtube.com/watch?v=x40TDCjC4DY&list=PLDE92E64BE11FE309&index=17. [1]: http://helinwang.com/wordpress/wp-content/uploads/2012/02/maphack.jpg

Viewing all articles
Browse latest Browse all 7500

Latest Images

Trending Articles



Latest Images