Sie sind nicht angemeldet.

1

Mittwoch, 22. Juni 2016, 19:36

thumbs for mormal mode and VR mode

Hi, I have smal tour.
My customer wants on starting ( first one) pano navigation thumbs. But layer in the center work only for PC and for VR I need hotspots.

My question is how to check if I am in VR mode or not.

In "onstart" of the first pano I suppose to check if I am in VR mode and than set hotspots visible and layers not visible.
And also check if I am out of VR mode, than set hotspot unvisible and layers visible.
Am I clear?

I just do not know what should be the right syntax for checking VR mode.
http://www.virtualczech.cz/meillerfinal/

Thanks in advance

2

Mittwoch, 22. Juni 2016, 21:17

Hi,

My question is how to check if I am in VR mode or not.
Use the 'isenabled' property of the webvr plugin - see here:
http://krpano.com/plugins/webvr/#isenabled

E.g. in typical examples (where 'plugin[webvr]' was linked to a 'webvr' object) just 'webvr.isenabled' can be used.

Best regards,
Klaus