|
本文由GALAXIX天の川翻译,转载请注明连接和出处,谢谢合作
VR Cheat Sheet
VR参考手册
On this page:
本页涉及
Running A VR Game 运行一个VR游戏
Running from the UE4 Editor 从UE4编辑器中运行
Running from outside the UE4 Editor 在UE4编辑器外部运行
Useful VR Console Commands 有用的VR控制台命令
Common Commands 控制台命令
Oculus Specific Commands 特定的Oculus命令
Running A VR Game
运行一个VR游戏
Unreal Engine 4 (UE4) now offers a number of different ways to run your Virtual Reality(VR) project depending on what your needs are. In the following section, we will cover the most common ways to run your UE4 VR projects for inside and outside of the UE4 editor.
根据你的需求,虚幻引擎4(UE4)现在提供了许多不同的方法来运行您的虚拟现实(VR)项目。在下面的章节中,我们将介绍最常见的方法来在UE4编辑器内部或者外部,运行你的UE4虚拟现实项目。
For more detailed information on how to launch and run your UE4 projects make sure to check out the Running Unreal Engine page.
更详尽的关于如何启动和运行你的UE4项目的信息,请查看运行虚幻引擎页面。
Running from the UE4 Editor
从UE4编辑器运行
With the release of UE4 version 4.7 and later you can now view your UE4 VR project right from within the UE4 editor by changing the Play in Editor option from play in Selected Viewport (PIE) option to the VR Preview option.
在最新的4.7版本或更新,你现在能在UE4编辑器中预览UE4 VR项目,只需要更改播放方式,在Editor播放选项中将Selected Viewport (PIE)选项更改为VR Prevew 选项。
Running from outside the UE4 Editor
在UE4编辑器外面运行
You can also run a non cooked Standalone game by first creating a shortcut to the UE4Editor.exe and then supplying the following command line arguments.
您还可以运行一个未烘焙的独立游戏,首先为UE4编辑器的UE4Editor.exe创建一个快捷方式,然后提供下面的命令行参数。
- UE4Editor.exe [MyProject] [MyMap] -game
复制代码
Note that [MyProject] needs to be the absolute or relative path to your .uproject file.
注意[MyProject]需要你的 .uproject文件的绝对或相对路径。
Useful VR Console Commands
有用的VR控制台命令
UE4 provides many useful Console Commands that can help in debugging any issues that you might run into when using a VR device. Here is a list of some of the most common commands that you might use as well as some that are specific to Oculus.
UE4提供了许多有用的控制台命令,当使用虚拟现实设备时你可能会遇到一些问题,它们可以帮助调试这些问题。这是一些最常用的命令的列表,您可以使用,有些是Oculus的特定命令。
Common Commands
常用命令
Command 命令 | Description 描述 | Stereo On/Off 立体开启或者关闭 | Enables or Disables stereo rendering for Head Mounted Display (HMD) devices.
启用或者关闭头戴显示器(HMD)设备的stereo渲染。 | r.screenpercentage [30-300]屏幕分辨百分比 | Set the screen percentage. Use a higher number for better quality, and a lower one for better performance.
设置屏幕比例,使用更高的数字得到更好的质量,而低一些的数字会取得更好的性能。 |
Oculus Specific Commands
特定的Oculus命令
Command 命令
| Description 描述
| Stereo Show 立体显示
| Prints a list of settings to the log. 打印设置日志列表。 | Stereo Reset 立体重置
| Resets Inter-Pupillary Distance (IPD) and clears IPD and Stereo overrides.
重置Inter-Pupillary距离(IPD)和清除IPD并重置Stereo。
| HMD [Enable/Disable] [启用或禁用]HMD
| Enable or Disable the HMD device.启用或关闭HMD设备。
| HMD sp [30-300] | Set the screen percentage. Use a higher number for better quality, and a lower one for better performance.
设置屏幕比例。在同等性能下,使用更高或较低的显示尺寸。
| HMD Vsync [On|Off|Reset] HMD垂直同步【开启、关闭、重置】
| Control or reset Vsync on your VR device. 在你的VR设备中控制或重置Vsync。 | Ovrversion
| Print LibOVR version and build date to the log. 显示ibOVR版本并构建日期到日志中。 |
|
|