How to use the trace function?

  • Hi

    I'm in need of some guidance as I can't seem to get my head round this.

    My aim is;

    To link the hlookat value of each panorama to ensure that each new panorama opens in the same view direction as the previous.

    I'm trying to ensure that when a viewer leave my first panorama and opens my second panorama the new view would be synchronized to the first.

    Studying various posts within the forum would I be correct that the best way to achieve this is using the trace function?

    Could anyone please point me in the right direction where I could find some more info on the subject, that would help me compile the correct code.

    Many thanks

    Graham

  • trace function is only for writing to the debug log for checking the value of elements or variables.
    Admittedly, trace is one of the most important functions in krpano.

    To keep the view you use keepview.
    loadscene(scenename,null,MERGE|KEEPVIEW);
    or something to this effect.
    search the forum for keepview if this doesn't work.

Participate now!

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