mistic100 / Photo-Sphere-Viewer

A JavaScript library to display 360° sphere panoramas.
https://photo-sphere-viewer.js.org
MIT License
1.94k stars 691 forks source link

VR for Oculus Rift / HTC Vive ( on computer ) #571

Open vrestatetest opened 3 years ago

vrestatetest commented 3 years ago

Is there any way or plans to get the VR / stereoscopic views to work on computer?

mistic100 commented 3 years ago

No it's not planned. I need to dig into the WebXR API.

mistic100 commented 3 years ago

starter documentation : https://threejs.org/docs/#manual/en/introduction/How-to-create-VR-content

I think it will replace the current stereo plugin.

mistic100 commented 3 years ago

So I have a working prototype on the vr branch.

Stills needs a lot of work :

mistic100 commented 2 years ago

@dhanil-vd123 the information you search is here : the dev is not done nor is planned to be completed.

andstone commented 2 years ago

@mistic100 Nice to meet you. Really big fan of this project.

I'm very interested in the VR functionality. My team is looking to ditch krpano, and it looks like this is on it's way there. Going to discuss it with my team next week about long-term adoption.

Looking forward to potentially participating in developing this out, if you'll have us. Thanks.

L00ncan commented 1 year ago

Interested to know if VR is still being considered i'm considering changing to this Panorama viewer and VR is our content subject of article writing so having a web viewer that's VR active would be amazing for our articles. Combining VR gives our websites the chance to leave this Google hostage monopoloy situtation to VR, i hate facebook but they're correct about the future of the web. So! any updates?

Utopiah commented 3 months ago

Here is a test version https://fabien.benetou.fr/pub/home/360s/photosphereviewer/ which does display the "Enter VR" button on the Quest yet while clicking on it, hangs.

I used viewer.renderer but I'm wondering if it's what threejs expect.

mistic100 commented 3 months ago

try with viewer.renderer.renderer

Utopiah commented 3 months ago

Indeed thanks that does allow to enter VR. Unfortunately once entered the background is entirely black (whereas in 2D it does show the 360 image). When I exit VR (using the system pinch) though it shows the image behind the browser window, moving in sync with the motion of the headset.

So something does work but maybe there is some conflict with some parameters of the renderer or effects?