You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, November 9th 2020, 12:19pm

How do you make hotspots that are only seen in VR-MODE?

- What element(argument) should I put in the hotspot to make it invisible on webgl and only vr-mode?


- I'd appreciate it if you could let me know what else to do.


best regard :) *thumbsup*

spacerywirtualne

Professional

Posts: 1,112

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

2

Monday, November 9th 2020, 1:19pm

Hi,

Start with this code:


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
<hotspot ... checkvr="if(!webvr.isenabled, set(visible,false))" onloaded="checkvr()" />


<events name="checkvr_ev" keep="true"
	webvr_onentervr="reload_hotspots()"
 	webvr_onexitvr="reload_hotspots()"
/>

<action name="reload_hotspots" scope="local" protect="true">
	for(set(i,0), i LT hotspot.count, inc(i), 
		 callwith(hotpsot[get(i)], checkvr)
	); 
</action>


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Thursday, November 12th 2020, 8:19am

thank you^^

Hi,
Start with this code:
Source code




1
2
3
4
5
6
7
8
9
10
11
12
13
webvr_onentervr="reload_hotspots()"
webvr_onexitvr="reload_hotspots()"
/>

for(set(i,0), i LT hotspot.count, inc(i),
callwith(hotpsot[get(i)], checkvr)
);
</action>
Piotr
Hi,
Start with this code:
Source code




1
2
3
4
5
6
7
8
9
10
11
12
13
webvr_onentervr="reload_hotspots()"
webvr_onexitvr="reload_hotspots()"
/>

for(set(i,0), i LT hotspot.count, inc(i),
callwith(hotpsot[get(i)], checkvr)
);
</action>
Piotr
Hi,
Start with this code:
Source code




1
2
3
4
5
6
7
8
9
10
11
12
13
webvr_onentervr="reload_hotspots()"
webvr_onexitvr="reload_hotspots()"
/>

for(set(i,0), i LT hotspot.count, inc(i),
callwith(hotpsot[get(i)], checkvr)
);
</action>
Piotr
Hi,
Start with this code:
Source code




1
2
3
4
5
6
7
8
9
10
11
12
13
webvr_onentervr="reload_hotspots()"
webvr_onexitvr="reload_hotspots()"
/>

for(set(i,0), i LT hotspot.count, inc(i),
callwith(hotpsot[get(i)], checkvr)
);
</action>
Piotr
Hi,

Start with this code:


Source code

1
2
3
	for(set(i,0), i LT hotspot.count, inc(i), 
		 callwith(hotpsot[get(i)], checkvr)
	);


Piotr
Hi,

Start with this code:


Source code

1
2
3
	for(set(i,0), i LT hotspot.count, inc(i), 
		 callwith(hotpsot[get(i)], checkvr)
	);


Piotr