Difference between revisions of "Valve Hammer Editor"

From Team Fortress Wiki
Jump to: navigation, search
m (The VERC was shut down two years ago...)
(No need for instructions that lead to a defunct version.)
(23 intermediate revisions by 16 users not shown)
Line 1: Line 1:
<div style="float:right;clear:right;background-color:white">
+
{{OtherWikis
{| class="infobox" {{#if:{{{style|}}} | style="{{{style}}}" | cellspacing="2" cellpadding="2"}}
+
| [[wikipedia:Valve Hammer Editor|Valve Hammer Editor]] article on [[wikipedia:Main Page|Wikipedia]].
|-
+
| {{vdc|Valve Hammer Editor|Valve Hammer Editor}}.
| align="center" class="image" colspan="2" | {{#if:{{{image|}}} | [[Image:{{{image}}}|{{#if:{{{image-width|}}} | {{{image-width}}} |px}}]]<br> | [[Image:750px-Valve-hammer-editor.jpeg|150px]] }}
+
| For information on mapping with the Valve Hammer Editor in Team Fortress 2, see:
|-
+
** [[:Category:Mapping]]
| class="bold" |Developer:
+
** Valve Developer Community documentation on [[vdc:Team Fortress 2 Level Creation|Team Fortress 2 Level Creation]].
|[[Valve]]
+
}}
|-
+
{{Game infobox
| class="bold" |Operating system:
+
  | boxart-image = Hammereditor.png
|Microsoft Windows
+
  | developer    = [[Valve]]
|-
+
  | publisher    = [[Valve]]
| class="bold" |Type:
+
  | distributor  = [[Steam]]
|Level editor
+
  | engine      = [[Source engine]]
|-
+
  | released    = Beta V1.007 in October 7th, 1996
| class="bold" |License:
+
}}
|Proprietary
+
===Hammer Editor===
|}
+
'''Valve Hammer Editor''', formerly known as Worldcraft and commonly named Hammer,
</div>
+
is used by level designers to create new maps for games such as
 +
''[[Team Fortress 2]]'', ''[[Garry's Mod]]'', and ''[[Counter-Strike]]''.
  
'''Valve Hammer Editor''', formerly known as '''Worldcraft''' and now commonly called '''Hammer''', is [[Valve software]]'s map creation program for their game engine, [[Source]]. Old versions of Worldcraft also supported ''Quake'' and ''Quake II''. Versions prior to 4 supported exclusively Goldsrc, Source's predecessor. The current version supports both Source and GoldSrc, and can only be accessed via a free download of the [[Source SDK]].
+
===How do I download Hammer?===
 +
The version of hammer and the tools used for TF2 is included with the game install. Go to {{code|Steam\SteamApps\common\Team Fortress 2\bin}} and open Hammer.exe.
  
== Level design with Hammer ==
+
{{Mapping nav}}
Prior to the release of Source, Hammer used only brushes (blocks) called primitives. Sets of simpler primitives can be used in older GoldSrc games. However, some features of version 4 and above, such as displacement maps, are not compatible with GoldSrc. Many level designers who work with both Source and GoldSrc games usually keep an install of 3.5 to avoid using unsupported features in a GoldSrc game.
 
  
== Files and compiling ==
+
[[Category:Mapping]]
Valve Hammer Editor version 4.0 saves a level file in ''.vmf'' format by default. Before this, it saved a level file in the binary, proprietary ''.rmf'' or text-based, human-readable ''.map format.''  The .vmf format is a simple file that contains all the information about a level in a format vaguely similar to an XML file.  It originated because of Half-Life's reliance on the Quake engine, and has remained as a result. Valve includes compiling tools with the ''Source SDK'' - ''vbsp'', ''vvis'', and ''vrad''. The following list is largely true for both formats, but is intended as a reference for Source levels.
 
 
 
*First, a level is passed through the ''bsp'' program. This program uses the brushes to create the architecture of the level. It also places all entities where they should go based on the level design file (.vmf file). This program writes the initial .bsp (Binary space partitioning) file.
 
 
 
*Second, the level passes through the ''vis'' (Visible Information Set) processor, which determines what polygons are rendered and what lights appear where. Since the Source engine uses portal based rendering to determine what is visible at any given time, this program creates the portals by dividing the map into convex regions with visibility data, like Quake-based engines do at a per-polygon level.
 
 
 
*Finally, the level passes through the ''rad'' program. This program computes the lighting of the map, including pseudo-radiosity for Source maps, resulting in more natural-looking lighting. If there is a leak in the level, only standard lighting will be computed - radiosity will not be simulated, resulting in faker/harsher lighting. If the mapper doesn't run the ''rad'' application, the level will appear as full-bright (without static shadows or lighting of any kind, with every texture being fully lit.) If the level designer decides to compile the map with HDR lighting enabled, the level must pass through an additional stage of rad compiling- one stage to calculate normal (LDR) lighting, and a second stage for calculating HDR lighting.
 
 
 
*With earlier versions of VHE (up to 3.5) and games for the GoldSource engine, there were four steps in the compilation. ''BSP'' is preceded by ''CSG'' (constructive solid geometry), which parses the brushes, places entities, indexes textures, and sets up the general framework of the level for the BSP pass which generally only performed space partitioning. In the Source engine and VHE 4.0, Hammer stores the files in a CSG format, rather than vertex based, and lets the ''BSP'' tool handle all the entity placement tasks, so the ''CSG'' process has effectively been merged into ''BSP''
 
 
 
== See also ==
 
* [[Source SDK]]
 
 
 
== External links ==
 
* [http://developer.valvesoftware.com/wiki/Main_Page Valve Developer Community], Official wiki dedicated to editing the ''[[Source engine]]''
 
* [http://www.halflifestorm.com/?page=tutorials&cat=1 Half Life Storm] - A Website with various Source Engine Mapping Tutorials
 
* [http://www.ammahls.com/?p=3 AMMAHLS], alternatives to the compiling tools included with the ''[[Source SDK]]''
 
* [http://www.twhl.co.za TWHL] - A large, active mapping community with support for both GoldSource and Source engines.
 
 
 
__NOTOC__
 
 
[[Category:Valve]]
 
[[Category:Valve]]
[[Category:Mapping]]
 

Revision as of 02:03, 13 March 2019

Valve Hammer Editor
Hammereditor.png
Basic Information
Released:

Beta V1.007 in October 7th, 1996

Developer:

Valve

Publisher:

Valve

Distributor:

Steam

Engine:

Source engine

Hammer Editor

Valve Hammer Editor, formerly known as Worldcraft and commonly named Hammer, is used by level designers to create new maps for games such as Team Fortress 2, Garry's Mod, and Counter-Strike.

How do I download Hammer?

The version of hammer and the tools used for TF2 is included with the game install. Go to Steam\SteamApps\common\Team Fortress 2\bin and open Hammer.exe.