Boondogl / Unity-WebVR-Template

Enable WebVR exports via Unity 5! Included are a full sample project and an importable UnityPackage.
GNU General Public License v3.0
56 stars 14 forks source link

Doesn't work for me with Unity 5.6 #3

Open Veeeeeeee opened 7 years ago

Veeeeeeee commented 7 years ago

Hey there,

first of all, awesome Project! Thank you for sharing this great Resource :) I got it to run with Unity Version 5.5 but now after the upgrade to 5.6.0f3 the exported html of the sample Project shows a blank unity canvas (the 3 buttons in the bottom right corner still there, but dysfunctional), in the top left corner of the screen it shows the text: %UNITY_WEBGL_LOADER_GLUE%

Greetings, Vee

apalma23 commented 7 years ago

Hey Vee,

Thanks for checking it out!

I think the issue is with Unity's new export format, which makes old custom WebGL templates (like ours) break. If you compare the output of the 5.5 version to the 5.6, the code structure and especially the UnityProgress.js files are very different.

I've CC'd Casey Yee from Mozilla here who helped me work on the template, so hopefully we can get the template back up and running together.

I appreciate you bringing it to our attention!

Regards, -Anthony

On Wed, Apr 12, 2017 at 6:28 AM, Veeeeeeee notifications@github.com wrote:

Hey there,

first of all, awesome Project! Thank you for sharing this great Resource :) I got it to run with Unity Version 5.5 but now after the upgrade to 5.6.0f3 the exported html of the sample Project shows a blank unity canvas (the 3 buttons in the bottom right corner still there, but dysfunctional), in the top left corner of the screen it shows the text: %UNITY_WEBGL_LOADER_GLUE%

Greetings, Vee

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Boondogl/Unity-WebVR-Template/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/ADhT8FlfNb9eq9y6yUBVCmZWmTR3peZoks5rvNGDgaJpZM4M7bIS .

-- -Anthony Palma CEO, Jump www.playonjump.com (304) 281-1413

shukerullah commented 7 years ago

It doesn't work for me too on Unity 5.6.

apalma23 commented 7 years ago

Hello @shukerullah, yes the project needs to be updated for Unity 5.6 as Unity changed how its templates are coded in that version. @cvan is part of the Mozilla team that helped with this, so hopefully they can take a look! If not, we may be able to get to it soon, but we'd be happy to have a community member update it as well as it's not a high priority for us at this time.

cvan commented 7 years ago

@Veeeeeeee @shukerullah: https://github.com/xirvr/unity-webvr by @xirvr is probably your best bet. Let me know if you're able to run a project smoothly with that.

shukerullah commented 7 years ago

thanks @apalma23. @cvan I will try it today thank you too.

juj commented 7 years ago

Do the changes at https://github.com/chrmi/unity-webvr/commit/f8313c99317f76c4a8936bb0f4fef8272c634a7a#diff-05afc06a54c30e12c9c6dd83d7a34a06 help resolve the differences to the template? It looks like that commit does the necessary changes for the template in that repo, so could following the same changes help resolve here as well?

apalma23 commented 7 years ago

@juj yes, that repo is a working Unity WebVR export, so that should at a minimum enable you to get up and running again instead of using this outdated repo. Even Mozilla pointed us there recently.

I don't know if that repo supports controller input or not based on a quick scan of the code, but do let us know if it does! That's the big update we need on top of updating to 5.6.

Veeeeeeee commented 7 years ago

@cvan @apalma23 @juj @shukerullah

Hey guys,

i tried the https://github.com/chrmi/unity-webvr repository project today with unity 5.6.1f1. In Unity it runs, but throws the following exception: EntryPointNotFoundException: FinishLoading WebVRCamera.Start () (at Assets/Scripts/WebVRCamera.cs:42) When i compile it to webGL (using the WebVR Template) and run it on a local server it loads and plays like any normal WebGL export, but VR doesn't work (the unity camera is static and nothing happens in my HMD, i use an oculus rift). So, my question is, did anyone of you get it to run, and if yes, how did you do it? The Project in this repository (Boondogl/Unity-WebVR-Template) does work in nightly and not in chrome for me. But since a Nightly or Oculus update the transmission of the HMD Orientation became very choppy, which makes it unplayable :( So atm there is no working webvr export that i could find.. and i kind of need it, since i develop a webvr game for an agency. I hope i don't have to wait for the official unity webvr export, since it's unclear when that will be.. Do you guys have any updates/ideas/experiences/other exports concerning this? Thanks for your work on this so far! Any help is greatly appreciated :)

cvan commented 7 years ago

@caseyyee can you provide any tips here?

caseyyee commented 7 years ago

Hey there :) This set of assets isn't actually functional at all. It misses some key pieces for entering VR and doesn't account for some of the changes in the latest WebVR API.

I've been working on a set of new assets based off of the work here, and so far, I have it rendering into the headset and entering VR correctly. There are performance issues that need to be resolved before it is in a useable state (related to synchronizing frame rates in Unity to the WebVR VRDisplay). Once I have that figured out, I'll update this issue and share code.

dioking commented 7 years ago

Very cool developer! Is there a version that can fit 2017? Can I only use 5.6?