<krpano>
	 
	 
 <layer name="logopanoramicweb"   url="CSO_LOGO_ENG_7.png" url1="butonlar/menu.png"  url2="butonlar/Close11.png"  keep="true"  width="prop" height="75" zorder="5"  align="righttop"   x="15" y="50"  onclick=""  >

</layer>
<layer name="menualtbar" url="footer-BG.png" zorder="9" align="rightbottom" x="0" y="0" keep="true"  visible="true" width="100%" height="27" scalechildren="false"  capture="false" handcursor="false"  onloaded="set( sizeScreenshotPusula, get(stageheight)); div( perspusula , sizeScreenshotPusula ,1080 );  mul(height, get(perspusula));" > 
  <layer name="powerpanoramicweblogo" url="poweredbyPanoramicWEB_text.png" height="45%" width="prop" y="4" zorder="2" align="top" keep="true" handcursor="true" onclick="openurl('https://www.panoramicweb.net/',_blank);" />
  
</layer> 
	 
<contextmenu fullscreen="false"   versioninfo="false"  touch="false" customstyle="Montserrat|12|default|0x22ffffff|0x000000|0xcccccc|0|0|5|2|2|8|0x66000000|0|0|1|4|5|0xEEEEEE|none|1|0|0|0|3|0xEEEEEE|0|0|12|8" >
	 <item caption="Powered by PanoramicWEB™"  /> 
	</contextmenu>

	
	<include url="%VIEWER%/plugins/iphone_fullscreen_swipe.xml" />
	<include url="%VIEWER%/plugins/loadingpercenttext.xml" />	
	<display depthbuffer="true" />
	
		<!--

