HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/panomity.de/vr.panomity.com/plugins/flatpano_setup.xml
<krpano>
	<!-- krpano 1.18 viewing and controlling setup for flat panos -->

  <!-- view settings -->
	<!-- <view fovtype="HFOV" fov="1.0" fovmax="1.0" maxpixelzoom="2.0" limitview="lookat" /> -->

	<!-- control settings (drag2d for flat pano) -->
	<!-- <control mousetype="drag2d" touchtype="drag2d" zoomtocursor="true" zoomoutcursor="true" bouncinglimits="true" keycodesin="16" keycodesout="17" /> -->


	<!-- events and actions for adjusting the view settings to see the whole image -->
	<events name="flatpano_events" onresize="flatpano_imagefit();" />

	<!-- setup the view to show the whole image at startup -->
	<action name="flatpano_startup">
		div(pano_aspectratio, image.hfov, image.vfov);
		div(screen_aspectratio, area.pixelwidth, area.pixelheight);

		if(pano_aspectratio GT screen_aspectratio,

			set(view.fovtype, HFOV);
			copy(view.fov,    image.hfov);
			copy(view.fovmax, image.hfov);
		,
      
      set(view.fovtype, VFOV);
			copy(view.fov,    image.vfov);
			copy(view.fovmax, image.vfov);
		);
	</action>

	<!-- adjust the fov limits during resizing -->
	<action name="flatpano_imagefit">
		if(image.vfov GT 0,
			div(pano_aspectratio, image.hfov, image.vfov);
			div(screen_aspectratio, area.pixelwidth, area.pixelheight);

			if(pano_aspectratio GT screen_aspectratio,
				if(view.fovtype == VFOV,
						remapfovtype(view.fov, VFOV, HFOV, lastresize_width, lastresize_height);
						set(view.fovtype, HFOV);
						copy(view.fovmax, image.hfov);
				  );
			  ,
				if(view.fovtype == HFOV,
						remapfovtype(view.fov, HFOV, VFOV, lastresize_width, lastresize_height);
						set(view.fovtype, VFOV);
						copy(view.fovmax, image.vfov);
				  );
			  );
		);

		set(lastresize_width, get(area.pixelwidth));
		set(lastresize_height, get(area.pixelheight));
	</action>

</krpano>