Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
BLACKISH's avatar
BLACKISH
Honored Guest
10 years ago

Oculus Cam doesn't turn on - Turn on from inside unity?

We have our Unity app in the autostart of a Win8 PC. But sometimes the tracking camera simply doesn't turn on when we start up and the app runs...

Is there a way to detect if the tracking camera is on and if not, then turn it on (or restart it or whatever) from inside Unity?

3 Replies

Replies have been turned off for this discussion
  • Are you certain the hardware is working? For example, if you run the Oculus Config Util demo scene (or your Unity game without autostart)? It could be an issue with the sync cable maybe also.
  • Yes, the hardware is working.
    This problem happens randomly after reboot (tested on 2 different machines with multiple DK2 sets)
    Restarting the unity app doesn't help.
    Opening the oculus config util helps most of the time and the light on the cam then comes on, but we can't really do that since our target PC doesn't have a monitor, keyboard or mouse attached.
  • Just for the record:
    Turns out the problem was that we were launching the application too soon after launching the PC (we have it in autostart). If we wait a minute before launching the application, everything works just fine. (We now have an autohotkey script in autostart that waits and then launches the application)