<include url="%VIEWER%/plugins/webvr.xml" />
	<include url="%VIEWER%/plugins/depthmap_navigation.xml" />

		<include url="timelines/timelines.xml" />	 -->
	<include url="dolly/dolly.xml" />
	
	
	<action name="Prep">
			set(events[blabla].onclick, set(dolly_1.nohlookat, 1));	
			tween(view.hlookat|view.vlookat|view.tx|view.ty|view.tz|view.ox|view.oy|view.oz|view.fisheye, calc(waypoint_1[cq1].hlookat + '|' + waypoint_1[cq1].vlookat + '|' + waypoint_1[cq1].tx + '|' + waypoint_1[cq1].ty + '|' + waypoint_1[cq1].tz + '|0|0|0|0'),1,,
			RunDolly(1));
		</action>
	
	
	
	<scene name="test_uv_tex_model_obj" autoload="true">
		<view hlookat="0" vlookat="0" fovtype="vFOV" fov="90" fovmin="30" fovmax="150" />
	
		<image>
			<sphere url="ayriayriyoplubake.jpg" />
			<depthmap url="ayriayri_toplu_bake_haydi_obj_sahne_asagi_obj.obj" rendermode="3dmodel"  center="0,0,0" scale="100" textured="true" waitforload="true" />
		</image>
		<!-- change the scene by pressing SPACE: -->
		<events onkeyup="if(keycode == 32, loadscene(test_uv_tex_model_pano,null,MERGE|KEEPMOVING|KEEPSCENES, BLEND(1)));" />
	</scene>
		
		
	<scene name="test_uv_tex_model_pano">
	
	<preview url="multires_panoramic/CSO360.tiles/preview.jpg" />

	<image prealign="0|0.0|0">
		<cube url="multires_panoramic/CSO360.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,768,1664,3200,6400" />
	
			<depthmap url="202282_cso_low_poly_object_stl_02.stl" rendermode="3dmodel" scale="100" subdiv="0" textured="false" waitforload="true" />
		</image>
		<!-- change the scene by pressing SPACE: -->
		<events onkeyup="if(keycode == 32, loadscene(test_uv_tex_model_obj,null,MERGE|KEEPMOVING|KEEPSCENES, BLEND(1)));" />
	</scene>
	
	
	<events ondoubleclick="delayedcall(1,set(keycode,32);events.onkeyup(););" />
	
	
	<style name="info" type="text" css="color:#FFFFFF;text-align:center;" bg="false" txtshadow="0 1 4 0x000000 1.0" enabled="false" />
	<style name="button" type="text" css="text-align:center;" padding="4 8" mergedalpha="false" bgborder="0 0xFFFFFF 1" bgroundedge="1" bgshadow="0 1 4 0x000000 1.0" ondown="set(bgcolor, 0xDDDDDD);" onup="set(bgcolor, 0xFFFFFF);" />
	
	<layer name="exampleinfo" style="info" keep="false" html="data:exampleinfo" align="center" y="-25%" enabled="true" onclick="set(visible,false);" />
	<layer name="sourceinfo" style="info" keep="false" html="data:sourceinfo" align="righttop" css="color:#FFFFFF;text-align:right;" enabled="true" />
	
	<events name="blabla" keep="true" onclick="" />	 
	
	<layer name="hareketbutton" visible="false" style="webvr_button_style" keep="false" vcenter="true" html="Motion"  width="150" align="bottom" y="120" onclick="Prep();" />
	
	<layer name="dollhouse" visible="false" style="webvr_button_style" keep="false" vcenter="true" html="Dollhouse"  width="150" align="bottom" y="70" onclick="dollhouse_view();" />
	<layer name="resetview" visible="false" style="webvr_button_style" keep="false" vcenter="true" html="Reset View" width="150" align="bottom" y="20" onclick="resetview();" />
	
	<layer name="texmodel" visible="false" style="webvr_button_style" keep="false" vcenter="true" html="Textured"   width="120" align="bottom" y="20" x="-150" onclick="loadpano(test2.xml,null,MERGE, BLEND(1));" />
	<layer name="depthmap" visible="false" style="webvr_button_style" keep="false" vcenter="true" html="Video" width="120" align="bottom" y="20" x="+150" onclick="StopDolly(1);resetview();loadpano(panoramicweb.xml,null,MERGE,  BLEND(3)); wait(blend);tween(layer[play].alpha , 1,1);  tween(layer[play2].alpha , 1,1);" />
		
	<action name="dollhouse_view">
		lookto(270,50,90,default,true,true);
		tween(view.oz|view.tx|view.ty|view.tz,calc(''+1200+'|'+image.ox+'|'+image.oy+'|'+image.oz));
		set(control.invert,true);
	</action>

	<action name="dollhouse_off">
		tween(view.oz, 0.0, 2.0);
		set(control.invert,false);
	</action>

	<action name="resetview">
		set(control.invert,false);
		tween(view.tx|view.ty|view.tz|view.ox|view.oy|view.oz|view.fisheye,
			calc(''+image.ox+'|'+image.oy+'|'+image.oz+'|0|0|0|0'),
			0.5,
			default
		);
	</action>
	
	<!-- adjust the UI layout from the depthmap_navigation.xml -->
	<events name="walkinfo_touch" keep="true" devices="mobile"
		onresize="if(stagewidth GT stageheight,
					set(layer[walkinfo_touch], align=rightbottom, x=80, y=40);
					set(layer[moveup], x=20, y=50);
					set(layer[movedn], x=20, y=20);
				  ,
					set(layer[walkinfo_touch], align=bottom, x=0, y=85);
					set(layer[moveup], x=20, y=90);
					set(layer[movedn], x=20, y=60);
				);
				" 
		/>













<style name="vr_menu_style" depth="140" scale="0.035" distorted="true" ath="0" atv="45" alpha="0.25" torigin="view" visible="false" />

	<hotspot name="vr_menu_bg"   style="vr_menu_style" keep="true" zorder="5" type="text" bg="true" bgcolor="0x000000" bgalpha="0.0" width="450" height="120" handcursor="false" onover="vr_menu_over();" onout="vr_menu_out();" />
	<hotspot name="vr_menu_home" style="vr_menu_style" keep="true" zorder="6" url="icons.png" crop="0|0|280|100" onover="vr_menu_over(); delayedcall(0,tween(alpha,0.75,0.1));" onout="vr_menu_out();" startupxml=""   />
	
	<hotspot name="vr_menu_l"  html="Go to Video"  style="webvr_button_style"  usewebvr="true" keep="false" visible="false"  distorted="true" zorder="6"  scale="1" ox="0" onover="vr_menu_over(); delayedcall(0,tween(alpha,0.75,0.1));" onout="vr_menu_out();" vr_timeout="1700" 
	onclick="call(layer[depthmap].onclick);" />
