The scene is normal in vr mode with Hololens2.
But the most mesh disappeared when the ray move on mesh in ar mode with Hololens2.
What is the difference between vr mode and ar mode?
The scene is normal in vr mode with Hololens2.
But the most mesh disappeared when the ray move on mesh in ar mode with Hololens2.
What is the difference between vr mode and ar mode?
can you share a playground for me to test with?
I can’t reproduce the problem in playground.
This is my page. Strange black shadow hide the most mesh when the ray move on mesh in ar mode https://project.veryengine.cn/publish/MdObjdMR6/index.html
This is very hard to debug TBH. If it works on the playground but doesn’t in your app, it might be in your code, but without seeing the source and a simple way to reproduce this, it’s very hard to tell what the problem is.
I’ll say this - I tried entering XR in the emulator - on the first time the object was shown and seemed to be parented to the camera (i couldn’t move closer to it). When i exit the session and got a little closer on the desktop and then re-entered, it disappeared in XR. again, very hard to say why because i couldn’t find the babylon source nor sourcemaps served.
In my project, the scene is normal in vr mode with Hololens2 with the code.
xr.baseExperience.sessionManager.onXRFrameObservable.addOnce(() => { xr.baseExperience.camera.rigCameras[0].outputRenderTarget.skipInitialClear = false; })
When I delete the code in vr mode, strange black shadow hide the most mesh when the ray move on mesh in vr mode.
Or without the code and delete the code of babylon, the scene is normal in vr mode with Hololens2.
I think this proble maybe is related to the camea.
But strange black shadow hide the most mesh when the ray move on mesh in ar mode with the same code.
How to set camera to solve this problem in ar mode?