Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comooh yes that's nice ... how to do that?
Tuur![]()
|
|
Source code |
1 2 3 |
<action name="onviewchange"> sub(plugin[compass_plate].ox, heading, view.hlookat); </action> |
|
|
Source code |
1 2 3 |
<action name="onviewchange"> sub(plugin[compass_plate].rotate, heading, view.hlookat); </action> |
Hi,
in that example the image with the direction points is still rotating,
but only a small top part is visible, the rest of the rotating image was masked out,
best regards,
Klaus
|
|
Source code |
1 2 3 4 5 6 7 8 |
<!-- events, show a infotext on start, and call the "onviewchange" action on a view change --> <events onxmlcomplete="action(onstart);" onviewchange= "action(onviewchange);" /> <!-- Rotate --> <action name="onviewchange"> sub(plugin[compass_plate].ox, heading, view.hlookat); </action> |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comWill you please give the full code on this? so we can learn and help?
Thanx
Tuur![]()
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
<!-- ------------------- BUSSOLA ------------------------------------------------------------------------ -->
<!-- events, show a infotext on start, and call the "onviewchange" action on a view change -->
<events onxmlcomplete="action(onstart);"
onviewchange= "action(onviewchange);"
/>
<!-- Rotate -->
<action name="onviewchange">
sub(plugin[compass_plate].ox, heading, view.hlookat);
</action>
<!-- SET DIREZIONE NORD BUSSOLA -->
<action name="onstart">
set(heading, 0);
</action>
<!-- sf trasparente 200 x 200 -->
<plugin name="compass" url="compass/trasparent.png" keep="true" zorder="1" children="false"
align="lefttop" x="-15" y="10"
scale="1" scalechildren="true"
mask="compass_mask"
handcursor="false"
/>
<!-- effetto vetro -->
<plugin name="compass_glass" url="compass/compass_glass.png" keep="true" handcursor="false"
parent="compass" zorder="3"
mask="compass_mask3"
align="center"
/>
<!-- quadrante che ruota -->
<plugin name="compass_plate" url="compass/hotspots.png" keep="true" handcursor="false"
parent="compass" zorder="2"
scale="0.5" y="12"
mask="compass_mask"
align="top"
/>
<!-- ago bussola fisso -->
<plugin name="compass_pointer" url="compass/compass_pointer.png" keep="true" handcursor="false"
parent="compass" zorder="1"
mask="compass_mask2"
align="center"
/>
<!-- maskera -->
<plugin name="compass_mask" url="compass/compass.png" keep="true" handcursor="false"
parent="compass"
align="center"
/>
<!-- maskera2 -->
<plugin name="compass_mask2" url="compass/compass.png" keep="true" handcursor="false"
parent="compass"
align="center"
/>
<!-- maskera3 -->
<plugin name="compass_mask3" url="compass/compass.png" keep="true" handcursor="false"
parent="compass"
align="center"
/>
<!-- --------- FINE BUSSOLA ---------------------------------------------------------------------------------- -->
|
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Source code |
1 2 3 4 5 6 7 8 |
<krpano version="1.0.8" onstart="showlog();"> <events onviewchange="txtadd(msg,get(control.headswing),' - ', get(view.camroll)); trace(msg);" /> <control mousetype ="moveto" headswing ="5.00" /> ..... |