Fog of war is a visibility system that conceals parts of the game world from a player until that player’s units, buildings or scouting tools reveal them. In game design, it turns perfect information into imperfect information, so players must explore, scout and predict instead of simply reacting to everything an opponent does.
The concept is borrowed from military theory, where commanders act on incomplete knowledge of the battlefield. In gaming, it is a defining feature of real-time strategy, turn-based strategy, multiplayer online battle arenas and many survival and exploration titles, and it shapes pacing, map control and the value of information itself.
How fog of war hides and reveals the map
Fog of war works by tracking which map cells or regions each player can currently see and rendering everything else as hidden or outdated. Every unit and structure has a vision radius, and the union of all those radii forms the player’s current field of view, which the engine recalculates continuously or once per turn.
Most implementations distinguish three visibility states. Each state controls both what is drawn on screen and what information the client is allowed to receive, which matters for fairness in online play.
| State | What the player sees | Typical rendering |
|---|---|---|
| Unexplored | Nothing, not even terrain | Solid black overlay |
| Explored but not visible | Terrain and last known structures | Dimmed or gray overlay |
| Currently visible | Live units, movement and actions | Full color, no overlay |
Vision is often modified by terrain. High ground, forests, walls and brush can block line of sight, so the system may use simple circular radii, grid-based ray casting or shadow-casting algorithms. The choice affects both computational cost and how readable the rules feel to the player.
Design purposes of hidden information
Designers use fog of war primarily to make information a resource that players must earn. When the map is hidden, scouting becomes a meaningful decision, deception becomes possible and every engagement carries risk and uncertainty that rewards anticipation.
- Scouting and reconnaissance: players spend units, time or abilities to gather intelligence.
- Bluffing and deception: hidden build orders or troop positions allow feints and surprise attacks.
- Exploration reward: in single-player games, revealing the map provides a steady sense of discovery.
- Map control: vision around key objectives becomes a contested asset, as in placing wards.
These purposes interact with other parts of the Topic. Fog of war influences game balance because fast scouting units gain value, and it shapes level design because sightlines, choke points and hiding spots must be planned around vision rules.
Variants of fog of war across genres
Fog of war is not a single mechanic but a family of approaches, and each genre tunes it to its pace and player count. The table below compares typical implementations.
| Genre | Typical implementation | Main design effect |
|---|---|---|
| Real-time strategy | Unit vision radii, explored memory layer | Rewards scouting and timing attacks |
| Turn-based strategy | Vision updated per turn, persistent map memory | Encourages long-term planning |
| Multiplayer online battle arena | Team-shared vision, wards, brush zones | Creates ambushes and objective control |
| Roguelike and dungeon crawler | Line-of-sight per tile, remembered layout | Builds tension and exploration |
| Survival and open world | Map fills as the player travels | Supports discovery and navigation |
Some games add shared team vision, where allies see what any teammate sees, while others offer reveal abilities such as scans, flares or radar that temporarily lift the fog in a chosen area at a cost.
Fog of war compared with related visibility mechanics
Fog of war is often confused with other concealment or exploration systems, but it is specifically about dynamic, unit-based visibility of an opponent’s activity. Related mechanics hide different things or reveal them in different ways.
| Mechanic | What is hidden | How it is revealed |
|---|---|---|
| Fog of war | Enemy units and current map state | Unit vision, scouting, abilities |
| Black shroud only | Terrain before first visit | One-time exploration, stays revealed |
| Stealth or invisibility | Specific units even inside vision | Detector units or special abilities |
| Procedural generation | Layout unknown before play begins | Exploring a newly generated map |
| Hidden hand in card games | Opponent’s cards or resources | Gameplay actions or end of round |
The distinction matters for tuning. A black shroud alone rewards exploration once, whereas true fog of war re-hides areas when units leave, so information decays over time and players must keep refreshing it.
Implementation choices and their trade-offs
The technical design of fog of war determines performance, fairness and resistance to cheating. The most important decision in multiplayer games is whether hidden data is merely not drawn or is never sent to the client at all.
| Decision | Option | Trade-off |
|---|---|---|
| Data authority | Server filters hidden data | Stronger against map hacks, more server cost |
| Vision calculation | Circular radius per unit | Cheap and readable, ignores obstacles |
| Vision calculation | Ray casting or shadow casting | Realistic sightlines, higher CPU cost |
| Update frequency | Every frame versus fixed ticks | Smoothness against processing load |
| Memory layer | Show last known positions | Helps planning, can mislead players |
Games that render hidden units locally but merely mask them visually are vulnerable to map hacks, a common form of cheating in competitive play. Server-side visibility filtering is the stronger defense, although lag compensation and replay systems complicate it.
Common mistakes when designing fog of war
Poorly tuned fog of war can make a game feel arbitrary or frustrating rather than tense. Most problems come from mismatches between vision rules, map size and the tools players have for gathering information.
- Vision radii that are too small turn every encounter into an unavoidable surprise.
- No affordable scouting tools remove meaningful decisions and reward guessing.
- Unclear visual states leave players unsure whether a gray area is current or outdated.
- Client-side hidden data invites cheating and undermines competitive integrity.
- Inconsistent terrain rules make line of sight feel random, which damages game feel.
Playtesting is the main way to calibrate these values, because the right amount of uncertainty depends on match length, unit speed and how quickly players can respond to threats once they are spotted.
Stripped to the essentials
Fog of war means you only see what your side can see. The rest of the map stays dark or gray, so you do not know what the other player is doing there.
Think of walking through a dark house with a flashlight. You see the room you are in, you remember rooms you visited, but someone could be moving around in another room without you knowing. In games, your units are the flashlights. Sending someone to look is how you find out what is happening, and that choice is part of the strategy.
Where it is applied
In a typical one-versus-one match of a real-time strategy game, both players start in opposite corners of a map they cannot fully see. Around minute three, one player sends a single cheap worker unit across the map to look at the opponent’s base. The scout reveals that the opponent has built an unusual number of military buildings early, which signals an imminent rush.
Without that scouting trip, the first player would likely have invested in economy and lost to the early attack. Instead, the player builds two defensive structures and positions units near the base entrance. When the rush arrives, it is held off, and the attacker has spent resources that did not pay off. The information gained by scouting decided the match, which is exactly the decision space fog of war is designed to create.