Nav Mesh: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| mNo edit summary | m (Clarify what?) | ||
| (10 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{LanguageBar}} | ||
| A [[w:Navigation mesh|'''Navigation Mesh''']] (or  | |||
| A [[w:Navigation mesh|'''Navigation Mesh''']] ('''NavMesh''' or '''nav mesh''') is a data structure that stores data used for path finding, which is typically used by bots. In {{source|4}}, navigation meshes are used by the following entities: | |||
| # [[Bot]]s and Hostages in: | # [[Bot]]s and Hostages in: | ||
| #* {{css|4}} | #* {{css|4}} | ||
| Line 9: | Line 10: | ||
| #* {{gmod|4}} | #* {{gmod|4}} | ||
| #* {{tf2|4}} | #* {{tf2|4}} | ||
| #* {{p3|4}} | |||
| #* {{jb3|4}} | |||
| #* {{bms|4}} | |||
| …to realize what's navigable in their environment, and path to their desired destination. | …to realize what's navigable in their environment, and path to their desired destination. | ||
| ==NAV  | ==NAV file format== | ||
| {{ | {{Main|.nav}} | ||
| Navigation Mesh data is stored in a [[NAV]] file corresponding to the map file ([[BSP|.bsp]]) for which it is used. For example, the nav mesh for <code>cstrike\maps\de_dust.bsp</code> is stored in <code>cstrike\maps\de_dust.nav</code>. | |||
| ==NAV files == | |||
| Navigation Mesh data is stored in a [[NAV]] file corresponding to the map file ([[BSP|.bsp]]) for which it is used. For example, the nav mesh for <code>cstrike\maps\de_dust[[.bsp]]</code> is stored in <code>cstrike\maps\de_dust[[.nav]]</code>. | |||
| ==Navigation Mesh Editing== | ==Navigation Mesh Editing== | ||
| {{ | {{Main|Nav Mesh Editing}} | ||
| {{ | {{Main|Nav Mesh Commands}} | ||
| The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with <code>nav_generate</code> (which requires {{ | The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with <code>nav_generate</code> (which requires {{Command|sv_cheats|1}} and {{Command|nav_edit|1}}). | ||
| ==Game Specific SubVersions== | ==Game Specific SubVersions== | ||
| Line 24: | Line 30: | ||
| ! Game !! Nav Mesh Class !! Subversion !! Notes | ! Game !! Nav Mesh Class !! Subversion !! Notes | ||
| |- | |- | ||
| | {{gmod|2}} | | {{source|2}} | ||
| {{gmod|2}} | |||
| | TheNavMesh | | TheNavMesh | ||
| | 0 | | 0 | ||
| | Garry's Mod  | | Garry's Mod uses the base navigation mesh (It doesn't use its own implementation unlike Valve games) | ||
| |- | |- | ||
| | {{css|2}} | | {{css|2}} | ||
| Line 57: | Line 64: | ||
| * [[L4D Level Design/Advanced Nav Editing]] | * [[L4D Level Design/Advanced Nav Editing]] | ||
| ==External  | ==External links== | ||
| * Official forums for the bot system (down) - [http://web.archive.org/web/*/http://www.turtlerockstudios.com/forums/csbot/ Archived version]. | * Official forums for the bot system (down) - [http://web.archive.org/web/*/http://www.turtlerockstudios.com/forums/csbot/ Archived version]. | ||
| * [https://www.editlife.net/tutorial.php?tutid=60 Waypointing for CS:S Bots/Hostages (Edit Life)] | * [https://www.editlife.net/tutorial.php?tutid=60 Waypointing for CS:S Bots/Hostages (Edit Life)] | ||
| [[Category:Level Design]] | [[Category:Source]] | ||
| [[Category:Level Design]]<!--Why?--> | |||
Latest revision as of 00:14, 8 July 2025
A Navigation Mesh (NavMesh or nav mesh) is a data structure that stores data used for path finding, which is typically used by bots. In  Source, navigation meshes are used by the following entities:
 Source, navigation meshes are used by the following entities:
…to realize what's navigable in their environment, and path to their desired destination.
NAV file format
Main article:  .nav
NAV files
Navigation Mesh data is stored in a NAV file corresponding to the map file (.bsp) for which it is used. For example, the nav mesh for cstrike\maps\de_dust.bsp is stored in cstrike\maps\de_dust.nav.
Main article:  Nav Mesh Editing
Main article:  Nav Mesh Commands
The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with nav_generate (which requires sv_cheats 1 and nav_edit 1).
Game Specific SubVersions
| Game | Nav Mesh Class | Subversion | Notes | 
|---|---|---|---|
|  Source | TheNavMesh | 0 | Garry's Mod uses the base navigation mesh (It doesn't use its own implementation unlike Valve games) | 
|  Counter-Strike: Source | CSNavMesh | 1 | * Appends approach area data to each area. | 
|  Team Fortress 2 | CTFNavMesh | 2 | Appends TF2-specific attribute flag to area data. | 
|  Left 4 Dead | TerrorNavMesh | 13 | |
|  Left 4 Dead 2 | TerrorNavMesh | 14 | 
See also
- Navigation Mesh Console Command Reference
- List of L4D Series Nav Mesh Attributes
- L4D Level Design/Nav Meshes
- L4D Level Design/Nav Flow
- L4D Level Design/Advanced Nav Editing
External links
- Official forums for the bot system (down) - Archived version.
- Waypointing for CS:S Bots/Hostages (Edit Life)






























