sorry but i’m new to all this, i hope someone can help
i have unity 5.2.0f3 personal and rift dk2 running the latest 0.7 SDK.
Q1
inside unity, i understand i’m supposed to go to player settings and check ‘Virtual reality supported’ and press play and the tha game should come up in my rift. it doesn’t, it plays as normal on the monitor. i don’t know if i need to install anything, i downloaded and installed Oculus Utilities for Unity 5 V0.1.0-beta
but didn’t do anything with the prefabs in my scene. i also tried their demo scenes and nothing in the rift.
Q2
suppose i want to build a .exe to run standalone on the rift (which of course is the real goal), how do i do that? when i look under build settings i don’t see anything about the rift.
i’ve seen some old docs but notice everything is different of rift sdk 0.7
thanks, steve
UPDATE: i just noticed i have some messages in the console ‘Cannot start with unsupported graphics API’ and ‘Bad config or LibOVR not found. VR disabled’, i guess i need to look into that
ok, i figured it out, i needed to add direct3d11 on graphics API for windows and delete direct3d9. looks great now inside unity, but still no idea how to build standalone
Player settings cover .exe and other builds, not just the editor. So I don’t think you should expect to see any oculus-specific settings in the build settings, just try building it like you would any windows unity app.
so i go to the player settings and check ‘Virtual reality supported’ and build, then i run as 'Game.exe -vrmode oculus’ as per this doc Unity - Manual: VR development in Unity and i get a crash as soon as it tries to start
Ah I see. I can’t help with that directly, but in all sorts of threads in the VR forum I can be found recommending people try the latest patch releases of Unity to see if problems have already been fixed (with the usual caveats about backing up project first in case there are other issues with latest patch release).
The first patch for 5.2 is out so I’d give that a try.
thanks but i’m not sure i want to get into patches. i can work in the editor for now which is working fine with my rift. is anyone else able to build a .exe that works with DK2 on that latest base download, 5.2.0f3?
@pranabss and @ABerlemont In the Player Settings there is a toggle for Automatic Graphics API. Uncheck the toggle and a List of Supported graphics API’s will appear underneath the toggle. Move DirectX11 to the top and run.
If any of you are having trouble with standalone builds, please make sure you have virtual reality supported check and that your DK2 is plugged in and on when you run the executable. If the app crashes, please try the latest patch release. 5.2.2p2 here: Download Archive.
If you still see the issue on the latest patch release, please file a bug report and post the bug report number here so that I can look into the issue. I haven’t had standalone crash for myself in any of my test projects, but there could be a setting that causes it.