Sie sind nicht angemeldet.

1

Montag, 9. November 2020, 12:19

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*

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Montag, 9. November 2020, 13:19

Hi,

Start with this code:


Quellcode

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

Donnerstag, 12. November 2020, 08:19

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:


Quellcode

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


Piotr
Hi,

Start with this code:


Quellcode

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


Piotr