Hi,
after seing the flat view option for 360 videos triggering the action "videointerface_flat_view" ,
i'm wondering if that's possible to adapt for 360 image panos ?
i use cube faces pano and with this action it zoom really too much
anyone ?
thanks
z
Code
<!-- move to flat view projection -->
<action name="videointerface_flat_view">
videointerface_update_viewmenu(flat);
if(videointerface_isflat !== true,
set(videointerface_isflat, true);
stoptween(view.fov);
mod(view.hlookat, 360);
set(view.limitview, off);
set(view.maxpixelzoom, 0);
copy(videointerface_backup_fovmin, view.fovmin);
set(view.fovmin, 0.01);
set(control.usercontrol, off);
copy(videointerface_backup_mousetype, control.mousetype);
set(control.mousetype, drag2d);
copy(current_fov, view.fov);
copy(videointerface_backup_fovtype, view.fovtype);
remapfovtype(current_fov, get(view.fovtype), HFOV);
set(view.fovtype, HFOV);
copy(view.fov, current_fov);
copy(startfov, current_fov);
copy(image_hfov, image.hfov);
tween(image_hfov, 1.0, 3.0, linear,
set(control.usercontrol,all);
set(view.fovmin, 0.25);
set(view.hlookatmin, -2);
set(view.hlookatmax, +2);
set(view.vlookatmin, -1);
set(view.vlookatmax, +1);
set(view.limitview, range);
,
if(image_hfov LT 90,
mul(view.fov, image_hfov, 1.1);
,
sub(hr, image_hfov, 90);
div(hr, 270);
sub(hr2, 1, hr);
mul(a, startfov, hr);
mul(b, 99, hr2);
add(view.fov, a,b);
);
copy(image.hfov, image_hfov);
set(image.vfov, 0);
updateobject(true, true);
);
adjusthlookat(0);
tween(view.hlookat, 0, 1.5);
tween(view.vlookat, 0, 1.5);
);
</action>
Display More