Skip to main content
Up and Coming
January 26, 2014

Tracking in my Unity game suddenly stopped working

I've been testing the Oculus Rift functionality of my Unity game on a regular basis, but today the head tracking just stopped working. The Tuscany demo still works, so there's no issues with the hardware or anything. Even so, just for grins, I've tried rebooting and using different USB ports, but no luck.

Any tips on how I can debug this?
    This topic has been closed for replies.

    4 replies

    Up and Coming
    January 26, 2014
    Try re-importing Unity integration. Most likely you got your plugins corrupted or something.
    SteveTackAuthor
    Up and Coming
    January 26, 2014
    Thanks for the suggestion! I tried that, but still no head tracking.

    UPDATE: I created a quick scene in the same project and the head tracking and everything DID work. So it seems to be a bug in code or something that I did in the actual game. The thing is, I wouldn't know how to stop head tracking if I tried, so I don't know what to look for.

    I do have a slightly unusual setup with three pairs of cameras on different layers, but they've always worked before. Hmm.
    SteveTackAuthor
    Up and Coming
    January 27, 2014
    OK, I figured it out.

    I didn't realize until after some trial and error that the head tracking is specifically tied to the cameras on layer 0 and layer 1. I was messing around with my camera layers and had my farthest ones set to 2 and 3. So all I had to do was change those to 0 and 1 and head tracking was back.

    Whew, just glad to have it working again.

    UPDATE: Just a quick correction. Obviously only one camera is associated with tracking. That camera is whatever is the layer 0 camera.
    Inspiring
    January 27, 2014
    Glad you figured it out.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV