Any tips for WebXR simulator for AR?

So I’ve been trying the WebXR AR Simulator from here in Chrome https://blog.mozvr.com/webxr-emulator-extension-ar-support/ to save my android phone from being ragged by constant testing. I can’t use the iPhone too much for testing either as I can’t pull logs through from Mozilla WebXR Viewer due to Apple being stupidly strict on browsers.

I wanted to simulate AR in the browser just to get some quick log outputs from touch actions etc but for some reason the WebXR AR simulator shows the desktop view only? Using a very simple AR test scene that works fine on the phones but in WebXR AR extension for Chrome set to Samsung S8 in AR mode shows me the desktop view?

Original Post on Discord

by user 103054507105067008

Have you set the camera background to solid color and alpha to 0? :wink:

by user 474974683163394049

had the same situation a few days before

by user 474974683163394049

by user 474974683163394049

by user 474974683163394049

haven’t found a possibility to simulate touch btw ^^

by user 474974683163394049

Works for me now when I set camera background colour to Solid as you suggested, thanks @maXR ! I also got a single touch working using the right click on my mouse on the screen which is great, this is probably enough for me to use to test stuff in AR now!

by user 103054507105067008

I wonder if there is also a way to automate the clicking of the AR mode button, I’ll see if I can make a helper script for that to save on iteration time otherwise any code change/refresh I need to wait for loading to finish to press that button

by user 103054507105067008

Ahhh… right click, didn’t think about that xD Thx and you’re welcome. :slightly_smiling_face:

by user 474974683163394049

Entering immersive mode is usually restricted to only being able to start from a “user action”, that is, user must do a clear action like clicking anywhere on the screen. On Quest 2 there’s a flag to enable “sessiongranted” which skips that –
I have no idea unfortunately how deep that requirement goes / if an emulator could support sessiongranted

I think I might have attempted something impossible :sweat_smile:

by user 103054507105067008

That’s always a good idea :smile: