JeremyHeleine / Photo-Sphere-Viewer

A JavaScript library to display Photo Sphere panoramas.
854 stars 952 forks source link

VR viewer not working properly! #95

Closed drashti2277 closed 5 years ago

drashti2277 commented 5 years ago

Hi, I want to enable VR view in my app and have added stereo and gyroscope as navbar options. When I run it I get stereo icon but it doesn't split image in two as expected. It does automatically activate gyroscope and full-screen and landscape orientation when clicked. I have included StereoEffect.js ,NoSleep.js, DeviceOrientationControls.js etc which are needed to make it work. I've tried many ways but nothing is helping me. Please let me know if I'm missing something to enable VR view. Here is my code :- var PSV = new PhotoSphereViewer({ // main configuration panorama: 'image1.jpg', container: 'PSV', loading_img: 'img.gif', time_anim: false, navbar: [ 'stereo', 'gyroscope', 'fullscreen', 'autorotate', 'zoom', 'caption', 'download', ], caption: ' CAPTION', default_fov: 70, default_lat: 0.3, mousewheel: true, stereo:true, gyroscope:true, touchmove_two_fingers: true, size: { height: window.innerHeight, width: window.innerWidth } });

kambleaa007 commented 5 years ago

whats update on closing issue