Page 4 of 9

Re: Switch between normal and VR outputs.

Posted: Mon Jan 11, 2016 2:17 pm
by Hopki
Pano2VR:
I think for Pano2VR this is quire straight forward as you need two project files anyway.
So all you would do is have a button in the skin to Go To URL to the VR html page.
And then one back to the normal view.

Pano2VR 5 Pro non Stereo and Stereo:
The following will output a project that has two HTML5 outputs that share the same tiles folder.
However will have separate skin files so will enable a normal skin and the stare skin to be used.

1) Add the input images and set up hotspots as described in the first post be it mono or stereo.

2) Add two HTML5 outputs. The second will automatically set the output folder name to output-1.
Right button click and edit the file name to output, both outputs should have the folder name output.

I will now refer to the projects as top and bottom in the output list.

3) The top output make as normal adding your skin and with the normal HTML template. In the skin add a button to switch to the VR mode, it will have the action:
Source: Mouse Click
Action: Go To URL
URL: vr/index.html
Target: _self

Save and close the skin.

For the VR output select the bottom HTML5 output.

4) Add the stare skin and add a button that will switch back to the normal mode with the action:
Source: Mouse Click
Action: Go To URL
URL: index.html
Target: _self

Save and close the skin.

5) Under the HTML tab select the VR.ggt and if using stereo pairs select this in the templates properties.

6) Edit the output file path for the HTML page so it looks like this: output/vr/index.html

Now output both HTML5 outputs by holding down the "alt" key and click generate output.
Opening the top HTML5 project will show a normal view. Clicking the VR button will switch to the VR view.

The output folder will contain the top HTML5 output project files and a sub folder called vr.
The vr folder will contain all the files for the vr output apart from the tiles as it will be using the same tiles folder as the top HTML5 project.
Regards,
Hopki

Re: Switch between normal and VR outputs.

Posted: Wed Jan 13, 2016 7:37 pm
by skyfocus
Hopki wrote:Pano2VR:
3) The top output make as normal adding your skin and with the normal HTML template. In the skin add a button to switch to the VR mode, it will have the action:
Source: Mouse Click
Action: Go To URL
URL: vr/index.html
Target: _self
Hopki
Hello Hopki,

Is it possible to use the current-node/(current-viewpoint) in this URL: vr/index.html ?
If you use it this way, every-time you switch to VR and back again the tour starts at the beginning. It would be nice to switch within the pano you are looking at.
Is there a variable holding the current-node name to use something like

URL: vr/index.html#current-node

regards,

Arjan

Re: V5 VR HMD files and How to.

Posted: Thu Jan 14, 2016 2:52 pm
by Hopki
HI Arjan,
Iv not looked into it but you should be able to use Direct Node Access.
So if each node has #nodexx in a user data source text field, then the URL could be vr.html$us
This would open the VR at the listed node in the user data.
You can then use this to come back as the would be the same nodes :D
As said not tested it, but should work.
Regards,
Hopki

Re: V5 VR HMD files and How to.

Posted: Fri Jan 15, 2016 11:03 am
by 3DV
4) Add the stare skin and add a button that will switch back to the normal mode with the action:
Source: Mouse Click
Action: Go To URL
URL: index.html
Target: _self
When in VR (stereo) mode, how to add a button to the skin that can be 'stared' at?
The button always stays relative to the screen (locked in place just like the stare crosshairs). I couldn't find a way to set it relative to the image like a hotspot.

Re: V5 VR HMD files and How to.

Posted: Fri Jan 15, 2016 11:12 am
by skyfocus
Hello Hopki,

I tried it and I see the mechanism working (the #nodexx is added in the URL), but since I've never used the direct node access feature (works differently when making tours with one pano per config-file) I have the suspicion this is not (yet) implemented in V5, am I right ? The tutorial (http://ggnome.com/wiki/Direct_Node_Acce ... al_Node_ID) on the website it says that with V4 there is a "direct node access" switch in the HTML output settings. But there is no switch like that in the HTML section of V5. Is this switched on by default ?
If so, I did not manage to get the tour opening at a different node than the starting node with a index.html#nodexx addition in the URL.

Am I missing something ?

Regards,

Arjan

Re: V5 VR HMD files and How to.

Posted: Fri Jan 15, 2016 11:16 am
by skyfocus
3DV wrote:
4) Add the stare skin and add a button that will switch back to the normal mode with the action:
Source: Mouse Click
Action: Go To URL
URL: index.html
Target: _self
When in VR (stereo) mode, how to add a button to the skin that can be 'stared' at?
The button always stays relative to the screen (locked in place just like the stare crosshairs). I couldn't find a way to set it relative to the image like a hotspot.
The button in the skin should be a hotspot button, just like you are using in the normal view skin. You can use the buttons from the normal skin. This is the stare-at button to go to the next pano. The button Hopki is talking about to switch back is not to be stared at but just a skin button to go back to normal view ...

