A vr glasses problem

归档.zip (1.6 MB)
It still has a error with the alpha.62, I packed the code and the error image to the zip file.

when I change to alpha.50 (use the following code), it works fine:

<!-- <script src="./scripts/babylon.js"></script>
    <script src="./scripts/babylonjs.loaders.min.js"></script> -->
    <script src="https://cdn.jsdelivr.net/npm/babylonjs@5.0.0-alpha.50/babylon.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/babylonjs-loaders@5.0.0-alpha.50/babylonjs.loaders.min.js"></script>

I should be the one to thank you for your selfless help.
I will try my best to cooperate you troubleshoot the problem.

2 Likes

I believe the change is not yet in the preview release, as we have not released a nightly.

I’ll check and let you know.

This was not put in a nightly yet, I ll do one in a couple hours.

1 Like

The webxr demo(Babylon.js Playground) of playground (which use 5.0.0-alpha.63), still can not work in vr mode of vr glass .

Does it still fail at the same place?

I just run the playground demo,it still has nothing in vr mode.My glasses is at workplace ,I am at home.I will test tomorrow,then report the result to you.

When I try debugging this is what I get:

Firefox reality is 1 years old. And is sadly not the best XR browser out there. If you want to paste the stacktrace I might be able to help debugging this.

1 Like

When I debug, there is no error in the console.
After clicking the xr glasses button, the loading icon is displayed for a short time(about 100-300ms), and then around turned to dark。

1 Like

i’ll try finding the reason. will probably need to degrade my installed firefox version.

1 Like

I’m very sorry for the question, and thank you very much!!

1 Like

Just to keep updating - there seems to be an error in firefox when binding the session’s request animation frame. It claims we are not running the render loop using the requestAnimationFrame of the active session, but that’s wrong.

I’ll see what we are doing different in 4.2 and try to come up with a solution for firefox. Will update here.

1 Like

So! found the issue. It’s a firefox issue, but I have a fix for it - [XR] fix rendering in Firefox by RaananW · Pull Request #11631 · BabylonJS/Babylon.js (github.com)

It will be available in the next nightly (after being merged)

I would still not recommend firefox reality, as it has other issues that we simply can’t resolve (because of the version of the specs and the lack of updates)

2 Likes

thanks, the version of v5.0.0-alpha.64 works fine in my pico neo3!

This firefox reality browser is indeed not as good as the browser(based on chromium) in ocules, but there are no other options in this device…
Thanks very much for your contribution to this device :smiley: :wave: :+1:

2 Likes