Zh/View Navigation: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:


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


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


== Creating a camera ==
== 创建相机 ==
[[Image:hammer_camera.jpg |thumb|left|100px| Select the camera.]]
[[Image:hammer_camera.jpg |thumb|left|100px| 选择相机。]]
[[Image:Hammer_top2dview2.jpg |thumb|right|400px| Create a camera by dragging its position.]]
[[Image:Hammer_top2dview2.jpg |thumb|right|400px| 在某位置上拖拽以创建相机]]


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.
要设置相机,先从Hammer窗口左侧的一列图标中点选红色的'''相机工具'''


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 <code>PageUp</code> and <code>PageDown</code> keys to switch between any created cameras, if you've made more than one in the map.
* 如果你在地图中已放置了多个相机,可以用<code>PageUp</code><code>PageDown</code>键在任意已创建的相机间切换。
* The last selected camera is restored when you save the map and open it later.
* 当你保存地图然后再打开时会回到你最后选中的相机。


<br style="clear:both">
<br style="clear:both">


==Moving in the 2D views==
==在二维视图中移动==
[[Image:hammer_magnifytool.jpg|thumb|right|100px|Select Magnify.]]
[[Image:hammer_magnifytool.jpg|thumb|right|100px|选择放大镜。]]
 
你可以用'''放大镜工具'''[[Image:hammer_magnify.png|28px]]放大或缩小二维视图。先从工具栏里选择'''放大镜'''图标。在二维视图里做击增加放大倍率,右击则减少放大倍率。


You can use the '''Magnify tool''' [[Image:hammer_magnify.png|28px]] 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 <code>Space</code> and the left mouse button to pan in 2D views.
* 按住<code>空格</code>与鼠标左键可以在二维视图中摇摆。
* The <code>1</code> through <code>0</code> (zero) keys zoom the window at different preset zoom levels.
* <code>1</code> <code>0</code>()键可将窗口缩放到预设的缩放等级。
* The <code>+</code> and <code>-</code> keys zoom in and out.<br style="clear:both">
* <code>+</code> <code>-</code> 键分别是放大和缩小。<br style="clear:both">


== See also ==
== 参考 ==
* [[Hammer Viewports]]
* [[Hammer Viewports|Hammer的视图]]


{{NavBar|Getting Started|Your First Map|Basic Construction}}
{{NavBar|Getting Started:zh-cn|Your First Map:zh-cn|Basic Construction:zh-cn}}


[[Category:Level Design]]
[[Category:Level Design]]

Revision as of 02:00, 14 April 2008

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

键盘/鼠标 飞行

简单飞行

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

鼠标观察模式

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

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

创建相机

选择相机。
在某位置上拖拽以创建相机

要设置相机,先从Hammer窗口左侧的一列图标中点选红色的相机工具

在二维视图里点击并拖拽鼠标来创建相机(如右图所示)。此时三维视图会转到新相机处,而二维视图的窗口中会显示一个蓝圈带一条线来表示相机。

你可以用鼠标在二维视图里拖拽这个蓝圈改变相机的位置,或是拖拽线条的末端改变其朝向。三维视图则会与相机保持同步。

  • 如果你在地图中已放置了多个相机,可以用PageUpPageDown键在任意已创建的相机间切换。
  • 当你保存地图然后再打开时会回到你最后选中的相机。


在二维视图中移动

选择放大镜。

你可以用放大镜工具Hammer magnify.png放大或缩小二维视图。先从工具栏里选择放大镜图标。在二维视图里做击增加放大倍率,右击则减少放大倍率。


其他二维视图中的移动快捷键

  • 你的鼠标滚轮可以在所有视图中改变缩放等级:向前是放大,向后则是缩小。
  • 按住空格与鼠标左键可以在二维视图中摇摆。
  • 10(零)键可将窗口缩放到预设的缩放等级。
  • +- 键分别是放大和缩小。

参考


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