Questions tagged [fog-of-war]
Fog of war refers to mechanics that limit the information presented about a game space and its contents, based on which regions the player's agents can currently observe. This is common in strategy games, where the player can only see enemy units when they pass within the vision radius of an allied unit, and changes to the map (eg. construction/destruction of buildings) are only visible once observed by an allied unit.
24 questions
0 votes
0 answers
201 views
How to shade the whole Google Map except for radii?
I am implementing line-of-sight into a strategy game I am developing, and I would like to shade the map darker outside of the LoS of the player and their structures (fog of war). The trick is, this is ...
0 votes
1 answer
666 views
Render texture seems to ignore camera background type
I'm currently trying to pull a fog of war for an rts game, and planned it like this. (Unity 2020.2.7, URP 10.3.1) Use units field of view to generate a texture of what is seen (alpha 0). Create other ...
0 votes
1 answer
60 views
How to determine if and when a point and triangle moving uniformly will collide?
TLDR; I just learned this problem can be simplified to: How to determine the time at which a uniformly moving point will intersect with a stationary triangle? Also, how to figure out the time when ...
0 votes
1 answer
129 views
What is the relationship between clipping and the fog of war concept?
I'm currently developing a 2D top down game and recently implemented clipping. I understand clipping in a 2D top down game as rectangle or any other geometrical form which defines a viewport for the ...
3 votes
0 answers
474 views
Fog of War in Unity
I know that my question will not fall into the type of questions normally asked here (no coding presented). I just need some tips and advise on how to proceed (e.g. pipeline or something). I'm making ...
7 votes
3 answers
6k views
How do I efficiently implement Fog of War in a Real-time Strategy game?
How is fog of war implemented in RTS games such as StarCraft II or Age of Empires? I'm making an RTS, and plan for every unit on the field to have circular vision up to a certain radius. My first ...
3 votes
1 answer
228 views
Implementing black map in a 3d game
I am struggling with designing black map and fog of war in a 3d game. Black map is the area that player hasn't explored (completely unknown), while fog of war is the area that player has explored and ...
1 vote
1 answer
2k views
Efficient way to implement fog of war on a 2D grid with multiple actors
Lets say you have a 2D grid of tiles 100x100 and each tile can toggle fog on/off. To initialize the map you draw the tiles and toggle fog ON for each tile. Now drop a single actor on the grid and use ...