Search Unity

Oculus Quest / Rift Example Project available on GitHub

Discussion in 'VR' started by Corysia, Aug 27, 2019.

  1. Corysia

    Corysia

    Joined:
    Mar 14, 2018
    Posts:
    108
    So many people are having trouble with getting this going, I've started a simple example project. It's not complete yet -- I only just started it. But you're welcome to look at what I've done and how I did it.

    I intend to show how to get it working with a Quest and a Rift -- I don't own a Rift S, but I assume it's the same as a Rift, generally speaking.

    Again, let me say that I'm not finished. But you can see an early look here.

    https://github.com/Corysia/Unity-Oculus-Example
     
  2. Corysia

    Corysia

    Joined:
    Mar 14, 2018
    Posts:
    108
    At this point, I have the instructions up to how to move around with the thumbsticks. I've tested on my Quest, I haven't tried on my Rift yet.

    Tomorrow, I will add hands with LocalAvatar and grabbing so one can pick up the sphere.
     
  3. Vancete

    Vancete

    Joined:
    May 3, 2010
    Posts:
    198
    I appreciate the effort, I'll take a look at it later.
     
  4. Corysia

    Corysia

    Joined:
    Mar 14, 2018
    Posts:
    108
    Wouldn't you know it? Just as I'm starting to do this project, I see there's an announcement for version 1.40. Now I've something else to smoke test. o_O
     
  5. Corysia

    Corysia

    Joined:
    Mar 14, 2018
    Posts:
    108
    Showing the hands is now done. I needed to revisit the OVRManager bit in the first part of the example, I was way too tall. I've got my local copy grabbing now, but I haven't written up the instructions yet. I'm hoping to have that done by tomorrow evening.
     
  6. kru64

    kru64

    Joined:
    Mar 25, 2017
    Posts:
    2
    Excellent work!
    One drawback. There is some jitter on red ball after take it.
     
  7. Corysia

    Corysia

    Joined:
    Mar 14, 2018
    Posts:
    108
    I've updated my example for Oculus Integration 1.40 and solved the jittery ball problem. I've still only tested this with a Quest. And only the README is updated, I figured the instructions for how to do it were more important than the actual project. I will try to get the project files up to date and a new APK tomorrow.
     
  8. FMRAustinSnider

    FMRAustinSnider

    Joined:
    Sep 18, 2019
    Posts:
    4
    I am running into this issue (or what appears to be a related one) as well using 1.40 App package and 1.40 Oculus Utilities Plugin in Unity 2019.1.13f1 I'm seeing my controllers tracking (they appear if my hands approach the guardian, and raytraces that are supposed to come from the controllers work) but none of my meshes or other visuals appear.

    Has anyone seen this behaviour? I'm using the LWRP on Quest.
     
  9. Corysia

    Corysia

    Joined:
    Mar 14, 2018
    Posts:
    108
    APK for a 1.40 build is now in the Releases. The project is updated for the Quest. I still need to find the time (or a volunteer) to go thru these steps on a Rift.
     
  10. davejas

    davejas

    Joined:
    Apr 12, 2017
    Posts:
    5
    Thank you so much for doing this! You really helped me get started with this on Quest.