Thank you four your advices, Graydon, the compass altimeter works good now
Compass...
-
-
Glad it helped. Unfortunately I don't have an easy solution for the altimeter working when you aren't limiting the view vertically.
-
Hi Klaus.
In the right compass of your example, the North rotation is inverse of correct.
The pointer must rotate to the other site.
The magnetic pointer is always pointing to the North.
In real life, If I rotate to the left, the red pointer moves to the right. -
I have found the correct use of compass in Real Life:
Bad: sub(plugin[compass_pointer].rotate, view.hlookat, heading);
Good: sub(plugin[compass_pointer].rotate, heading, view.hlookat); -
I apologise for my English ... but how do in case of this compass?
http://www.acquedolcionline.com/acquedolci.asp
To run a standard image straight line instead of this circle? -
ooh yes that's nice ... how to do that?
Tuur
-
ooh yes that's nice ... how to do that?
Tuur
This is the example of Compass left KRpano 1.08, I simply created a smaller mask layer (a small circle) that makes you see only part of the Compass: the cardinal points ...
The problem is that if instead of seeing the cardinal points rotate circle, we wanted to see the cardinal points in an image straight throughInstead of
Code<action name="onviewchange"> sub(plugin[compass_plate].rotate, heading, view.hlookat); </action>
Unable to do so, and the effect may be more realistic..
-
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 -
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,
KlausHi,
Sorry, but perhaps I expressed myself well, I hope through the example of getting better understand ...
http://www.fedexx.it/Compass_test/
This his the code:
Code<!-- 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>
You can do that as soon as you end the image with the cardinal points flows from the beginning? and you can align with the actual North of photography?
Thanks !
-
Will you please give the full code on this? so we can learn and help?
Thanx
Tuur -
Will you please give the full code on this? so we can learn and help?
Thanx
Tuur*thumbsup*Code
Display More<!-- ------------------- 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 ---------------------------------------------------------------------------------- -->
-
Grazzi Mille
i will have a look tonight
Ciao
Arthuro
-
Grazzi Mille
i will have a look tonight
Ciao
Arthuro
Ok do you look tomorrow ...
-
Possible to get the rolling ?
we have now the tilt, but if is possible I'll want the rolling
-
Hi,
we have now the tilt, but if is possible I'll want the rolling
yes, you can get the rolling via the view.camroll variable,
best regards,
Klaus -
Hi,
yes, you can get the rolling via the view.camroll variable,
best regards,
KlausHi, Klaus thank's a lot, but
Quote(only when control.mousetype is "drag3d")
-
Hi Job.1,
Try with something like this:
Code<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" /> .....
set a value to control.headswing ... and retrieve the value of view.camroll on events.onviewchange...SAlut.
-
It's working well, but only with "drag3d"
dommage ! !
-
Hi Job.1,
QuoteIt's working well, but only with "drag3d"
Not only ... It's also working with control.mousetype = moveto ...Try it ...
Chouette ton Alti/compas ...SAlut
-
Hi Job.1,
Not only ... It's also working with control.mousetype = moveto ...Try it ...
Chouette ton Alti/compas ...SAlut
merci, mais non ça marche pô
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!