Open ghost opened 6 years ago
Thanks for reporting this.
The native host app (the viewer app in this case) must handle graphics device lost and tracking lost cases, which it does not currently. When the HoloLens comes out of sleep, the native side should either reload the script or send a "device lost" notification so the script can re-initialize its rendering.
I'll work on a solution.
Can you please try the develop/device-lost branch and see if the problem persists? I wired webglcontextlost and webglcontextrestored events from the native host, so ThreeJS should be able to re-create its resources on device lost.
I'll try it out next week. Thank you :)
Hi. So I hadn't had time to look it up last week. I tried the master branch today because I couldn't find the branch develop/devise-lost. The master branch still doesn't solve the problem. Sorry for the late response.
Hi,
I try to develop an web app and started to test the web samples in the edge browser on HoloLens. When the lens is turned off and I start it, everything works fine. But when I put the lens into sleep mode and turn it on again I got a problem: When I click a web-ar link, the edge browser window disappears but the gaze point stays and I see nothing but this point. I checked the processes and the web viewer runs in background but doesn't show anything to me. The only way to get an image again is to shut down the Lens and turn it on so the web viewer app is closed again.
How can I fix this problem?
Thanks :)