mistic100 / Photo-Sphere-Viewer

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

Support for 3D 360 content #228

Open ricmob opened 5 years ago

ricmob commented 5 years ago

Firstly, thank you so much Damien, for this fantastic fork. And thanks to Jeremy for creating it.

Is it possible to support 3D (stereoscopic) equirectangular images (top-bottom, or left right?) so that they appear as 3D in VR mode?

mistic100 commented 5 years ago

Do you have an example of such image ?

ricmob commented 5 years ago

Here is an example: https://roadtovrlive-5ea0.kxcdn.com/wp-content/uploads/2015/09/VikingVillage_stereo_thumb.jpg

There is an A-Frame implementation of this where the stereoscopic image is split into the left and right eye images. I can do this on the server, so a Photo-Sphere-Viewer implementation that loads a different image into each eye would also be great: https://oscarmarinmiro.github.io/aframe-stereo-component/

Spettacolo83 commented 5 years ago

Hi there, any news about this? I'm really interested too! ;)

drashti2277 commented 5 years ago

Do you have any updates on this yet??

CharlesJhonson commented 4 years ago

I also really intrested , there are two examples I found. But I don't konw how to realize with PSV?

https://webvr.info/samples/XX-360-panorama.html https://immersive-web.github.io/webxr-samples/360-photos.html

cestomano commented 4 years ago

I also really intrested , there are two examples I found. But I don't konw how to realize with PSV?

https://webvr.info/samples/XX-360-panorama.html https://immersive-web.github.io/webxr-samples/360-photos.html

Hi! I am in your same case.

I'm started to use this fantastic -forked- plugin and I want to allow the use of VR viewers with 360 (equirectangular) images, not 3D!, but I didn't found the plugin that allows it.

I'll keep trying.

Regards!

CesZgz commented 3 years ago

https://webvr.info/samples/XX-360-panorama.html https://immersive-web.github.io/webxr-samples/360-photos.html

Very interesting examples!

As far as I know, it is not possible yet to display immersive images in VR with Photo-Sphere-Viewer. I tried to do it with Oculus Quest 2. Since there is a new version (Photo Sphere Viewer 4), in https://photo-sphere-viewer.js.org/ it can be read: "Touchscreen, gyroscope and VR. Friendly user interactions for all kind of devices." Unfortunately I have not found any examples created with this version for an immersive experience with a Head Mounted Device like the Quest. Any idea or suggestion? Thanks in advance!

mrAceT commented 3 years ago

.. maybe a question that could go in the right direction of this.. I found one can alter the "pan" of an image. But the problem is that the points I project in the image change also... Is it possible to alter the camera-point-of-view also? (set via spherical lat/lon) I could not find this in the documentation..

With this; one could set one PSV-sphere to "master" and let the second one (for the other eye) follow the master as a "slave"..

mistic100 commented 3 years ago

The "VR" in the documentation only refers to the Stereo plugin witch uses the StereoEffect from three.js, but because there is still only one sphere with one texture it is not true VR.

A lot of works needs to be done to have separated renderers with two offsetted cameras, and implement WebVR API.

CesZgz commented 3 years ago

Even if it is not true VR, an immersive view of an image with a head mounted device could be really interesting, but I have not found any examples made with Photo-Sphere-Viewer.

Do you know if that is possible? Is there any example online?

mistic100 commented 3 years ago

As I said : the StereoPlugin, it works well with card board and similar "headsets" using smartphones.

There is no online exemple because I exclusively use jsfiddle and the Gyroscope API does not work in iframes.

CesZgz commented 3 years ago

Ok, thank you very much!

Utopiah commented 4 weeks ago

I'm not sure if this is the right issue for it but I just tried https://photo-sphere-viewer.js.org/plugins/stereo.html example on a Meta Quest 3, Oculus browser version 33.3 (based on Chromium 124.0) and I somehow can not enter VR mode.

When I load the page https://photo-sphere-viewer.js.org/demos/plugin-stereo.html I see the menubar at the bottom but it does not feature any new button. When I click on fullscreen it does go to fullscreen but it is not immersive (no browser prompt to confirm unlike e.g https://aframe.io/examples/showcase/sky/ which does work).

Anything I should try?

PS: thanks for the project! Found via Immich which seems to rely on it for 360 content.

mistic100 commented 3 weeks ago

Please read my answer just above. The Stereo plugin is not a VR plugin. Photo Sphere Viewer has no VR support.

Please go to https://github.com/mistic100/Photo-Sphere-Viewer/issues/571 to discuss VR support (beside "when ?", please)