how to setup intro scene?

  • Hello,

    I looked around the forum but couldn't find this one specific task that I want to do.

    I want to setup a specific scene every time I start up the tour.

    For example, I have two scenes... A and B. I want to start at A but every time I open up the panorama tour it starts at scene B.

    Can someone please advise this.

    Thank you!

  • Hmm...Don't quite understand what you want...

    I use this code in the very beginning of the tour:

    Code
    <krpano version="1.16" onstart="loadscene(get(scene[0].name));>

    Which loads the first "scene" of the xml, whatever it is.

    If you want some other scene to be the first, just indicate its name:

    Code
    <krpano version="1.16" onstart="loadscene(hotel_reception); >

    Hope this helps *tongue*

    Regards,

    Alexey

  • Hello Alexey,

    Thanks for the reply but I'm still having trouble with this.

    I place the first code at the very top and in it fails.

    I try the second code and it fails.

    The error message states a Fatal Error: tour.xml- Loading or Parsing failed!

    Maybe it has something to do with this code?

    I'm still playing with it but no go.

    <action name="startup">
    if(startscene === null, copy(startscene,scene[0].name));
    loadscene(get(startscene), null, MERGE);
    </action>

  • I have the scenes in one xml file.

    It is also strange because hotspots appear randomly (on the ceiling and etc.)

    I tried replacing:

    Code
    <krpano version="1.16" title="Virtual Tour" onstart="startup();">

    with

    Code
    <krpano version="1.16" title="Virtual Tour" onstart="loadscene(scene_test); >

    If you don't mind, here's the original tour.xml.

  • Hi,

    Why don't you also try my textTable pluginas navigation table index for your scenes? This way user can jump to any scene he wants from the first page.

    Please let me know if you find this useful or you need any custom feature to be implemented in this plugin?

    Best regards
    PRAMANJ

Participate now!

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