Limit the pano horizontally to Half rotation

  • Hi,

    I am using two scenario for my Virtual tour

    1) Rotating the same pano continuously for n number of time
    2) Showing the next pano once first rotation completes.

    I am using below Code for both the scenario
    ----------------------------------------------
    1)
    I am using below code to rotate the pano 360 degree and once first rotation will complete it will start rotating of same pano again, Mean continuously showing same pano for n number of time.

    Code
    <action name"SamePanoRotate">
    lookto(90,0,75,smooth(200,50,10));
    lookto(180,0,75,smooth(200,50,10));
    lookto(270,0,75,smooth(200,50,10));
    lookto(0,0,75,smooth(200,50,10));
    
    
    set(hlookval, 0);
    if(hlookval == 0, SamePanoRotate();,);
    );

    Now, My question is
    1) for 1st scenario, How can I limit the particular pano horizontally in my tour using hlookatmin/hlookatmax with above code so that i will play the same pano again once half rotation will complete instead of full rotation?

    --------------------------------------
    2)
    I am using below code to change to next pano once first rotation will complete.

    Code
    <action name"SamePanoRotate">
    lookto(90,0,75,smooth(200,50,10));
    lookto(180,0,75,smooth(200,50,10));
    lookto(270,0,75,smooth(200,50,10));
    lookto(0,0,75,smooth(200,50,10));
    
    
    set(hlookval, 0);
    if(hlookval == 0, NextPano();,);
    );

    Now, My question is
    2) for 2nd scenario, How can i change to next pano once half rotation will complete?

    --
    Thanks
    pratiks

Participate now!

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