Fog of war

On this page 8

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.

StateWhat the player seesTypical rendering
UnexploredNothing, not even terrainSolid black overlay
Explored but not visibleTerrain and last known structuresDimmed or gray overlay
Currently visibleLive units, movement and actionsFull color, no overlay
Common visibility states in fog of war

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.

GenreTypical implementationMain design effect
Real-time strategyUnit vision radii, explored memory layerRewards scouting and timing attacks
Turn-based strategyVision updated per turn, persistent map memoryEncourages long-term planning
Multiplayer online battle arenaTeam-shared vision, wards, brush zonesCreates ambushes and objective control
Roguelike and dungeon crawlerLine-of-sight per tile, remembered layoutBuilds tension and exploration
Survival and open worldMap fills as the player travelsSupports discovery and navigation
Fog of war implementations by genre

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 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.

MechanicWhat is hiddenHow it is revealed
Fog of warEnemy units and current map stateUnit vision, scouting, abilities
Black shroud onlyTerrain before first visitOne-time exploration, stays revealed
Stealth or invisibilitySpecific units even inside visionDetector units or special abilities
Procedural generationLayout unknown before play beginsExploring a newly generated map
Hidden hand in card gamesOpponent’s cards or resourcesGameplay actions or end of round
How fog of war differs from similar mechanics

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.

DecisionOptionTrade-off
Data authorityServer filters hidden dataStronger against map hacks, more server cost
Vision calculationCircular radius per unitCheap and readable, ignores obstacles
Vision calculationRay casting or shadow castingRealistic sightlines, higher CPU cost
Update frequencyEvery frame versus fixed ticksSmoothness against processing load
Memory layerShow last known positionsHelps planning, can mislead players
Key implementation decisions

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.