microsoft / MixedReality250

Open source project from the //build2017 Mixed Reality Academy
Other
43 stars 24 forks source link

Spinning Island bug when Debug is enabled #2

Closed Tam66662 closed 6 years ago

Tam66662 commented 7 years ago

Symptom: If you are using a Hololens, after you place the island, go to the back of the volcano and click the "Debug" wrench icon, which will enable the debug window. If you now put one of your hands in and out the frustum view, the island and debug window graphics will spin around you indefinitely.

I traced the problem to the following:

To resolve this issue, I simply wrapped MixedRealityTeleport's Update method with IsDisplayOpaque to make sure that it only does the fade if you are on an immersive headset.

MixedRealityTeleport.cs:

    void Update()
    {
        if (UnityEngine.XR.WSA.HolographicSettings.IsDisplayOpaque)
        {
            // ... all the code that was here originally looks like it was only relevant to the immersive headset.
        }
    }

Regards, Tam

darax commented 6 years ago

I added the workaround . Wow, that bumper rot showing up non zero is very surprising. I'll have to see what's going on when Unity 2017.2 can build for HoloLens again.