From 19840dad0e3d873b92dfc1e786f9d1b34a542865 Mon Sep 17 00:00:00 2001 From: Victor Hugo Date: Thu, 30 Nov 2017 17:48:53 -0300 Subject: [PATCH] small addition of the variable is_stereo to make it clearer and easier for new users on how it can build their ambient with different panorama types --- examples/gallery/index.js | 1 + examples/hotspots/index.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/gallery/index.js b/examples/gallery/index.js index 7302b63a..95cec065 100644 --- a/examples/gallery/index.js +++ b/examples/gallery/index.js @@ -60,6 +60,7 @@ function loadScene(id) { vrView.setContent({ image: scenes[id].image, preview: scenes[id].preview, + is_stereo: scenes[id].is_stereo || false, is_autopan_off: true }); diff --git a/examples/hotspots/index.js b/examples/hotspots/index.js index 93c336b3..ed16a763 100644 --- a/examples/hotspots/index.js +++ b/examples/hotspots/index.js @@ -19,6 +19,7 @@ var scenes = { dolphins: { image: 'dolphins.jpg', preview: 'dolphins-preview.jpg', + is_stereo: true, hotspots: { whaleRight: { pitch: 0, @@ -43,6 +44,7 @@ var scenes = { whaleLeft: { image: 'whale-left.jpg', preview: 'whale-left-preview.jpg', + is_stereo: true, hotspots: { whaleRight: { pitch: 0, @@ -67,6 +69,7 @@ var scenes = { whaleRight: { image: 'whale-right.jpg', preview: 'whale-right-preview.jpg', + is_stereo: true, hotspots: { dolphins: { pitch: 0, @@ -91,6 +94,7 @@ var scenes = { walrus: { image: 'walrus.jpg', preview: 'walrus-preview.jpg', + is_stereo: true, hotspots: { whaleLeft: { pitch: 0, @@ -158,7 +162,7 @@ function loadScene(id) { vrView.setContent({ image: scenes[id].image, preview: scenes[id].preview, - is_stereo: true, + is_stereo: scenes[id].is_stereo || false, is_autopan_off: true });