「Oculus Rift」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(同期)
(同期)
3行目: 3行目:
 
Oculus Rift は [http://www.oculusvr.com/ Oculus VR] によって開発されているバーチャルリアリティヘッドマウントディスプレイです。
 
Oculus Rift は [http://www.oculusvr.com/ Oculus VR] によって開発されているバーチャルリアリティヘッドマウントディスプレイです。
   
  +
==インストール==
==基本設定==
 
   
 
===ハードウェア===
 
===ハードウェア===
22行目: 22行目:
 
Rift をプライマリモニタにしないと、同期が正しく動作しません。
 
Rift をプライマリモニタにしないと、同期が正しく動作しません。
   
  +
{{Note|ディスプレイを回転させると遅延フレームが発生し、Windows における Extended Mode と同じ状態になります。ディスプレイを回転しない場合、遅延がなくなります (Windows の Direct Mode と同等)。残念ながらディスプレイを回転しない状態で動作するアプリケーションは一部に限られています。問題なく動作するかアプリケーションごとにテストする必要があります。}}
{{Note|Having the display rotated adds an extra frame of latency, which makes it operate at the equivalent of Extended Mode on Windows. With the display unrotated, this extra frame of latency is removed and you get a much improved experience (equivalent of Direct Mode on Windows). Unfortunately only certain applications work correctly with this. You should test each to see if each application works correctly unrotated first.}}
 
 
====xrandrift====
 
 
AUR にある {{Aur|riftutilities-git}}{{Broken package link|{{aur-mirror|riftutilities-git}}}} というパッケージには {{ic|xrandrift}} という名のスクリプトが含まれています。このスクリプトは {{ic|xrandr}} を使って Rift を使うのに適したビデオモードを (引数に合わせて) 判断します。さらに、現在のビデオモードを記録して、プログラムが終了した後にスイッチバックします。
 
 
(対応しているアプリケーションで) 遅延をできるだけ減らすには、以下のようにプログラムを実行してください:
 
 
$ xrandrift OculusWorldDemo
 
 
{{Note|You may experience tearing due to the selected video mode being too big to fit on the same framebuffer as your device. If you see an odd vertical tearing in the Rift, try running with {{ic|-o}} instead.}}
 
 
Team Fortress 2 などの Source のゲームの場合 (プロパティの起動オプションで設定します):
 
 
$ xrandrift -e -p %command% -freq 75
 
 
60Hz で動作するゲームの場合:
 
 
$ xrandrift -s -p OculusWorldDemo
 
   
 
====手動で xrandr を使う====
 
====手動で xrandr を使う====
   
  +
プライマリディスプレイが DVI-I-2 で DVI-I-3 が Rift の場合、1152x864 が 75Hz をサポートする最大解像度です。使用するには:
Say our primary monitor is DVI-I-2, and DVI-I-3 is the Rift, and that 1152x864 is the highest mode that supports 75Hz. To use this:
 
   
xrandr --output DVI-I-3 --primary --rotate left --mode 1080x1920 --rate 75 --auto --output DVI-I-2 --mode 1152x864 --rate 75 --auto --same-as DVI-I-3 --scale-from 1920x1080
+
$ xrandr --output DVI-I-3 --primary --rotate left --mode 1080x1920 --rate 75 --auto --output DVI-I-2 --mode 1152x864 --rate 75 --auto --same-as DVI-I-3 --scale-from 1920x1080
   
  +
Rift SDK ではセカンダリディスプレイの回転を推奨していませんが、回転しないと多くのプログラムで問題が発生します。以下のコマンドはプライマリディスプレイをディスプレイ全体の拡大版として設定します。パンしたい場合、{{ic|--scale-from}} を {{ic|--panning}} に変更してください:
Although the Rift SDK reccomends not rotating the secondary display, not doing so seems to cause issues with a number of programs. This command will set the primary monitor to have a scaled version of the entire display. If you prefer panning, change {{ic|--scale-from}} to {{ic|--panning}}.
 
   
xrandr --output DVI-I-3 --primary --rotate left --mode 1080x1920 --rate 60 --auto --output DVI-I-2 --mode 1920x1080 --rate 60 --auto --same-as DVI-I-3 --scale-from 1920x1080
+
$ xrandr --output DVI-I-3 --primary --rotate left --mode 1080x1920 --rate 60 --auto --output DVI-I-2 --mode 1920x1080 --rate 60 --auto --same-as DVI-I-3 --scale-from 1920x1080
   
  +
xrandr --auto を使用した場合、ディスプレイが乱れることがあります。以下のコマンドを使ってひとつのモニターに戻してください:
The above video modes can have some havoc on your display if you simply use xrandr --auto, as it'll still try to scale something. Use this to return to one monitor:
 
   
xrandr --output DVI-I-2 --primary --auto --rotate normal --panning 1920x1080 --scale 1x1 --output DVI-I-3 --off
+
$ xrandr --output DVI-I-2 --primary --auto --rotate normal --panning 1920x1080 --scale 1x1 --output DVI-I-3 --off
   
 
==動作するアプリケーション==
 
==動作するアプリケーション==

2017年2月28日 (火) 20:18時点における版

Oculus Rift は Oculus VR によって開発されているバーチャルリアリティヘッドマウントディスプレイです。

インストール

ハードウェア

Oculus Rift のデバイスは HDMI によってセカンダリディスプレイとしてグラフィックカードに接続します。センサーとして使うには USB でも接続します。oculus-udevAUR パッケージが適当な udev ルールを設定します。

完全に利用するには inputvideo グループにユーザーを追加する必要があります。plugdev グループは必要なくなりました (モードは 0666 に設定されます)。

SDK

公式の Oculus Rift SDK はAUR のパッケージ oculus-rift-sdkAUR からインストールすることができます。CMake ビルドの対応などの修正が加えられたバージョンは oculus-rift-sdk-jherico-gitAUR でインストールすることが可能です。

パッケージは X セッションが起動した時に oculusd デーモンが実行されるように設定します。パッケージをインストールして X を再起動すれば自動的にバックグラウンドで実行されます。

ビデオモード

Rift を適切に機能させるには、特定のビデオモードを使う必要があります。特に、リフレッシュレートが低い通常のモニタと同じビデオモードを使っている場合、ゲームのリフレッシュレートも低くなってしまいます。

Rift をプライマリモニタにしないと、同期が正しく動作しません。

ノート: ディスプレイを回転させると遅延フレームが発生し、Windows における Extended Mode と同じ状態になります。ディスプレイを回転しない場合、遅延がなくなります (Windows の Direct Mode と同等)。残念ながらディスプレイを回転しない状態で動作するアプリケーションは一部に限られています。問題なく動作するかアプリケーションごとにテストする必要があります。

手動で xrandr を使う

プライマリディスプレイが DVI-I-2 で DVI-I-3 が Rift の場合、1152x864 が 75Hz をサポートする最大解像度です。使用するには:

$ xrandr --output DVI-I-3 --primary --rotate left --mode 1080x1920 --rate 75 --auto --output DVI-I-2 --mode 1152x864 --rate 75 --auto --same-as DVI-I-3 --scale-from 1920x1080

Rift SDK ではセカンダリディスプレイの回転を推奨していませんが、回転しないと多くのプログラムで問題が発生します。以下のコマンドはプライマリディスプレイをディスプレイ全体の拡大版として設定します。パンしたい場合、--scale-from--panning に変更してください:

$ xrandr --output DVI-I-3 --primary --rotate left --mode 1080x1920 --rate 60 --auto --output DVI-I-2 --mode 1920x1080 --rate 60 --auto --same-as DVI-I-3 --scale-from 1920x1080

xrandr --auto を使用した場合、ディスプレイが乱れることがあります。以下のコマンドを使ってひとつのモニターに戻してください:

$ xrandr --output DVI-I-2 --primary --auto --rotate normal --panning 1920x1080 --scale 1x1 --output DVI-I-3 --off

動作するアプリケーション

バーチャルリアリティ#対応ソフトウェアを参照。