three.jsaframewebxr

VR slideshow of stereoscopic photos using WebXR


I have a large and growing library of stereoscopic (not 360) photos in JPS and MPO format which I'd like to share via a website in some form of stereoscopic slideshow for VR headsets.

A-Frame looks promising but so far I've found no examples of how to display side-by-side or other stereo image formats.

If I've simply missed such an example, I'd be grateful if someone could point me towards it.

If not, it'd be great to understand how I'd go about creating a slideshow for stereoscopic images using A-Frame or otherwise.


Solution

  • One way of doing this would be

    Which would require two planes:

    <a-plane material="src: #img; repeat:0.5 1" stereo="eye:left"></a-plane>
    <a-plane material="src: #img; repeat:0.5 1; offset: 0.5 0" stereo="eye: right"></a-plane> 
    

    and setting

    Simple wxample in this glitch or with a cursor swapping the images in vr mode here