Embedding Videos in a Panorama

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Shytsko
Posts: 48
Joined: Sat Dec 31, 2011 10:56 am
Location: Minsk, Belarus
Contact:

Embedding Videos in a Panorama

Post by Shytsko » Sun Jul 21, 2019 3:44 pm

Hi!
After Embedding Videos in a Panorama i see the next picture.
Why Photoshop saves with changing colors? Please tell me the reason.

Thank. Peter.
Attachments
After Photoshop.jpg
After Photoshop.jpg (831.5 KiB) Viewed 240 times

User avatar
Hopki
Gnome
Posts: 9374
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Embedding Videos in a Panorama

Post by Hopki » Mon Jul 22, 2019 10:36 am

Hi Peter,
This is down to the colour profile the browser uses.
As an example if you open the project in Firefox you may not see the difference in colour.
There is a way to add an “image” mask that can help.
In Photoshop, once the video has been made drag the mask used for the video to the image.
Hide the video layers and invert the mask.
You then export the image as a png so the active area is transparent.
Add a patch over the video in the same place, use the same pan, tilt and FoV values as the video.
Then convert the patch to an image, selecting the PNG you just exported from Photoshop.
The end result is the majority and of the video is covered by the image which should match the panorama much better.
Here is an example: https://support.ggno.me/forum_projects/bbq/
Regards,
Hopki

User avatar
Shytsko
Posts: 48
Joined: Sat Dec 31, 2011 10:56 am
Location: Minsk, Belarus
Contact:

Re: Embedding Videos in a Panorama

Post by Shytsko » Mon Jul 22, 2019 7:14 pm

Hi, Hopki.
Thanks for the help and quick response.
Best regards, Peter.

TheCat
Posts: 14
Joined: Tue Aug 13, 2019 10:34 pm

Re: Embedding Videos in a Panorama

Post by TheCat » Wed Aug 14, 2019 8:43 pm

Hi Hopki,

as I'm currently stuck trying to integrate pinned videos to a panorama the 6.1 way in the sense that I can't get the video(s) started and stopped by clicking a hotspot button (although being familiar with some programming languages incl. php and javascript, I don't fully get the whole thing with actions and logic blocs yet :? ). Your bbq project above made me think I could find some hints there on how to succeed.
Would you mind providing the project/skin data?

Thx!

User avatar
panox
Posts: 221
Joined: Mon Mar 12, 2007 11:03 pm
Contact:

Re: Embedding Videos in a Panorama

Post by panox » Thu Aug 22, 2019 8:53 am

Hello Hopki,

Is it possible to avoid these jumps in image content? They appear quickly one after the other. Maybe with a delay loop that only displays all elements when they are loaded?

https://www.screencast.com/t/cSYusZusRm

Many greetings

Harald

User avatar
Hopki
Gnome
Posts: 9374
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Embedding Videos in a Panorama

Post by Hopki » Thu Aug 22, 2019 10:33 pm

Hi Harald,
Are you referring to the Robot?
If so it is an iframe so will load slightly after.

User avatar
panox
Posts: 221
Joined: Mon Mar 12, 2007 11:03 pm
Contact:

Re: Embedding Videos in a Panorama

Post by panox » Fri Aug 23, 2019 1:11 pm

Hi Hopki,

This process takes place within one second. But one sees it nevertheless very clearly. In single frames it looks like this in my Screencast-Video:
520.jpg
520.jpg (401.77 KiB) Viewed 57 times
Hence my question about a possibility to preload all elements and only output them when they are available.

User avatar
Hopki
Gnome
Posts: 9374
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Embedding Videos in a Panorama

Post by Hopki » Fri Aug 23, 2019 5:15 pm

Hi Harald,
I would say this is browser dependent.
Using Safari it is perfect when the image opens the video is there at the same time.
In Firefox the image and video also appear at the same time but you may see some of the preview tiles as it loads, but only for a split second.
You can, of course, increase the resolution of the preview images also making them in colour.
Chrome, this shows the same as your getting.
So chrome loads the video before the images!

My thoughts are if you applied a patch of the first frame so it is part of the pano, then have a container that on Config Loaded or even on Start, hide media.
Then when Tiles ready show media, as its the same as the patch you should not see it load.
Just a thought.
Regards,
Hopki

User avatar
panox
Posts: 221
Joined: Mon Mar 12, 2007 11:03 pm
Contact:

Re: Embedding Videos in a Panorama

Post by panox » Fri Aug 23, 2019 8:31 pm

Hi Hopki, interesting thoughts! Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests