Hello BabylonJS team, I have an issue with the XR Feature since upgrading BabylonJS to 5.38.0
When I launch an AR view, I now have an ellipse and torus in addition to my model. I tried to reproduce it on the playground but had no clue.
Looking at the code of BabylonJS, I found that these two objects are linked with the teleportation feature. But this feature should only appear using sessionMode: 'immersive-vr'
.
So do you have an idea why it shows up in my use case ?
Here is my code
The scene I create:
let scene = new Scene(this.system.engine);
scene.clearColor = new Color4(0, 0, 0, 0);
let camera = new ArcRotateCamera('camera1', -Math.PI / 2, Math.PI / 4, 3, new Vector3(0, 0, 0), scene);
camera.lowerRadiusLimit = 2;
camera.upperRadiusLimit = 10;
camera.wheelDeltaPercentage = 0.01;
camera.attachControl(this.system.canvas, true);
The helper initialization:
WebXRDefaultExperience.CreateAsync(scene, {
uiOptions: {
sessionMode: 'immersive-ar',
}
}).then((xrHelper) => {
this.xrHelper = xrHelper;
callback();
});
And on pointer action:
this.xrHelper.baseExperience.enterXRAsync('immersive-ar', null)
.then((helper) => {
// SHOW MODEL
})
I also tried with referenceSpaceType: "unbounded"
but I have the same result.
Thanks a lot!