Rufus31415 / Simple-WebXR-Unity

⭐ Bringing WebXR to Unity 3D ! B-)
https://rufus31415.github.io/webxr/MRTK-HandInteraction/
MIT License
573 stars 82 forks source link

Examples not working on Smartphone : ( Iphone 11 Pro - iOS 14.0.1 - Safari ) #13

Closed satolas closed 3 years ago

satolas commented 3 years ago

I open this for example : https://rufus31415.github.io/webxr/PaintExample/ From the mobile. Unity WebGL project completely loads and stays black, nothing happens. I tried other examples as well, same result.

satolas commented 3 years ago

I found out a solution so the scene is launching at least : On iOS, go to Settings/Safari/Advanced/Experimental Features. And if WebGL 0.2 is enabled, disable it.

PS: it could be nice to know the default settings of the actual iOS version for each version.

AFC67AF0-09C2-44E3-BD3E-1B2A0DA3FE63

satolas commented 3 years ago

But... now I have a new issue ^^ DED9E6AB-4686-46EF-8D01-1D87A52270DA

Rufus31415 commented 3 years ago

Indeed, I have just tested. WebGL 2.0 is not fully supported in WebKit. As for WebXR, Safari does not support it yet. The only browser on iOS that supports it is XRViewer : https://apps.apple.com/fr/app/webxr-viewer/id1295998056 Thanks for your remark. I will add this info on the example page.

Prakash19921206 commented 6 months ago

@Rufus31415 sorry to comment on closed issue. Just wanted to know if there's an work around for ios currently i'm in iPhone 14 pro (ios 17.3.1) i don't see WebGl 2.0 anywhere in Settings/Safari/Advanced/Experimental Features

i noticed few toggles at settings -> safari ->Advanced ->Feature Flags [please check images attached] tried switching webgl related toggles but none of them helped. IMG_1095

i understand that it doesn't enter into AR (camera) on safari, but its not working on Mozilla WebXR Viewer as well. i see "Enter AR" button, upon clicking in WebXR browser i see an error as attached in screenshot below IMG_1097 IMG_1098

Any advice would be greatly appreciated! Thanks & Regards Prakash

Rufus31415 commented 5 months ago

It seems that after updating iOS, a number of functions no longer work in the XRViewer browser, even some basic examples no longer work. I'll dig into it when I have a moment.

Rufus31415 commented 5 months ago

This demo doesn't use the WebXR JavaScript API. It uses raw image access and image processing to render the 3D model point of view

Prakash19921206 commented 5 months ago

Thanks for letting me know. when you mentioned image processing, it is using some javascript based library for 6dof tracking?

sorry, accidentally posted from different account. for anybody who is interested i was talking about following url https://webar.imaginerealities.com.au/wt/demo

interestingly it supports urp too but i felt quality isn't that good at the moment https://webar.imaginerealities.com.au/wt/tikbalang/

Rufus31415 commented 5 months ago

The lib behind this is this one : https://assetstore.unity.com/packages/tools/camera/imagine-webar-image-tracker-240128