You are not logged in.

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 154

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

1

Wednesday, May 28th 2014, 10:25pm

Slowing rotation and tweening

Hello

http://john-law.net/projects/al-andalus/charlesV/

I’ve managed to get this pano of a palace in Granada to tween from one view to another - many thanks Klaus!
But how do I slow down both the tweening and the rotation? This brutally contrasting building was built next to the elegant Nazrid Palaces (panos to follow) and took from 1527 - 1957 to complete! Now they were REALLY slow…

here is the borrowed code with my ‘slowing’ attempts:

<view stereographic="true"
fisheye="1.0"
fov="105"
fovtype="VFOV"
fovmax="150"
hlookat="-60"
vlookat="77"
/>
<events onloadcomplete="delayedcall(2.0, normalview());"
/>

<action name="normalview">
tween(view.hlookat, -40, 2.5, easeInOutQuad);
wait(1);
tween(view.vlookat, -105, 2.5, easeInOutQuad);
wait(1.5);
tween(view.fov, 105, 2.5, easeInOutQuad);
wait(2);
tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
wait(2.5);
set(display.flash10, on);
switch(autorotate.enabled);
IF(autorotate.enabled == false, switch(autorotate.enabled));
delayedcall(1.5, set(autorotate.speed="0.1"));
</action>

Thanks
JL

2

Friday, May 30th 2014, 12:23pm

Hi,

just adjust the time value in the tween calls:
http://krpano.com/docu/actions/#tween

Best regards,
Klaus

jl-krp

Intermediate

  • "jl-krp" started this thread

Posts: 154

Location: Bath

Occupation: Panographer - hobby and commercial

  • Send private message

3

Friday, May 30th 2014, 1:33pm

time adjustment

Many thanks Klaus!
JL