Search code examples
unity-game-engineoculusunity-webgl360-panorama

360 panorama in Browser, HTCVive, Oculus Rift


can you please help me to understand how can I make 360 panorama for Web. I am using SteamVR and Oculus sdk because I want universal app for (Web, HTCVive, Oculus Rift).

It works in Unity but after compiling for WebGL it does not work on web. Please review this link.

Can you tell me what I am doing wrong?Or maybe to develop the universal app is impossible?

Thank you!


Solution

  • HTC Vive or Oculus SDK are meant for platform specific apps. You cannot use them in WebGL build. Unity at the moment doesn't have anything for WebGL + WebVR according to this.

    But to support both features WebGL and WebVR you can this plugin. This is a WebGL template which has a wraper of WebVR in its js script.

    Follow this link to implement it in your WebGL App : Exporting An Indie Unity Game to WebVR

    But I recommend you create platform specific builds as well for Oculus and HTC Vive. Its not much effort to change the platform and build the app.

    Hope this helps