Search Unity

Showcase How to enable Application SpaceWarp (Video Guide & Minimal project)

Discussion in 'VR' started by DevDunk, Jul 20, 2022.

  1. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    I made a quick tutorial on how to enable Application SpaceWarp for the Oculus/Meta Quest (2)

    I include a project with the minimal setup required, which can be used as a starting project or template for your Quest games.
    If there is any feedback that's welcome (on the video or repo both)

    Video:

    GitHub Repo: https://github.com/smitdylan2001/ApplicationSpaceWarp

    (also if this post conflicts with any rules I missed, feel free to let me know or delete it)
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    This was helpful, thank you. I just grabbed your project from the 2021.3 branch, opened it up in 2021.3.7f1, and it works right out of the box:

    Thank you! This looks like a great starting point.
     
    DevDunk likes this.
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    Awesome!
    Just updated the branch to work last week and probably will make a new video for 2021 soon
     
    JoeStrout likes this.
  4. jonkelling

    jonkelling

    Joined:
    Dec 18, 2019
    Posts:
    21
    We presently have the OpenXR plugin enabled, not the Oculus one (can't have both at the same time). I get the following exception when trying to SetSpaceWarp(true):
    System.DllNotFoundException: Unable to load DLL 'OculusXRPlugin'
    . Anything you've come across before?
     
  5. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    OpenXR has no AppSW support for Unity at this moment (as far as I know). Either don't use AppSW or make seperate builds for quest (2) with the feature enabled.
     
    jonkelling likes this.
  6. ChovekaZavur

    ChovekaZavur

    Joined:
    Oct 15, 2020
    Posts:
    2
    Not sure about the error itself but was able to get OpenXR to work with AppSW, although it produced some graphical glitches in some scenes.
    Did this by getting the Oculus Integration package, grabbed the OvrCameraRig.prefab and slapped it onto my OpenXR rig went into it and disabled Eye Anchors and set the tracking mode to floor.
     
  7. Timtaotao

    Timtaotao

    Joined:
    Sep 13, 2019
    Posts:
    12
    Is this still impossible with OpenXR plugin provider? Thanks
     
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    It's definitely not supported out of the box. You might be able to get it work by integrating the OpenXR extensions yourself, but no guarantees there
     
  9. Timtaotao

    Timtaotao

    Joined:
    Sep 13, 2019
    Posts:
    12
  10. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
  11. Timtaotao

    Timtaotao

    Joined:
    Sep 13, 2019
    Posts:
    12
    So, your suggestion is to switch to Oculus plugin provider? I'm using OpenXR plugins right now, is the price to switch to Oculus pretty low according to your experience?
     
  12. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,059
    Depends on your setup. For me it's pretty much cross compatible