VR For Developers
VR For Developers
VR For Developers
1.
Which sdk to develop on unity ?
Unity (or Unreal Engine) is currently a big mess when it comes to
AR/VR. Each constructor has his own SDK, so you can’t “easily”
develop a game/app once and run it everywhere.
OpenXR is a royalty-free, open standard that provides
high-performance access to Augmented Reality (AR) and Virtual
Reality (VR) - collectively known as XR - platforms and devices.
Unity and Unreal Engine both are working bringing OpenXR
support to their respective engines… but it’s not released yet.
Unity has developed new XR plugins with the move to a plugin
architecture future support for OpenXR… and there is no
simulator (so need HMD to dev/test).
https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@0.9/manual/index.html
2.
What can we use now ?
https://github.com/ViveSoftware/ViveInputUtility-Unity/wiki
The VIVE Input Utility (VIU) from HTC is a toolkit for developing
VR experiences in Unity, especially with the VIVE/VIVE Pro but
also targeting many platforms from a common code base
including Oculus Rift, Rift S Go, Quest, Google Daydream, VIVE
Wave SDK (e.g. VIVE Focus standalone) and more… and there is
a simulator.
3.
Installing VIU
Instead of starting from scratch, we will use this demo project.
https://github.com/ludonkey/demotraining
https://github.com/ludonkey/demovr (final version)
Open the AssetStore window and search for “Vive Input Utility”,
choose “Download” and “Import”.
Open the Edit > Preferences > VIU Settings and active the
Simulator.
4.
Setup the player
REMOVE
(You can skip this step if you are using a QWERTY keyboard.)
Replace the content of this file:
Assets\HTC.UnityPlugin\VRModule\Modules\SimulatorModule.cs
By this version.
6.
Setup the teleportation
Choose the Ground game object and add the Teleportable
component.
7.
Repair the collectibles
Update the collectible.cs script.
using HTC.UnityPlugin.ColliderEvent;
using UnityEngine;
void Start()
{
bouncingSound = GetComponent<AudioSource>();
gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameController>();
}
Oculus Quest
Open the Edit > Preferences > VIU Settings and active the
targeted platform.
Steam just updated his SDK, install it from the Asset Store.
11.
Go further
Design, Develop, and Deploy for VR
https://learn.unity.com/course/oculus-vr