View Navigation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Moved from Basic Construction.)
 
m (Nesciuse moved page View Navigation/en to View Navigation without leaving a redirect: Move en subpage to basepage)
 
(69 intermediate revisions by 33 users not shown)
Line 1: Line 1:
[[Category:Level Design]][[Category:Level Design Tutorials]]
{{LanguageBar}}


{{first room menu}}
{{first room menu}}


=View Navigation=
Moving the camera is vital if you want to be able to see what you are doing. Hammer allows you to '''navigate manually with the keyboard and/or mouse''', and to '''switch between several cameras in different locations'''.


To get a proper 3D perspective of your work, you will need to control setting its view.
{{tip|If you haven’t created any brushes yet, you can use the origin mark of the map [[File:Hammer OriginMark.png|28px]] for something to move around.  Display this origin mark by selecting View from the top menu and select Center 3D Views on Selection then hold the {{key|Spacebar}}+{{key|RMB}} and drag the origin mark into view. }}


This can be done in two ways: You can either use the keyboard to navigate through your map, or you can rig up cameras.
== Navigation ==


==Keyboard Navigation==
=== 3D views ===
Keyboard navigation will let you fly freely through the map while your mouse pointer is over the 3D view. You will not collide with anything while doing this. Just make sure not to stray too far from your work, or you might not find your way back to it again.
[[File:hammer_camera.jpg |thumb|right|200px|Camera tool.]]


The controls are simple: The W, A, S and D keys works like the default in-game steering, moving your position up, left, down and right, while the arrow keys will steer the direction you're facing.
You can navigate through a 3D view with {{key|W}}{{key|A}}{{key|S}}{{key|D}} and the arrow keys: WASD are forward/backward/strafe as they are in-game, while the arrow keys turn your view. The scroll wheel can be used to give you a speed boost forwards or backwards.


As you haven't created any brushes yet, you can use the maps origin mark for something to move around.
If you want to look around with the mouse, you can do so by selecting the {{hammer camera}} from the left-hand menu. Now you can spin the view by dragging with the left button, pan it by dragging with the right, and strafe by holding down both at once.


==Creating a Camera==
{{tip|Press {{key|Z}} to enter or leave mouselook mode, which does not require you to hold down {{key|lmb}}.}}
[[Image:hammer_camera.jpg |thumb|left|100px| Select the Camera Tool.]]
[[Image:Hammer_top2dview2.jpg |thumb|right|400px| Create a camera by dragging its position.]]


To set up a camera, select the red camera from the list of icons on the left side of the Hammer window by clicking on it. This is the ''Camera Tool''.
=== 2D views ===


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 pan across a 2D view using the arrow keys or scroll bars (if enabled), or by holding {{key|Spacebar}} and dragging with the left mouse button.


You can change the position of the camera by dragging the blue circle around, and where it will point by dragging the other end of the line around.
To magnify, scroll the mouse wheel, press the {{key|D}} & {{key|C}} keys, or select preset zooms with {{key|1}}{{key|2}}{{key|3}}{{key|4}}{{key|5}}{{key|6}}{{key|7}}{{key|8}}{{key|9}}{{key|0}} to zoom the active window, or use {{key|+}}{{key|-}} on the numeric keypad to zoom all 2D windows together.


<br style="clear:both">
{{tip|Holding down {{key|Ctrl}} in combination with the mouse wheel will synchronize all 2D views to the same scale.}}


==Magnify==
You can also use the Magnify tool [[File:Hammer magnify.png|28px|link=]] with left or right click.


[[Image:hammer_magnifytool.jpg|thumb|left|100px]]
{{clr}}


You can use the ''Magnify Tool'' to zoom in and zoom out of the 2D viewports. First select the ''Magnify Tool'' from the icon bar. Now left-click in a 2D viewport to increase the magnification, and right-click to zoom back out.
== Creating a camera ==


If your mouse is equipped with a mouse wheel, you can use it instead to change the zoom level in all of the viewports: Forward will zoom in and backwards will zoom out.
To set up cameras, select the {{hammer camera}} from the left-hand list of icons.
 
Click and drag your mouse in a 2D view to create the camera, as shown in the image below. The 3D view will snap to the new camera, and the 2D windows will display your camera as a blue circle with a line leading from it.
 
[[File:Hammer top2dview2.png|thumb|none|300px|Create a camera by dragging out its position.]]
 
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 tail in the same manner. The 3D view will update whenever you release the mouse button.
 
Hold {{key|Shift}} to create multiple cameras. Use {{key|PageUp}} and {{key|PageDown}} to switch between them and {{key|Delete}} to remove the active one.
 
== See also ==
 
* [[Hammer Viewports]]
* [[Hammer Camera Tool]]
 
{{Navbar|Getting Started|Your First Map|Basic Construction}}
[[Category:Level Design]]
[[Category:Tutorials]]

Latest revision as of 12:16, 12 July 2024

English (en)Deutsch (de)Français (fr)Magyar (hu)日本語 (ja)한국어 (ko)Português (pt)Português do Brasil (pt-br)Русский (ru)中文 (zh)中文(臺灣) (zh-tw)Translate (Translate)

Moving the camera is vital if you want to be able to see what you are doing. Hammer allows you to navigate manually with the keyboard and/or mouse, and to switch between several cameras in different locations.

Tip.pngTip:If you haven’t created any brushes yet, you can use the origin mark of the map Hammer OriginMark.png for something to move around. Display this origin mark by selecting View from the top menu and select Center 3D Views on Selection then hold the Spacebar+RMB and drag the origin mark into view.

Navigation

3D views

Camera tool.

You can navigate through a 3D view with WASD and the arrow keys: WASD are forward/backward/strafe as they are in-game, while the arrow keys turn your view. The scroll wheel can be used to give you a speed boost forwards or backwards.

If you want to look around with the mouse, you can do so by selecting the Camera tool Hammer camera.png from the left-hand menu. Now you can spin the view by dragging with the left button, pan it by dragging with the right, and strafe by holding down both at once.

Tip.pngTip:Press Z to enter or leave mouselook mode, which does not require you to hold down LMB.

2D views

You can pan across a 2D view using the arrow keys or scroll bars (if enabled), or by holding Spacebar and dragging with the left mouse button.

To magnify, scroll the mouse wheel, press the D & C keys, or select preset zooms with 1234567890 to zoom the active window, or use +- on the numeric keypad to zoom all 2D windows together.

Tip.pngTip:Holding down Ctrl in combination with the mouse wheel will synchronize all 2D views to the same scale.

You can also use the Magnify tool Hammer magnify.png with left or right click.

Creating a camera

To set up cameras, select the Camera tool Hammer camera.png from the left-hand list of icons.

Click and drag your mouse in a 2D view to create the camera, as shown in the image below. The 3D view will snap to the new camera, and the 2D windows will display your camera as a blue circle with a line leading from it.

Create a camera by dragging out its position.

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 tail in the same manner. The 3D view will update whenever you release the mouse button.

Hold Shift to create multiple cameras. Use PageUp and PageDown to switch between them and Delete to remove the active one.

See also