Vision Pro babylon js demo rendering issue

Hello,

Running the babylon js demo, provided on your website for testing with Vision Pro seems to have some issues.

Here is the playground: https://playground.babylonjs.com/#TJIGQ1#3

And the rendering capture from the Vision Pro: https://www.youtube.com/watch?v=k4emdVRpXp8. The video is what you can see on the left eye, because on the right eye it is much worse, texture are repeating all over the place all the time, on the left eye, there is some portion of the screen that renders properly.

Currently running Vision Os 2.1 on it.

Maybe there is some engine parameter that can fix this?

It looks like depth buffer not totally cleared.

cc @andy.fillebrown

Can I ask - is it the same with this simple scene? https://playground.babylonjs.com/#9K3MRA#2

Yes, you may! :smiley:

This one you provided works well, have a look here: https://www.youtube.com/watch?v=X3KwgGhXtoE

Maybe is related to this as well? → Vision Pro renderingGroupId issue

very much. I don’t have a device, but I am installing the 2.1 emulator as we speak. 2.0 seems to work correctly (on the emulator). I hope it’s not something apple has decided to mess up. Will keep you updated :slight_smile:

Nice!

It is hard to test it with the emulator, at least in the immersive environment. But let me know, i can retest with the real device when you need. :handshake:

1 Like

And this is why i love emulators!

Sorry. I will continue trying to reproduce…

1 Like

You are right, i have tried also the emulator myself and everything seems fine when using it.

The only way to trigger a somehow similar effect visually is to get very close to the floor, maybe a bit inside of it and start looking around. But maybe that is a normal behavior in that case.

Maybe there are some flags on the rendering engine that i can try to switch for testing?

autoclear might help! scene.autoClear = true, it is turned off automatically in WebXR.

Hey!

It seems that scene.autoClear = true does not help in this case, will try other things.

Thank you for the suggestion.

1 Like

can you try forcing xrCamera.outputRenderTarget.skipInitialClear to false on each frame and see if that helps?

Seems it’s the same: https://playground.babylonjs.com/#TJIGQ1#300 hopefully it applied it to the correct camera :sweat_smile:

Demo video: https://www.youtube.com/watch?v=wr-01oa7VBk

1 Like

Oh, I really need a device…
I’ll let you know if I can think of something, and will try creating a playground for you to test. thanks for the patience!

2 Likes