LoginSignup
0
1

More than 1 year has passed since last update.

OpenXR Windows 編

Last updated at Posted at 2022-11-02

から Windows 向けの内容を分離。
OpenXR を使う部分は同じグラフィクスAPIを使っていれば共通化できる。
OpenGLES とか Vulkan なら、WindowsMR, Steam, Oculus と Android 全部で動くエンジンにできるのではないか。

OpenXR本家のサンプル hello_xr のビルド

openxr_loader を使うサンプルが

src/tests/hello_xr フォルダにあります。
これを vc + cmake でビルドします。

普通に cmake ビルドします。

実行

  • build/src/tests/hello_xr/hello_xr.exe
  • openxr_loader.dll にパスを通す

openxr runtime

Desktop は複数の VR platform があって winmr, steam, oculus などが選択できます。
アクティブな openxr_loader という概念がありこれが自動で選択されます。
winmr では d3d, oculus では opengl か vulkan, steam は両方できるという違いがあり、
hello_xr.exe の実行引数で Graphics API 指定する必要があります。

は、VR paltform の切り替えと、platform の拡張の一覧を見れます。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1