Difference between revisions of "Msc1G4:Student2"
From rbse
Line 59: | Line 59: | ||
height: 480, | height: 480, | ||
image: '/images/9/9a/GROUND_FLOOR_EXTERNAL.jpg', | image: '/images/9/9a/GROUND_FLOOR_EXTERNAL.jpg', | ||
+ | preview: '/vrview-master/examples/gallery/petra-preview.jpg', | ||
+ | is_stereo: false, | ||
+ | is_autopan_off: true | ||
+ | }); | ||
+ | vrView.on('ready', onVRViewReady); | ||
+ | vrView.on('modechange', onModeChange); | ||
+ | vrView.on('error', onVRViewError); | ||
+ | } | ||
+ | window.addEventListener('load', onLoad); | ||
+ | </script> | ||
+ | </html> | ||
+ | |||
+ | |||
+ | <html> | ||
+ | <div id="vrview"></div> | ||
+ | |||
+ | <script src="/vrview-master/build/vrview.js"></script> | ||
+ | <script> | ||
+ | var vrView; | ||
+ | function onLoad() { | ||
+ | vrView = new VRView.Player('#vrview', { | ||
+ | width: '100%', | ||
+ | height: 480, | ||
+ | image: '/images/2/27/MID_FLOOR_EXTERNAL.jpg', | ||
preview: '/vrview-master/examples/gallery/petra-preview.jpg', | preview: '/vrview-master/examples/gallery/petra-preview.jpg', | ||
is_stereo: false, | is_stereo: false, |
Revision as of 09:33, 3 February 2017