Sie sind nicht angemeldet.

1

Mittwoch, 10. Oktober 2018, 11:05

why do hot spots disappear in VR mode?

Could you please tell me why the Hotspots disappear in the VR mode?


here



<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" distorted="true"
tooltip=""
linkedscene=""
linkedscene_lookat=""
onclick="skin_hotspotstyle_click();"
onover="tween(scale,0.55);"
onout="tween(scale,0.5);"
onloaded="if(linkedscene AND skin_settings.tooltips_hotspots, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); );
add_all_the_time_tooltip();"

/>


<action name="add_all_the_time_tooltip">
txtadd(tooltipname, 'tooltip_', get(name));
addplugin(get(tooltipname));
txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
set(plugin[get(tooltipname)].align,top);
set(plugin[get(tooltipname)].edge,bottom);
set(plugin[get(tooltipname)].x,0);
set(plugin[get(tooltipname)].y,0);
set(plugin[get(tooltipname)].width,200);
set(plugin[get(tooltipname)].autoheight,true);
set(plugin[get(tooltipname)].background,false);
set(plugin[get(tooltipname)].border,false);
set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:32px;');
set(plugin[get(tooltipname)].textshadow,1);
set(plugin[get(tooltipname)].textshadowrange,6.0);
set(plugin[get(tooltipname)].textshadowangle,90);
copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);
set(plugin[get(tooltipname)].enabled,false);
</action>

2

Donnerstag, 11. Oktober 2018, 12:43

Hi,

in WebVR only WebGL content is possible - and hotspots with layers attached are currently supported to be rendered by CSS3D.

As alternative solution for the moment you could use several hotspots stacked on each other (by using the same ath/atv positions and zorder for the depth sorting).

Best regards,
Klaus

3

Freitag, 12. Oktober 2018, 11:05

Thank you for your answer.

First of all, I made two styles.
Please confirm the link.

Here, there are titles and nothing.
The title is supposed to disappear from vr mode.
Can't you let a hotspot without a title disappear from the regular webgls? Please check the code


here

--------------tour.xml---

<hotspot name="spot1" style="skin_hotspotstyle" ath="-58.127" atv="12.416" linkedscene="scene_002" />
<hotspot name="spot2" style="skin_hotspotstyle" ath="-10.027" atv="14.486" linkedscene="scene_003" />


<hotspot name="spot3" style="skin_titlestyle" ath="-48.127" atv="12.416" linkedscene="scene_002" />
<hotspot name="spot4" style="skin_titlestyle" ath="-20.027" atv="14.486" linkedscene="scene_003" />


<!-------------------------- skin_hotspotstyle - style for the hotspots -->

<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" distorted="true"
tooltip=""
linkedscene=""
linkedscene_lookat="get(hotspot[get(name)].ath),get(hotspot[get(name)].atv),get(view.fovmin),smooth(400,-400,400),true,false"
onclick="lookto(get(hotspot[get(name)].ath),get(hotspot[get(name)].atv),get(view.fovmin),smooth(400,-400,400),true,false);
skin_hotspotstyle_click();"
onover="tween(scale,0.55);"
onout="tween(scale,0.5); set(autorotate.enabled, true);"
onhover="tween(plugin[textfield].alpha,0);
set(autorotate.enabled, false);"
onloaded="do_crop_animation(128, 128, 15);"
/>

<style name="skin_titlestyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" distorted="true"
tooltip=""
linkedscene=""
linkedscene_lookat="get(hotspot[get(name)].ath),get(hotspot[get(name)].atv),get(view.fovmin),smooth(400,-400,400),true,false"
onclick="lookto(get(hotspot[get(name)].ath),get(hotspot[get(name)].atv),get(view.fovmin),smooth(400,-400,400),true,false);
skin_hotspotstyle_click();"
onover="tween(scale,0.55);"
onout="tween(scale,0.5); set(autorotate.enabled, true);"
onhover="tween(plugin[textfield].alpha,0);
set(autorotate.enabled, false);"
onloaded="do_crop_animation(128, 128, 15);
add_all_the_time_tooltip();"

/>