Zh/View Navigation: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
{{first room menu:zh-cn}}
{{first room menu: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.
为了给工作环境提供适当的观察方式,Hammer提供一种三维的相机视角。有两种方法可以控制这种三维视角:你可以用键盘鼠标在你的地图里飞行或手动设置相机。


==Keyboard/mouse navigation==
==键盘/鼠标 飞行==


'''Simple Navigation'''
'''简单飞行'''
操作键盘鼠标在你的地图中飞行,从左边的菜单中选择'''相机工具'''[[Image:hammer_camera.png|28px]]。你可以操作 W,A,S,D 键,和你在游戏里的前进后退左右平移等操作差不多。在简单飞行模式,你可以用方向键左右转或上下移动。此外,你可以用左键或右键点击相机视图的窗口观察四周(按下左键)或者移动相机位置(按下右键)。


To navigate through your map using keyboard & mouse navigation, select the '''Camera tool''' [[Image:hammer_camera.png|28px]] 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'''
* 按下<code>Z</code>键进入鼠标观察模式。这可以切换方向键和鼠标的控制。再次按下<code>Z</code>键则退出此模式并返回之前的鼠标控制方式。
* 在相机视图窗口中按下左键以观察四周,还可以按下右键移动相机位置。当你释放空格或鼠标按键后会恢复正常。


* Press the <code>Z</code> key to enter "mouselook" mode. This toggles between arrow keys and mouse control. Press <code>Z</code> 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 ==
== Creating a camera ==
Line 52: Line 51:


{{otherlang:zh-cn}}
{{otherlang:zh-cn}}
{{otherlang:zh-cn:en|View Navigation}}

Revision as of 03:38, 13 April 2008

为了给工作环境提供适当的观察方式,Hammer提供一种三维的相机视角。有两种方法可以控制这种三维视角:你可以用键盘鼠标在你的地图里飞行或手动设置相机。

键盘/鼠标 飞行

简单飞行 操作键盘鼠标在你的地图中飞行,从左边的菜单中选择相机工具Hammer camera.png。你可以操作 W,A,S,D 键,和你在游戏里的前进后退左右平移等操作差不多。在简单飞行模式,你可以用方向键左右转或上下移动。此外,你可以用左键或右键点击相机视图的窗口观察四周(按下左键)或者移动相机位置(按下右键)。

鼠标观察模式

  • 按下Z键进入鼠标观察模式。这可以切换方向键和鼠标的控制。再次按下Z键则退出此模式并返回之前的鼠标控制方式。
  • 在相机视图窗口中按下左键以观察四周,还可以按下右键移动相机位置。当你释放空格或鼠标按键后会恢复正常。

如果你还没有创建任何固体,可以把地图中的原点(由红绿蓝三条线组成)作为参考在周围移动。

Creating a camera

Select the camera.
Create a camera by dragging its position.

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 and PageDown 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

Select Magnify.

You can use the Magnify tool Hammer magnify.png 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 through 0 (zero) keys zoom the window at different preset zoom levels.
  • The + and - keys zoom in and out.

See also


Template:Otherlang:zh-cn Template:Otherlang:zh-cn:en