Difference between revisions of "Msc1G4:Student2"
From rbse
Line 83: | Line 83: | ||
height: 480, | height: 480, | ||
image: '/images/2/27/MID_FLOOR_EXTERNAL.jpg', | image: '/images/2/27/MID_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/1/1f/Sandwich_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:34, 3 February 2017