Hi,
I want to zoom out my flat pano even if the panorama becomes too small - surrounded by black space.
Is it possible?
Hi,
I want to zoom out my flat pano even if the panorama becomes too small - surrounded by black space.
Is it possible?
Thanx, but already tried without success.
with limitview="fullrange" I can see the whole panorama. But I want to zoom out even more.
I've found it... and removed it !
<events name="flatpano_events" onnewpano="flatpano_startup();" 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>
Display More
How i can disable zoom function? I need mouse wheel for other action...
QuoteHow i can disable zoom function? I need mouse wheel for other action...
Set the 'mousefovchange' setting to 0:
https://krpano.com/docu/xml/#control.mousefovchange
Best regards,
Klaus
Don’t have an account yet? Register yourself now and be a part of our community!