View Navigation:zh-cn
In order to maintain a proper perspective as you work, Hammer offers a 3D camera view. There are two different methods to control the 3D view: you can use the keyboard & mouse to navigate through your map or you can set up cameras.
Simple Navigation
To navigate through your map using keyboard & mouse navigation, select the Camera tool from the left hand menu. You can navigate using the W,A,S,D keys much like you would navigate in game to move forward and backward and to strafe left and right. In simple navigation, you can turn left, right, up, or down using the arrow keys. Alteratively, you can left or right click in the camera view window to look around (left click) or dolly the camera position (right click).
MouseLook Mode
- Press the
Z
key to enter "mouselook" mode. This toggles between arrow keys and mouse control. PressZ
again to exit this mode and return to regular mouse control. - Left-click in the 3D view to look around, and right-click to "dolly" the camera position. The mouse will return to normal when you release both the space bar and the mouse button.
If you haven't created any brushes yet, you can use the origin mark of the map (the meeting red, blue and green lines that you start at) for something to move around.
Creating a camera
To set up a camera, select the red Camera tool from the list of icons on the left side of the Hammer window by clicking on it.
Click and drag your mouse in a 2D view to create the camera, as shown to the right. The 3D view will change to the new camera, and the 2D windows will display your camera as a blue circle with a line leading from it.
You can change the position of the camera by dragging the blue circle around with the mouse in the 2D views, and where it will point by dragging the other end of the line around. The 3D view will update as the camera changes.
- You can use the
PageUp
andPageDown
keys to switch between any created cameras, if you've made more than one in the map. - The last selected camera is restored when you save the map and open it later.
Moving in the 2D views
You can use the Magnify tool to zoom in and zoom out of the 2D viewports. First select the Magnify icon from the icon bar. Left-click in a 2D viewport to increase the magnification, and right-click to decrease the magnification.
Additional shortcuts for moving in the 2D views
- Your mouse's scroll wheel can change the zoom level in all of the viewports: Forward will zoom in and backwards will zoom out.
- Hold down
Space
and the left mouse button to pan in 2D views. - The
1
through0
(zero) keys zoom the window at different preset zoom levels. - The
+
and-
keys zoom in and out.
See also