You are not logged in.

1

Tuesday, January 10th 2012, 12:06pm

initial view --> (transition) to normal view

I like to make a transition at the start of the panorama like this:

http://www.pano.ie/panoramas/dublin/christ_church

How can I do it?

Thanks in advance

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

2

Tuesday, January 10th 2012, 1:18pm

Source code

1
2
3
4
5
6
7
<krpano onstart="turn_to_view()">

<action name=" turn_to_view">
 set(view.vlookat, 0);
set(view.hlookat, 0);
lookto(33,-22,30,smooth(8,8,8));
</action>

33 = the pan,
-22 = the tilt,
30 = fov
smooth(8,8,8) is the speedhttp://krpano.com/docu/actions/#lookto

3

Tuesday, January 10th 2012, 1:39pm

Source code

1
2
3
4
5
6
7
<krpano onstart="turn_to_view()">

<action name=" turn_to_view">
 set(view.vlookat, 0);
set(view.hlookat, 0);
lookto(33,-22,30,smooth(8,8,8));
</action>

33 = the pan,
-22 = the tilt,
30 = fov
smooth(8,8,8) is the speedhttp://krpano.com/docu/actions/#lookto


Thanks, but nothing seems to happen:

<krpano version="1.0.8">

<include url="skin/defaultskin.xml" />

<krpano onstart="turn_to_view()">

<action name=" turn_to_view">
set(view.vlookat, 0);
set(view.hlookat, 0);
lookto(33,-22,30,smooth(8,8,8));
</action>

<preview url="kamer1_sphere.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="728" progressive="false">
<level tiledimagewidth="2546" tiledimageheight="2546">
<left url="kamer1_sphere.tiles/l2_l_%0v_%0h.jpg" />
<front url="kamer1_sphere.tiles/l2_f_%0v_%0h.jpg" />
<right url="kamer1_sphere.tiles/l2_r_%0v_%0h.jpg" />
<back url="kamer1_sphere.tiles/l2_b_%0v_%0h.jpg" />
<up url="kamer1_sphere.tiles/l2_u_%0v_%0h.jpg" />
<down url="kamer1_sphere.tiles/l2_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1273" tiledimageheight="1273">
<left url="kamer1_sphere.tiles/l1_l_%0v_%0h.jpg" />
<front url="kamer1_sphere.tiles/l1_f_%0v_%0h.jpg" />
<right url="kamer1_sphere.tiles/l1_r_%0v_%0h.jpg" />
<back url="kamer1_sphere.tiles/l1_b_%0v_%0h.jpg" />
<up url="kamer1_sphere.tiles/l1_u_%0v_%0h.jpg" />
<down url="kamer1_sphere.tiles/l1_d_%0v_%0h.jpg" />
</level>
<mobile>
<left url="kamer1_sphere.tiles/mobile_l.jpg" />
<front url="kamer1_sphere.tiles/mobile_f.jpg" />
<right url="kamer1_sphere.tiles/mobile_r.jpg" />
<back url="kamer1_sphere.tiles/mobile_b.jpg" />
<up url="kamer1_sphere.tiles/mobile_u.jpg" />
<down url="kamer1_sphere.tiles/mobile_d.jpg" />
</mobile>
<tablet>
<left url="kamer1_sphere.tiles/tablet_l.jpg" />
<front url="kamer1_sphere.tiles/tablet_f.jpg" />
<right url="kamer1_sphere.tiles/tablet_r.jpg" />
<back url="kamer1_sphere.tiles/tablet_b.jpg" />
<up url="kamer1_sphere.tiles/tablet_u.jpg" />
<down url="kamer1_sphere.tiles/tablet_d.jpg" />
</tablet>
</image>

</krpano>

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

4

Tuesday, January 10th 2012, 2:06pm

you have two krpano's in there

Source code

1
2
3
4
5
<krpano version="1.0.8">

<include url="skin/defaultskin.xml" />

<krpano onstart="turn_to_view()">


should be 1:

Source code

1
2
3
<krpano onstart="turn_to_view()">

<include url="skin/defaultskin.xml" />

5

Tuesday, January 10th 2012, 3:18pm

Still no luck... *cursing*

----
<krpano version="1.0.8">

krpano onstart="turn_to_view()">

<action name=" turn_to_view">
set(view.vlookat, 0);
set(view.hlookat, 90);
lookto(33,-22,90,smooth(8,8,8));
</action>


<preview url="index.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="573" progressive="false">
<level tiledimagewidth="2865" tiledimageheight="2865">
<left url="index.tiles/l3_l_%0v_%0h.jpg" />
<front url="index.tiles/l3_f_%0v_%0h.jpg" />
<right url="index.tiles/l3_r_%0v_%0h.jpg" />
<back url="index.tiles/l3_b_%0v_%0h.jpg" />
<up url="index.tiles/l3_u_%0v_%0h.jpg" />
<down url="index.tiles/l3_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1433" tiledimageheight="1433">
<left url="index.tiles/l2_l_%0v_%0h.jpg" />
<front url="index.tiles/l2_f_%0v_%0h.jpg" />
<right url="index.tiles/l2_r_%0v_%0h.jpg" />
<back url="index.tiles/l2_b_%0v_%0h.jpg" />
<up url="index.tiles/l2_u_%0v_%0h.jpg" />
<down url="index.tiles/l2_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="717" tiledimageheight="717">
<left url="index.tiles/l1_l_%0v_%0h.jpg" />
<front url="index.tiles/l1_f_%0v_%0h.jpg" />
<right url="index.tiles/l1_r_%0v_%0h.jpg" />
<back url="index.tiles/l1_b_%0v_%0h.jpg" />
<up url="index.tiles/l1_u_%0v_%0h.jpg" />
<down url="index.tiles/l1_d_%0v_%0h.jpg" />
</level>
<mobile>
<left url="index.tiles/mobile_l.jpg" />
<front url="index.tiles/mobile_f.jpg" />
<right url="index.tiles/mobile_r.jpg" />
<back url="index.tiles/mobile_b.jpg" />
<up url="index.tiles/mobile_u.jpg" />
<down url="index.tiles/mobile_d.jpg" />
</mobile>
<tablet>
<left url="index.tiles/tablet_l.jpg" />
<front url="index.tiles/tablet_f.jpg" />
<right url="index.tiles/tablet_r.jpg" />
<back url="index.tiles/tablet_b.jpg" />
<up url="index.tiles/tablet_u.jpg" />
<down url="index.tiles/tablet_d.jpg" />
</tablet>
</image>

</krpano>

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

6

Tuesday, January 10th 2012, 4:27pm

That because you're just using trial and error and your xml is "broken"

Check these two links throughly and you will save a lot of time and frustration.
http://www.w3schools.com/xml/xml_whatis.asp
http://www.w3schools.com/xml/xml_validator.asp


Source code

1
2
<krpano version="1.0.8">
krpano onstart="turn_to_view()">

broken tag here should be just

Source code

1
<krpano onstart="turn_to_view()">
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

7

Tuesday, January 10th 2012, 4:41pm

It's working...thanks, for all your help!
Last question, I wan to change the start and the endpoint. What are my options?

-----

<krpano onstart="turn_to_view()">

<action name=" turn_to_view">
set(view.vlookat, 0);
set(view.hlookat, 90);
lookto(10,-1,100,smooth(30,30,30));
</action>


<preview url="kamer1_sphere.tiles/preview.jpg" />

---------

This post has been edited 2 times, last edit by "Bonoman" (Jan 11th 2012, 10:45am)


Similar threads