<!--	<hotspot name="vr_menu_r"   style="webvr_button_style" usewebvr="true" keep="true" visible="false" distorted="true" zorder="6" scale="0.6" ox="+28" onover="vr_menu_over(); delayedcall(0,tween(alpha,0.75,0.1));" onout="vr_menu_out();" vr_timeout="1700" onclick="if(plugin[panoravideoplayer].volume GT 0.0, set(plugin[panoravideoplayer].volume,0.0), set(plugin[panoravideoplayer].volume,1.0)); skin_volumectrl_update();" />
-->
	<action name="vr_menu_over">
		callwith(hotspot[vr_menu_bg],   tween(alpha|depth,1.0|135); );
		callwith(hotspot[vr_menu_home], tween(alpha|depth,0.5|135); );
		callwith(hotspot[vr_menu_l],     );
		callwith(hotspot[vr_menu_r],   );
	</action>

	<action name="vr_menu_out">
		if(hotspot[vr_menu].hovering == false,
			callwith(hotspot[vr_menu_bg],   tween(alpha|depth,0.25|140); );
			callwith(hotspot[vr_menu_home], tween(alpha|depth,0.25|140); );
			callwith(hotspot[vr_menu_l],    );
			callwith(hotspot[vr_menu_r],     );
		  );
	</action>

	<action name="vr_menu_loadhome">
		if(indexof(startupxml,'://') LT 0, txtadd(startupxml, '%HTMLPATH%/', get(startupxml)); );
		loadpano(get(startupxml), null, MERGE|KEEPMOVING, BLEND(1));
		vr_menu_setvisibility(false);
		add_examples();
		showthumbs();
	</action>

	<action name="vr_menu_setvisibility">
		set(hotspot[vr_menu_bg].visible,   %1);
		set(hotspot[vr_menu_home].visible, %1);
		if(scene.count GT 1,
			set(hotspot[vr_menu_bg].width, 600);
			set(hotspot[vr_menu_l].visible, %1);
			set(hotspot[vr_menu_r].visible, %1);
		  ,
			set(hotspot[vr_menu_bg].width, 320);
			set(hotspot[vr_menu_l].visible, false);
			set(hotspot[vr_menu_r].visible, false);
		  );
	</action>

	<action name="vr_menu_nextscene">
		
	</action>

	<events name="vr_menu_eventsmenu" keep="true" onviewchange="vr_menu_following();"  />

	<action name="vr_menu_following" type="Javascript"><![CDATA[

		var hs1 = krpano.get("hotspot[vr_menu_bg]");
		var hs2 = krpano.get("hotspot[vr_menu_home]");
		var hs3 = krpano.get("hotspot[vr_menu_l]");
		var hs4 = krpano.get("hotspot[vr_menu_r]");

		if(!hs1.hovering && !hs2.hovering && !hs3.hovering && !hs4.hovering)
		{
			var f = 0.01;	// follow speed factor

			var h = krpano.view.hlookat;
			var v = krpano.view.vlookat;
			var hsh = hs1.ath;
			var hsv = hs1.atv;

			// map to -180 to +180
			h   = (h  -(h|0))   + (((h|0)  +360180)%360) - 180.0;
			hsh = (hsh-(hsh|0)) + (((hsh|0)+360180)%360) - 180.0;

			// get the shortest horizontal distance
			dh = h - hsh;
			dh += (dh>180) ? -360 : (dh<-180) ? 360 : 0

			// follow slowing horizontally
			hsh += dh*f;

			// fade out when farther away
			var a = Math.abs(v - hs1.atv) / 90.0;
			a = 0.5 * Math.max(1.0 - 2.0*Math.sqrt(a), 0);

			// move up the more looking down
			v = v + 55.0 - v*1.5;
			hsv = hsv*(1-f) + v*f;

			// set everything
			hs2.alpha = hs1.alpha = a;
			if(!hs3.hovering) hs3.alpha = a;
			if(!hs4.hovering) hs4.alpha = a;
			hs4.ath = hs3.ath = hs2.ath = hs1.ath = hsh;
			hs4.atv = hs3.atv = hs2.atv = hs1.atv = hsv;
		}
	]]></action>







</krpano>
