hello, I make a virtual tour with several panos and I want that all panos start with an intro little planet. I know how to do an intro littleplanet but not for all panos. Thank you in advance for your assistance.
best regards
JP
littleplanet for all the panos
-
-
Try this code:
<krpano version="1.19" title="Virtual Tour">
<include url="skin/vtourskin.xml" />
<events name="little_planet_intro_always" keep="true" onxmlcemplete="little_planet_view_onstart()" onloadcomplete="delayedcall(2.0, gotonormalview());" />
<action name="little_planet_view_onstart">
set(view.stereographic, true);
set(view.fisheye, 1.0);
set(view.fov, 155);
set(view.fovtype, VFOV);
set(view.fovmax, 150);
set(view.hlookat, -60);
set(view.vlookat, 77);
</action>
<action name="gotonormalview">
tween(view.hlookat, -40, 2.5, easeInOutQuad);
tween(view.vlookat, -35, 2.5, easeInOutQuad);
tween(view.fov, 85, 2.5, easeInOutQuad);
tween(view.fisheye, 0.0, 2.5, easeInOutQuad);
wait(2.7);
set(display.flash10, on);
</action>
[...]Piotr
-
Hello,
Thank you very much for your answer.
This does not work but this may be because I'm not very good with Krpano.
I will continue on this idea.
Best regards -
I tested this code and it works for me
Piotr
-
Hi,
maybe the problem is here.
onxmlcemplete should be onxmlcomplete (?)(i think onnewscene alone will also work. "little_planet_view_onstart();delayedcall(2.0, gotonormalview());" )
hope it helps.
Tuur
-
Tuur is right. Of course, it should be onxmlcomplete.
Piotr -
A big thank you ...
Now it works. There was just a little mistake.
Indeed in this code "<events name =" little_planet_intro_always "keep =" true "onxmlcemplete =" little_planet_view_onstart () "onLoadComplete =" delayedcall (2.0 gotonormalview ()); "/>"
There is a misspelling. .. "onxmlcemplet "instead of" onxmlcomplete "a E instead of O.
Many thanks
Best regards
JP
http://www.jeanpierrerieu.fr -
Hello,
It's ok. It works fine but I still have a little problem.
Indeed, I have set the view from my different panos but where I start little planet in the finish order is not the same. thank you in advance
JP
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!