VR Feature not working

Hi,

Test url: 3D scene

code:
const viewer = WALK.getViewer();
viewer.setAllMaterialsEditable();
viewer.play();
document.getElementById(“vr-turnon”).addEventListener(“click”, () => {
viewer.enableVr();
});

I expected vr mode to turn on when the user clicks the button, but I got this error when use Oculus Quest.

“VR device not connected”

Hope you can help.

Thanks

Do you get this error in the Oculus Browser with Oculus Quest working as a stand-alone VR headset? Or in your desktop browser with Oculus Quest connected through Oculus (Air) Link?

Hi @wojtek, I get it in the Oculus Browser with Oculus Quest working as a stand-alone VR headset

1 Like

Web VR experiences require HTTPS connection. Open the scene in using the HTTPS (https://) protocol instead of HTTP (http://) and the VR mode will be available.

Also, you may configure your own hosting to automatically redirect from http:// to https:// URL for the scene.