Hi,
I’m trying to change the PhotoDome texture on click of sphere meshes each loaded with 360 image textures. Please let me know how this can be done using WebXR. The pointer events (pick, down etc.,) work in browser but not when switched to VR mode (pointer move event only works).
Thanks…
Thats great… It works. But in playground only. In my mobile, the playground stuff you gave works right with a circular cursor. But if i use the same code from my localhost, it show some triangular mesh like picker instead of the circular cursor and it does not do anything!?
Please throw some light on this.
The ray’s display should have been fixed by now (should technically be invisible until needed), I will check that soon. Having said that - there is no gaze support just yet for devices without user input (like the classic cardboard) just yet. This ticket will include this feature, when implemented - [XR] changes to PointerSelection behavior · Issue #7974 · BabylonJS/Babylon.js · GitHub . We support gaze with devices like the gearvr, which has a few buttons on its side.
Thanks for the reply… If gaze is not supported, how that works in playground in my mobile? Are gaze support and mouse position picking different? For now, I need to have the same circular cursor mesh picking which seems to work in the playground. Please advice…
I remembered I fixed the ray, but I just realize I already implemented the gaze selection as well… I love it when I don’t remember what I did or didn’t do.
It feels like you are using an older version. Can you try using the latest 4.2 alpha?
no idea where this points to https://some.local.ip/xyz/dist/babylon.js
Have you tried our preview cdn? or the regular CDN?
It feels like you are using an earlier version, especially if it does work on the playground. Make sure you don’t reference any older version of babylon, and maybe share a proejct if you can.