initial view --> (transition) to normal view

  • Code
    <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://https://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>

  • you have two krpano's in there

    Code
    <krpano version="1.0.8">
    
    
    <include url="skin/defaultskin.xml" />
    
    
    <krpano onstart="turn_to_view()">

    should be 1:

    Code
    <krpano onstart="turn_to_view()">
    
    
    <include url="skin/defaultskin.xml" />
  • 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>

  • 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


    Code
    <krpano version="1.0.8">
    krpano onstart="turn_to_view()">


    broken tag here should be just

    Code
    <krpano onstart="turn_to_view()">
  • 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" />

    ---------

    Edited 2 times, last by Bonoman (January 11, 2012 at 10:45 AM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!