VR/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "为了在 SteamVR 以外的任何平台上运行 OpenVR 游戏,您需要配置 <code>~/.config/openvr/openvrpaths.vrpath</code> 中定义的 OpenVR 运行时路径。一个可靠的方法是使用 Home Manager 创建此文件。"
Tags: Mobile edit Mobile web edit
Ardenet (talk | contribs)
Created page with "WiVRn 是一款基于 Monado 构建的 OpenXR 流媒体应用程序。它能够将独立的 VR 头戴设备无线连接到 Linux 计算机。如果您的头戴设备不是无线的,请查阅 Monado。 WiVRn 模块的示例用法:"
Line 67: Line 67:
为了在 SteamVR 以外的任何平台上运行 OpenVR 游戏,您需要配置 <code>~/.config/openvr/openvrpaths.vrpath</code> 中定义的 OpenVR 运行时路径。一个可靠的方法是使用 [[Special:MyLanguage/Home Manager|Home Manager]] 创建此文件。
为了在 SteamVR 以外的任何平台上运行 OpenVR 游戏,您需要配置 <code>~/.config/openvr/openvrpaths.vrpath</code> 中定义的 OpenVR 运行时路径。一个可靠的方法是使用 [[Special:MyLanguage/Home Manager|Home Manager]] 创建此文件。


<div lang="en" dir="ltr" class="mw-content-ltr">
{{Warning|旧版本的 Proton 将始终查询当前的 OpenVR OpenXR 运行时。如果您使用 OpenComposite,并且它无法初始化 OpenXR 环境,Proton 将无法启动。解决方法是删除 ~/.config/openvr/openvrpaths.vrpath 文件,然后重试启动游戏。}}
{{Warning|Older versions of Proton will always query the current OpenVR and OpenXR runtime. If you use OpenComposite, and it fails to initialize an OpenXR context, Proton will fail to launch. A workaround is to delete the ~/.config/openvr/openvrpaths.vrpath file and then retry launching the game.}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
如果此文件未设置为只读,SteamVR 将添加其运行时路径,因此可以使用 Home Manager
If this file is not set to read-only, SteamVR will add its runtime path back, hence the use for Home Manager.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
启用 OpenComposite 的示例配置可能如下所示:
An example configuration for enabling OpenComposite may look like this:
</div>


{{file|~/.config/home-manager/home.nix|nix|3=# For Monado:
{{file|~/.config/home-manager/home.nix|nix|3=# For Monado:
Line 105: Line 99:
'';}}
'';}}


<div lang="en" dir="ltr" class="mw-content-ltr">
如果您计划在 Steam 上玩任何 OpenVR 游戏或通过 Proton 游玩 OpenXR 游戏,则必须以这种方式使用 OpenComposite。在大多数情况下,您还必须允许 Steam 运行时访问您的 OpenXR 运行时的 Socket 路径,方法是使用以下 Steam XR 应用程序的启动选项:<code>env PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/monado_comp_ipc %command%</code>。此示例适用于 Monado,其他 XR 运行时可能有所不同。
If you are planning to play any OpenVR game on Steam or OpenXR games through Proton, you will have to use OpenComposite in this manner. In most cases you also have to allow access to the socket path of your OpenXR runtime to Steam's runtime, by using the following launch options for XR applications on Steam: <code>env PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/monado_comp_ipc %command%</code>. This example is for Monado, while other XR runtimes might differ.
</div>


== WiVRn ==
== WiVRn ==


<div lang="en" dir="ltr" class="mw-content-ltr">
WiVRn 是一款基于 Monado 构建的 OpenXR 流媒体应用程序。它能够将独立的 VR 头戴设备无线连接到 Linux 计算机。如果您的头戴设备不是无线的,请查阅 [[Special:MyLanguage/VR#Monado|Monado]]
WiVRn is an OpenXR streaming application built around Monado. It wirelessly connects a standalone VR headset to a Linux computer. If your headset is not wireless, look at [[VR#Monado|Monado]] instead.
WiVRn 模块的示例用法:
Example usage of the WiVRn module:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">