Multiple Scenes but with 360° Videos instead of Panoramas

249 views
Skip to first unread message

Oliver Statt

unread,
Nov 10, 2017, 8:49:23 AM11/10/17
to marzipano
Hallo,

I want to do a virtual tour with multiple scenes while each scene is a 360° and not just a panorama picture. 
I saw in the Demos that a virtual tour is possible with Marzipano and a 360° video is also possible. 
Is it possible to combine both to have a tour consisting out of several 360° videos? If yes how can I implement it?

Thanks for any help

Oliver

Tiago Quelhas

unread,
Nov 14, 2017, 12:11:40 PM11/14/17
to Oliver Statt, marzipano
It is possible, but some coding is required.

Have a look at the video demo, which contains the bare minimum necessary to set up a single video scene. With multiple scenes, you additionally need to start the video playback only when you enter a scene, and pause/stop it when you leave the scene.

--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+unsubscribe@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/marzipano/64cd1cde-782f-48cc-9582-7a1f8d2947d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Oliver Statt

unread,
Nov 15, 2017, 3:17:42 AM11/15/17
to marzipano
Thank you for your answer. The Problem is when i switch to another scene, i cannot move / look around in the video anymore. Switching scenes with videos unfortunatly doesnt work so easily. 
 
It works when i use the  viewer.destroyScene(scene); and destroy the old scene before i switch to the new scene. And if I return back to the scene I initiate it new. But with multiple videos I get performance issues then. Everything gets very slow when I switch between video scenes multiple times. Any idea how i can fix that? If I reload the page everything runs smoothly again in the beginning.

Thanks,
Oliver 

Tiago Quelhas

unread,
Nov 15, 2017, 10:55:33 PM11/15/17
to Oliver Statt, marzipano
On Wed, Nov 15, 2017 at 12:17 AM, Oliver Statt <olive...@gmail.com> wrote:
Thank you for your answer. The Problem is when i switch to another scene, i cannot move / look around in the video anymore. Switching scenes with videos unfortunatly doesnt work so easily. 

Can you try commenting out the VideoAsset#destroy method? (The method must exist, but make it an empty function body.)

The problem is that VideoAsset#destroy is called when the respective scene goes out of view, and it tears down the logic that causes the video texture to be refreshed on every frame.
 
It works when i use the  viewer.destroyScene(scene); and destroy the old scene before i switch to the new scene. And if I return back to the scene I initiate it new. But with multiple videos I get performance issues then. Everything gets very slow when I switch between video scenes multiple times. Any idea how i can fix that? If I reload the page everything runs smoothly again in the beginning.

I would make absolutely sure that a single video is playing at any given time.

Thanks,
Oliver 

--
You received this message because you are subscribed to the Google Groups "marzipano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marzipano+unsubscribe@googlegroups.com.
To post to this group, send email to marz...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages