I love panorama compare - but would like to have some autorote function
With regular panos I coukl easily put some text after "view settings " in xml file as below -
<!-- view settings -->
<view hlookat="0" vlookat="0" maxpixelzoom="1.0" fovmax="150" limitview="auto" />
<autorotate enabled="true" waittime="1" accel="0.6" speed="0.6" horizon="6" tofov="NaN"/>
Is it possible to make something similar in panorama compare ?
also is it possible to make side by side as start/ default view ( instead of splitscreen )
regards from Stockholm
panorama compare - how to get autorotate and more
-
-
Hi,
not sure if i understand your first question properly..
I guess the best way of doing this is to put the autorotate on pano 1 and let pano 2 follow the changes in the view with a js type action.
At the bottom of the compare-panos.xml there is the autorun onstart action.
Change split_screen(set,0.5); to side_by_side(tween);
.. or perhapse even better: side_by_side(set);
Tuur
-
Yes - thanks - Your suggestion works !
I was even able to figure out that top_bottom works as well - thanks !
but the autorotate thing is too difficult
-
i'll make a example to share, probably today.
Tuur

-
-
Brilliant - it works .
For my taste - normally I would like autorotaion to start after like 3 seconds automatically -
just to let people see it is a interactive panorama ...
and the speed maybe half of the current -
Add krp1.autorotate.waittime = 6;
Tuur

-
ha ha ha - where do I put it ?
-
Try after kr1.autorotate.enabled = true;Or perhaps just before.Same-ish for the speed.Try like this -
-
Ok, i made a thinking error.
It seems to be much simpler..
the correct code, i think is:Code
Display More<autorotate enabled="false" waittime="3" accel="1.0" speed="5.0" horizon="0.0" tofov="off" oneroundrange="360.0" zoomslowdown="true" interruptionevents="userviewchange|layers|keyboard" /> <layer name="button_autorotate" style="button" align="leftbottom" x="0" y="20" width="100" text="Autorotate" onclick="switch(autorotate.enabled)" />
Also fixed in the Portal
Tuur
-
I'm not sure where to put this
( and does it make a autortate button ? -
just add it to the compare-panos.xml in your examples folder to see.
or download the whole thing here:https://www.virtualtuur.com/krpano/portal/code/examples/autorotatecompare_1.xml
Tuur
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!