Setting up Oculus Rift in Unity with OpenVR + SteamVR - unity3d

Hi I'm trying to set up my Oculus Rift in Unity to develop with OpenVR and Steam. I'm using Unity version 2017.4 and have added the SteamVR package from the asset store to my project. I'm guessing I need to download the github OpenVR folder and add to my project, but is that all? and will the Rift be recognised then? I'm not sure if I need the Oculus integration tool from the asset store as well or will it interfere? Any step by step assistance would be amazing, thank you in advance (also, I know developing with Oculus and not Steam might be easier but need to use Steam for this project)

I'm currently working with Oculus Rift so...
First you need to download Oculus Rift Software. It will help you setup your Rift. You can download it HERE
Second, you probably need Oculus Rift SDK for Unity. It's working perfectly well for me. I just click Play and app is starting in Oculus Rift. You can download it HERE. And use Import Asset to add in to your Unity Project. I highly recommend also Oculus Rift Avatar SDK (for hands and nice support for Touch Controllers) and Oculus Rift Sample Framework for prefabs (like grabbers for grabbing things obviously).
Also if you will have any problems, remember to update your USB Drivers (especially for USB 3.0).

Related

Agora unity sdk is not letting the scene to render with MRTK Oculus Integration

I am building an oculus app using MRTK (Mixed reality toolkit) and need Agora's video feed streaming capabilities.
While building my app I am able to hear sound but not able to see unity scene, it's all blank and appears as a black screen.
Has anyone encountered this before?
I did try Agora SDK with oculus integration without MRTK and it works fine.
yes change the project settings xr-Plug in management to oculus for android.

Testing on a gearVR

I am building my first VR game for the Gear VR(Since I got it for free). The question I have is there a way I can plug in the GearVR and run it on unity that way I can see what is going on in the game, while the game is being played? Currently the way I am testing my game is by building it, transferring it to my phone, installing it, then testing it. Which is very tedious. Here is my setup in case it helps:
unity 5.5
Android Studio
Oculus Mobile SDK
Unity should be able to load the code and profile it without you manually installing. If you follow the instructions from oculus all you need to do is check the box for "Development Build" and "Autoconnect profiler"
You also may want to enable Developer Mode on the phone so the app can be run without it being in the vr headset.

360 panorama in Browser, HTCVive, Oculus Rift

can you please help me to understand how can I make 360 panorama for Web.
I am using SteamVR and Oculus sdk because I want universal app for (Web, HTCVive, Oculus Rift).
It works in Unity but after compiling for WebGL it does not work on web.
Please review this link.
Can you tell me what I am doing wrong?Or maybe to develop the universal app is impossible?
Thank you!
HTC Vive or Oculus SDK are meant for platform specific apps. You cannot use them in WebGL build. Unity at the moment doesn't have anything for WebGL + WebVR according to this.
But to support both features WebGL and WebVR you can this plugin. This is a WebGL template which has a wraper of WebVR in its js script.
Follow this link to implement it in your WebGL App : Exporting An Indie Unity Game to WebVR
But I recommend you create platform specific builds as well for Oculus and HTC Vive. Its not much effort to change the platform and build the app.
Hope this helps

Should I enable VR support for google cardboard in Unity

I'm creating my firs VR app i unity for google cardboard. I noticed VR support setting in the inspector. I searched a little bit and it isn't clear for me if I should enable it for google cardboard. Here is the link for unity manual about it. Thanks for help!
For a while you should not enable VR support since Unity has no native support for Cardboard yet, although it was announced on Vision Summit 2016 for future versions.
By now, you should only use the Unity package with the appropriated prefabs for Google Cardboard available at https://developers.google.com/vr/unity/download.
You dont need to check Virtual Reality Supported to make an app for Google Cardboard. Make sure that you download the Google VR SDK for Unity and bring it in your assets folder in your project. Then just search for GVR Main in your assets folder and bring that into your project scene and you are good to go. Also you may not need the default camera in the scene as well. Just create your scene and your build is automatically supported for Google Cardboard. VR Supported is largely for computer dependent devices like the Oculus Rift and not apps that you run on your mobile phones.

Oculus Rift doesn't work for demo application

I'm trying to develop a game in Unity with Oculus Rift. I have DK1 as my environment. I have a game called RiftCoaster as demo and it works fine but the default demo in Oculus rift doesn't work. The demo unity projects I download from Oculus doesn't work as well. What might be there problem? Although it works with some samples I couldn't make it work for Unity projects of default demos.