1. All Unity Pro perpetual license customers: your special offer to subscribe is ready! Click here.
  2. We're running a survey about the usage of our graphics pipeline, help give us your feedback.
  3. Unity 5.6 beta is now available for download.
  4. Unity 5.5 is now released.
  5. Check out all the fixes for 5.5 in patch releases 1 & 2.
  6. Enter the Google Play Indie Games Contest in Europe. Read more about it here.
  7. Get prepared for the Tizen Mobile App Incentive Program! Read more about the upcoming program here.
  8. Enter the Microsoft Developer Challenge for a chance to win prizes. Read more about it here.

WebGL and WebVR

Discussion in 'WebGL' started by MaT227, Mar 8, 2016.

  1. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Messages:
    564
    Hi there,

    I am wondering if Unity currently supports Oculus, Vive or some VR device using WebGL or if there's a way to do VR using Unity and WebGL.

    Thank you !
     
    linojon likes this.
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Messages:
    796
    Not at the moment. We have done some initial investigation and we will likely implement it at some point in the future, but this is not on our short term roadmap.
     
    Blarp likes this.
  3. MaT227

    MaT227

    Joined:
    Jul 3, 2012
    Messages:
    564
  4. arapps3d

    arapps3d

    Joined:
    Jan 13, 2015
    Messages:
    13
    Hello Unity team, can you specify when this would be approximately implemented?
    I'm searching for a solution to build a Cardboard VR project from Unity (WebGL Target).......Or maybe there is already a Web GL / WebVR Cardboard solution that I just did not find yet? Thanks in advance.
     
  5. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Messages:
    1,455
    Today, it is possible to use WebVR in Unity using this plugin: https://github.com/gtk2k/Unity-WebVR-Assets

    In the future, we will have WebVR support integrated into Unity WebGL, so that Unity VR projects will work without modifications. We have a working prototype of this, I expect this to ship in Unity 5.6, or maybe 5.5.

    That said, since you mentioned Cardboard, I assume you want to target mobile phones. Due to performance and memory constraints in Unity WebGL, this is currently not recommended or supported. You can still try it, but expect results to be unsatisfactory.
     
  6. arapps3d

    arapps3d

    Joined:
    Jan 13, 2015
    Messages:
    13
    Hi Jonas, thanks for the fast reply! I will check the github solution.
     
  7. BadSeedProductions

    BadSeedProductions

    Joined:
    Dec 26, 2014
    Messages:
    72
    Any updates? Is there anywhere I can go to follow the development of this?
     
  8. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Messages:
    1,455
    No updates yet. This will not be in 5.5, possibly 5.6.

    That said, I think this feature will stay in an "experimental" state for a while to come. Not because WebVR doesn't work by itself (it does), but because the tech stack of the WebGL platform is, IMO, not ready to drive VR content yet (outside the realm of simple demos). VR requires consistently high frame rates with no hick-ups - but on a platform without threads, it is not possible to achieve that during the load of scenes for instance. So we will need other problems solved first before being able to use this for real production content. That said, I think there is value in having the feature available to experiment with before that.