WebXR reference space : 'unbounded' not supported issue

Hello,

navigator.xr.requestSession('immersive-ar').then((session) =>
{
let refSpace = await session.requestReferenceSpace('unbounded');
});

This gives me the following error in the Magic Leap 2 browser:

VM8 ARCubes.js:82 Uncaught (in promise) DOMException: Failed to execute 'requestReferenceSpace' on 'XRSession': This device does not support the requested reference space type.

I understand from the Magic Leap documentation that the following reference spaces are supported (see WebXR | MagicLeap Developer Documentation) :

  • WebXR reference spaces (view, local, local-floor, bounded, unbounded)
    (note : view should be viewer).

So what am I doing wrong?

Thanks in advance,

Hi @andy.willems,

Would you mind sharing your ML2 OS version?

I have reached out to our team regarding this issue and I will report back to you as soon as I learn more.

Best,

El

Hello El,

Thanks for your response

I did an OS update just yesterday to see if that helps (it didn't).

Today I am working from home, I will give you the exact ML2 OS version tomorrow.

Kind Regards,
Andy

The OS version is : 1.4.1

Build number : B3E.230928.10-R.098

Hi @andy.willems,

Only viewer and local reference spaces are defualt and can be used without any request. For all other reference spaces, the application needs to specify explicitly when recoding a session. So instead of

navigator.xr.requestSession('immersive-ar').then((session) =>
{
let refSpace = await session.requestReferenceSpace('unbounded');
}); 

it should be:

navigator.xr.requestSession('immersive-ar', { requiredFeatures: ['unbounded']}).then((session) =>
{
let refSpace = await session.requestReferenceSpace('unbounded');
});

Best,

El

Hmm, did not know that. It will take a while before I can test.
Thanks!
Andy

1 Like

Thanks, this fixed the error:-)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.