with javascript, load 2 scenes

  • Hello,
    I have a problem with a javascript code.

    I have 2 div and several different scenes (in the same .xml file)
    I want to place in the krpanoSceneD object the same scene as in krpanoSceneG, but with a fixed zoom of 10x in order to visualize it in my 2nd div.


    varhlookat = krpanoSceneG.get("view.hlookat");
    varvlookat = krpanoSceneG.get("view.vlookat");
    varfov = krpanoSceneG.get("view.fov") /10;
    varkrpanoSceneNum = krpanoSceneG.get("xml.scene");
    krpanoSceneD.set("xml.scene", krpanoSceneNum);
    krpanoSceneD.set("view.hlookat", hlookat );
    krpanoSceneD.set("view.vlookat", vlookat );
    krpanoSceneD.set("view.fov", fov );
    My code above works except for :
    krpanoSceneD.set("xml.scene", krpanoSceneNum);

    I can't make the scene change.

    can you help me?
    A very big thank you
    Vincent

    Edited once, last by Barras (August 18, 2020 at 2:42 PM).

Participate now!

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