if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); ); loadscene(get(startscene), null, MERGE); if(startactions !== null, startactions() );
txtadd(tooltipname, 'vrtooltip_', get(name)); addhotspot(get(tooltipname)); set(hotspot[get(tooltipname)], type=text, edge=get(hotspot[get(name)].edge), distorted=get(hotspot[get(name)].distorted), ath=get(hotspot[get(name)].ath), atv=get(hotspot[get(name)].atv), oy=-36, ox=0, vcenter=true, padding='3 8', mipmapping=true, oversampling=2, bg=true, bgcolor=rgba(18, 18, 18, 0.8), bgroundedge=2, bgalpha=0.8, bgborder=0, bgshadow='0 0 0 0x000000 0', css=calc(device.mobile ? 'text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;':'text-align:left; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;'), txtshadow='0 0 0 0x000000 0'; enabled=true, ); txtadd(hotspot[get(tooltipname)].onclick,'callwith(hotspot[',get(name),'],onclick)'); if(text == '' OR text === null, copy(hotspot[get(tooltipname)].html,scene[get(linkedscene)].title), copy(hotspot[get(tooltipname)].html,text); ); if(lp_running == false, set(hotspot[get(tooltipname)].visible,true); , if(!webvr.isenabled, if(lp_running == true, set(hotspot[get(tooltipname)].visible,false); set(hotspot[get(tooltipname)].mark2,true); ); ); ); if(hotspot[get(name)].normal == false, set(hotspot[get(tooltipname)].normal,false); set(hotspot[get(tooltipname)].onloaded, if(webvr.isenabled, set(visible,false); , if(lp_running == false OR lp_running == null OR lp_running === null, set(visible,true); ); ); ); );
spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, calc(mouse.stagex LT stagewidth/2 ? 'l' : 'r')); sub(drag_adjustx, mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); asyncloop(pressed, sub(dx, mouse.stagex, drag_adjustx); sub(dy, mouse.stagey, drag_adjusty); screentosphere(dx, dy, ath, atv);
);
skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.0, distance(1.0,0.5));
skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.35, distance(1.0,0.5));
skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 1.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.0, distance(1.0,0.5));
skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 1.0, distance(1.0,0.8));
skin_view_look_straight(); set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 1.0, distance(1.0,0.8)); if(view.distortion LT 0.1, tween(view.distortion, 1.0, distance(1.0,0.8)); );
set(view.stereographic, true); set(view.fov, get(xml.view.fov)); set(view.fovmax, get(xml.view.fovmax)); tween(view.distortionfovlink, 0.5, distance(1.0,0.5)); tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 1.0, distance(1.0,0.8)); tween(view.fov, 150, distance(150,0.8)); tween(view.vlookat, 90, distance(100,0.8)); add(new_hlookat, view.hlookat, 123.0); tween(view.hlookat, get(new_hlookat), distance(100,0.8));
set(view.stereographic, false);
set(view.fovmax, 180);
tween(view.architectural, 0.0, distance(1.0,0.5));
tween(view.fisheye, 1.5, distance(1.0,0.5));
tween(view.pannini, 0.0, distance(1.0,0.5));
tween(view.distortionfovlink, 1.0, distance(1.0,0.5));
tween(view.distortion, 1.5, distance(1.0,0.8));
tween(view.fov, 180, distance(150,0.8));
tween(view.vlookat, 0, distance(100,0.8));