Recommendation for the VR view

113 views
Skip to first unread message

Thomas Humeau

unread,
May 7, 2019, 6:26:04 AM5/7/19
to marzipano
Hi, 
I would like to modify my VR tour generated by Marzipano tool to add the possibility to view the panos in a cardboard goggle.
So I would need to be able to toggle between regular view and the side by side view.
In this case, each side would be displayed from identical panorama pictures.

I've looked into the side-by-side demo example code and found that several things need to be initiated quite differently than the regular view.

Would you have an advice on how to start this?

As there are no scenes in the side by side example, I'm not sure how to tackle this.

Thanks a lot in advance,
Thomas

Vedran Bucko

unread,
May 17, 2019, 7:26:16 AM5/17/19
to marzipano
Hi Thomas,

I've just finished working on some viewers with a normal 360 viewer with the option to toggle the split view to use with Google Cardboard.

The way I did it was to create two divs, 1 has the regular view and the other has the split view. I have UI menu for cardboard which hides one div and unhides the other. It also loads the necessary split view data for that specific view.

Ill try and break it down.

I have a 3D array which stores the data

[regular 360 view - 1][split 360 view - 1 - left][split 360 view - 1 - right]
[regular 360 view - 2][split 360 view - 2 - left][split 360 view - 2 - right]
...
...

All views, 360, split left and split right all use the 1 set of images.
When the user switches to the cardboard view (split view) it loads the left and right views from the array depending on which regular view you are look at. It also fullscreens the div and enables mobile device gyroscope which I merged from the Device Orientation demo.

My implementation is just a set of views with no tours so I'm not sure now well this will work for your needs.

I hope this gives you an insight to a possible solution :)

Thomas Humeau

unread,
May 21, 2019, 4:49:39 AM5/21/19
to marzipano
Thanks a lot Vedran,
I'll try to look into that. 
Thanks for the tip. yes it seems to make sense to keep the views separated in an array...
Thomas

Mortech GH

unread,
Feb 22, 2026, 7:37:18 AM (yesterday) Feb 22
to marzipano
please any source code, gyro is implemented successfully but was wondering how to implement sterio(split screen) so that the tour can be viewed with google cardboard.

thanks in advance.

mortechgh
Reply all
Reply to author
Forward
0 new messages