I have a tour in place using this mechanism see : http://www.skyfocus.nl/SkyFocus/Tours/Stoetenslagh/

Arjan

Re: V5 VR HMD files and How to.

Posted: Fri Jan 15, 2016 12:35 pm
by 3DV
Thanks for your reply, I understand.

I was looking for a way to switch to fullscreen when wearing the Samsung Gear VR.
Instead of using a button in the skin editor, I've now tried to add a hotspot with Link Target Type: 'URL', Link Target URL: 'javascript:containerFullscreen();' and Target: '_self' but that doesn't work when staring it. It works in Chrome when manually clicking on the hotspot, but doesn't work in FireFox 44.0b8 at all.

As a workaround I've found out it was easier to simply use Chrome to add the website to the Android Home Screen, the site then opens in fullscreen and stays fullscreen.

Re: V5 VR HMD files and How to.

Posted: Fri Jan 15, 2016 1:01 pm
by skyfocus
skyfocus wrote:Hello Hopki,

I tried it and I see the mechanism working (the #nodexx is added in the URL), but since I've never used the direct node access feature (works differently when making tours with one pano per config-file) I have the suspicion this is not (yet) implemented in V5, am I right ? The tutorial (http://ggnome.com/wiki/Direct_Node_Acce ... al_Node_ID) on the website it says that with V4 there is a "direct node access" switch in the HTML output settings. But there is no switch like that in the HTML section of V5. Is this switched on by default ?
If so, I did not manage to get the tour opening at a different node than the starting node with a index.html#nodexx addition in the URL.

Am I missing something ?

Regards,

Arjan
Ok, found the switch it was "Hidden" behind the wrench and screwdriver icon .....

Re: V5 VR HMD files and How to.

Posted: Fri Jan 15, 2016 3:56 pm
by skyfocus
Hopki wrote:HI Arjan,
Iv not looked into it but you should be able to use Direct Node Access.
So if each node has #nodexx in a user data source text field, then the URL could be vr.html$us
This would open the VR at the listed node in the user data.
You can then use this to come back as the would be the same nodes :D
As said not tested it, but should work.
Regards,
Hopki
I've tested it, and I can confirm it's working ! To make it perfect it would be nice to be able to keep the current viewing angle. Just like it is now possible by using $cur in the target in a hotspot ..... is this also possible in the URL ?

Regards,

Arjan

Re: V5 VR HMD files and How to.

Posted: Fri Jan 15, 2016 4:50 pm
by Hopki
Hi Arjan,
This is a feature request that probably wont made it in the first release but its there for the developers to add later.
Regards,
Hopki

Re: V5 VR HMD files and How to.

Posted: Sun Jan 17, 2016 12:40 pm
by zap
Switching between star and simplex works just fine.
Thanks Hopki for the hint :D

Re: V5 VR HMD files and How to.

Posted: Mon Jan 18, 2016 6:36 am
by CBaroncini
Hello,
is there a way to zoom in/out when using a VR headset?
Thanks,
Carlo

Re: V5 VR HMD files and How to.

Posted: Wed Jan 20, 2016 10:20 am
by skyfocus
I noticed a problem with this VR view, sounds are played double, giving a weird echo in the tour.

see (hear): http://www.skyfocus.nl/SkyFocus/Tours/H ... index.html
should be: http://www.skyfocus.nl/SkyFocus/Tours/H ... terjuffer/

Regards,

Arjan

Re: V5 VR HMD files and How to.

Posted: Wed Jan 20, 2016 10:47 am
by Svendus
hi Arjan
it is running nicely here iPhone 6

are you sure that not any window or tab are open in the background
Safari has an quit idiotic feature to let all the tabs open even in the background

Re: V5 VR HMD files and How to.

Posted: Wed Jan 20, 2016 11:31 am
by CBaroncini
Hello, is there a way to activate the hotspots via the center cross, as it works wearing an headset, when using the normal skin with the gyro activated on an iPad, without having to touch the hotspots icons?
Thanks.