Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Vulkan for Oculus Quest

Discussion in 'AR/VR (XR) Discussion' started by Claytonious, Sep 2, 2019.

  1. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    695
    Is there any news on a planned release date? As mentioned here and elsewhere it was thought to be coming soon.

    Thanks!
     
    ROBYER1 and hippocoder like this.
  2. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    I also would like to know, did you have any update?
     
  3. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    292
    I'm also hoping for more official information from Unity!
     
  4. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    The latest Unity 2020 alpha or Oculus Integration for android (through package manager) seemed to mention Vulkan somewhere, I can't find it now but it sounded like they were doing a check before build time to make sure it definitely errors out if Vulkan is added... soo definitely not ready!
     
    hungrybelome likes this.
  5. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    292
    Claytonious likes this.
  6. Gaary

    Gaary

    Joined:
    Sep 5, 2018
    Posts:
    2
    Hey folks, honestly I'm a newbie when it comes to VR-development.
    But from time to time I check out the latest capabilities in Unity.

    So do i assume rightly that creating VR in Unity for Oculus Quest should become much more efficient with...
    a) Vulkan API Support for VR (2019.3 or 2019.4?)
    b) Oculus Link - Instant project preview without the whole workaround creating *.apk and so on?

    Thank you guys.
     
  7. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    695
    Yes. Vulkan should improve runtime performance (but we shall have to see and of course it will be extremely project-specific - you should be able to do some things to your project to take advantage of it in the worst case either way).

    Building an APK is really a small impediment. You need to implement good editor tooling to "simulate" the VR experience in the editor in order to quickly iterate anyway (such as being able to "look around" with mouse or keyboard by transforming the camera like the headset would, etc.) Since you need this tooling for the best possible iteration in the first place, a half-step like Instant Preview isn't as important as it might seem for many of us. (You still have to go to the effort of putting on and taking off the headset - when you're quickly iterating on something, even that is too much time to waste.) But of course it's a welcome benefit that will make some scenarios more streamlined!
     
  8. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    Screenshot_2019-10-02-23-28-39-065_com.google.android.youtube.jpg
    Watch this space
     
    dimitris_baud and Gruguir like this.
  9. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    695
    The surprising thing to me on that slide is "Fixed foveated rendering not yet supported" - I am using it right now in 2019.2 with LWRP. Is this only referring to the new, actually-renamed "Universal" render pipeline in 2019.3?
     
  10. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    See here, this thread goes into detail of all the issues we found. It does work on URP just you need to edit ForwardRenderer.cs and then it works with MSAA on the device. However, MSAA is broken in the editor and all other platforms apart from Oculus Quest/Go basically

    https://forum.unity.com/threads/fix...oculus-quest-not-working.686662/#post-4694618
     
    hippocoder likes this.
  11. Gaary

    Gaary

    Joined:
    Sep 5, 2018
    Posts:
    2
    Thank you for your explanations. The easier the development will be, we will get more applications und hopefully VR will be established. :)
     
    ROBYER1 likes this.
  12. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,729
    Weird seeing Unreal / Epic ahead in mobile space but that's swings and roundabouts. Interested in foveated myself.
     
  13. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    Hoping for a fix and a means of activating it without loads of imported Oculus integration stuff.
     
  14. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,729
    Even oculus do not want you using oculus' stuff, but the unified XR stuff instead. This is because according to them, we'd be best off developing our games not porting them :) I agree!
     
  15. Gruguir

    Gruguir

    Joined:
    Nov 30, 2010
    Posts:
    322
    yes I was pleasently surprised recently having an OvrManager (used only for Quest FFR) in an OpenVR build without running into issues :)
     
  16. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    There must be a way to activate FFR without having the OVR Plugin or Oculus Integration Assets in your project though surely, as Unity has a built-in copy of the OVR Plugin for the Oculus Android Support/Oculus Loader within the XR Subsystems package. They even advise not to use the Oculus Integration assets within a project using XR Subsystems as it causes incompatibility issues due to having a duplicate of the OVR Plugin.
     
  17. Gruguir

    Gruguir

    Joined:
    Nov 30, 2010
    Posts:
    322
    ah I tried to take a look at XR subsystems and URP mobile VR at the same time, it was a disaster ^^. I'll wait until both are out of preview / production ready, too much headhache and not enough time. I'm really looking forward for Vulkan and stable new UT features :)
     
  18. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    I'm just going to keep posting everywhere and ask people how to set FFR without importing a load of Oculus example assets, we are being encouraged to (and also Unity is supporting) cross-platform VR development but not being able to activate FFR through the Unity integrations of the Oculus plugin is baffling.
     
    Claytonious likes this.
  19. Gruguir

    Gruguir

    Joined:
    Nov 30, 2010
    Posts:
    322
    @ROBYER1 I agree but it will come eventually.
     
  20. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    This Oculus Connect talk mentions how Vulkan allows for cross-platform Fixed Foveated Rendering (FFR) due to the extension no longer being Qualcomm only. This means that once Vulkan is working for Quest/Go, we may well see FFR cross-platform between Vulkan on Windows platform headsets as well as Mobile VR. This could also extend to other Vulkan features, hopefully meaning that Vulkan becomes more of a cross-platform standard for VR rendering.


     
    Last edited: Oct 15, 2019
  21. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    @hippocoder We must wait patiently in this forum to find out if Klingons indeed did blow up the Vulkan support o_O:oops:
     
    hawken and Dragnipurake97 like this.
  22. appymedia

    appymedia

    Joined:
    May 22, 2013
    Posts:
    86
    Hahah I admire the persistence :D
     
    ROBYER1 and Gruguir like this.
  23. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    Each day I grow more impatient :( some news or an update would be brilliant
     
  24. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,729
    I notice you beating them with a stick on github, thanks :) but I also see they're being really crap at XR support...

    Do you use multiview? that's the option to pick if using ES3 like me.
     
  25. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    I use the Single Pass rendering mode for Oculus Quest at the moment until the implementation of XR Management behaves with the Oculus Plugin or if we can active FFR alongside using XR Management.

    Elsewhere issues reported with Shader graph/Universal RP are being chased up here :cool:
    https://github.com/Unity-Technologies/ScriptableRenderPipeline/pull/4948#issuecomment-552442867
     
  26. superjayman

    superjayman

    Joined:
    May 31, 2013
    Posts:
    170
    So, when will Vulkan Support Be Added For Quest?? CAN UNITY GIVE A CLEAR ANSWER?..
     
    hungrybelome and ROBYER1 like this.
  27. VTIL_Papageorgiou

    VTIL_Papageorgiou

    Joined:
    Dec 14, 2017
    Posts:
    11
    When Unity said "later this year" they probably meant 31.12.2019
     
    ROBYER1 and Dragnipurake97 like this.
  28. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
  29. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    Dragnipurake97 likes this.
  30. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    292
    Has anyone tried the 2019.3 RC1? https://unity3d.com/unity/beta/2019.3.0f1

    There are is a mention of XR / Vulkan, but nothing Quest-specific:

    Code (CSharp):
    1. XR: Fixed an issue that caused Vulkan standalone player with single-pass instancing to show black screen in HMD. (1130342)
     
  31. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    Standalone player refers to Windows and mac standalone platforms, Vulkan has been there for a little while, however Vulkan for Android (and Android VR on Oculus Quest/Go) is still in the works until an official announcement.

    At this point I am lost on whether to use 2019.3 Release versions or move to 2020 alpha/beta
     
    hungrybelome likes this.
  32. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,729
    I'm sitting on 2020.1 onward cos my stuff is stable on it (if I don't use shadergraph). If there is no announcement for it or news in notes it means they'll either blog it or it's not ready yet.
     
    ROBYER1 likes this.
  33. ROBYER1

    ROBYER1

    Joined:
    Oct 9, 2015
    Posts:
    791
    Moved everything to 2020 alpha latest release today with no issues, seems I'm always going to be in Alpha/Beta!
     
  34. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,729
    I'll stop when the basics are available:
    • vulkan
    • vr priority
    • no bugs
     
    Dragnipurake97 and ROBYER1 like this.
  35. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    695
    ... mmmm'kay
     
    hawken and ROBYER1 like this.
  36. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,729
    Yep since some things aren't going to get back ported (anything that qualifies as feature, and vulkan is a feature) :/
     
    ROBYER1 likes this.
  37. Dragnipurake97

    Dragnipurake97

    Joined:
    Sep 28, 2019
    Posts:
    39
    Someone at Unity confirmed that Vulkan support for VR is coming in 2019.3 but that it's been delayed yet again (was supposed to release tomorrow). Is MSAA working on 2020.1? I am using 2019.2 and it's still broken but may move to 2020.1 if some more of the SRP stuff is working.
     
    hungrybelome and ROBYER1 like this.
  38. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    695
    Does anyone have any news on Vulkan for Oculus Quest for 2019.3 yet?
     
  39. Dragnipurake97

    Dragnipurake97

    Joined:
    Sep 28, 2019
    Posts:
    39
    Looks like is coming sometime shortly after new year now.
     
  40. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    695
    OK - where did you find that out?
     
    ROBYER1 likes this.
  41. Dragnipurake97

    Dragnipurake97

    Joined:
    Sep 28, 2019
    Posts:
    39
    ROBYER1 likes this.
  42. VTIL_Papageorgiou

    VTIL_Papageorgiou

    Joined:
    Dec 14, 2017
    Posts:
    11
  43. Dragnipurake97

    Dragnipurake97

    Joined:
    Sep 28, 2019
    Posts:
    39
    "XR: Enable multi-pass rendering using Vulkan for XR (built-in rendering pipeline - SRP support coming in other fixes)" is in the beta patch notes so looks like support is coming in a later fix for this release? Hopefully is supports Multiview and not just Multipass.
     
    hippocoder likes this.
  44. VTIL_Papageorgiou

    VTIL_Papageorgiou

    Joined:
    Dec 14, 2017
    Posts:
    11
    Still not able to build with Vulkan and the latest 2019.3.0f3. Not sure what that changelog message means.
     
    ROBYER1 likes this.
  45. Dragnipurake97

    Dragnipurake97

    Joined:
    Sep 28, 2019
    Posts:
    39
    Looks like you can only build with the bultin renderer and not the SRP renderers (URP/HDRP).
     
  46. VTIL_Papageorgiou

    VTIL_Papageorgiou

    Joined:
    Dec 14, 2017
    Posts:
    11
    I got Vulkan to work with the Quest on 2020.1.0a16.

    Here is what I did:
    - In Assets\Oculus\VR\Editor\OVRGradleGeneration.cs, comment the check for Vulkan API (should be 94-101)
    - Make sure to use Legacy XR (Player => XR Settings should be Oculus like in previous versions of Unity) and not the new XR packages system
     
    ROBYER1, hungrybelome and andybak like this.
  47. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    26,729
    Not Universal Pipeline though?
     
  48. VTIL_Papageorgiou

    VTIL_Papageorgiou

    Joined:
    Dec 14, 2017
    Posts:
    11
    URP with multipass only renders left eye. With Single Pass and Vulkan, only skybox is rendered, no objects.

    I did a few small meaningless tests and for now I don't see a performance gain by using Vulkan. This will probably change when it is finally released.
     
    ROBYER1 likes this.
  49. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    292
    Did you see a measurable increase in performance? I think I remember some people claiming a 10% performance boost from OpenGL to Vulkan.
     
  50. cbboyer

    cbboyer

    Joined:
    Jun 2, 2014
    Posts:
    15
    We made it to 2020, and still no official word on this topic. It's so painful knowing that free performance upgrades on Quest are just around the corner...
     
unityunity