You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

germain

Trainee

Posts: 53

Location: MARSEILLE FRANCE

Occupation: PANOPHOTOGRAPHE

  • Send private message

21

Friday, May 1st 2009, 12:38pm

Thank you four your advices, Graydon, the compass altimeter works good now *thumbup*

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

22

Saturday, May 2nd 2009, 3:32am

Glad it helped. Unfortunately I don't have an easy solution for the altimeter working when you aren't limiting the view vertically.

23

Friday, January 8th 2010, 2:21pm

Error in compass rotation...

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.

24

Friday, January 8th 2010, 2:33pm

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);

FEDEXX

Beginner

Posts: 10

Location: Italy

  • Send private message

25

Monday, June 7th 2010, 3:40pm

mini compass

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?

Tuur

Sage

Posts: 3,120

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

26

Monday, June 7th 2010, 9:06pm

ooh yes that's nice ... how to do that?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

FEDEXX

Beginner

Posts: 10

Location: Italy

  • Send private message

27

Tuesday, June 8th 2010, 7:57am

ooh yes that's nice ... how to do that?

Tuur *thumbsup*



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 through

Source code

1
2
3
 <action name="onviewchange"> 
sub(plugin[compass_plate].ox, heading, view.hlookat); 
</action>


Instead of

Source code

1
2
3
 <action name="onviewchange"> 
sub(plugin[compass_plate].rotate, heading, view.hlookat); 
</action>



Unable to do so, and the effect may be more realistic..

28

Thursday, June 10th 2010, 12:57pm

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

FEDEXX

Beginner

Posts: 10

Location: Italy

  • Send private message

29

Thursday, June 10th 2010, 3:40pm

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,

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:



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>


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 !

Tuur

Sage

Posts: 3,120

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

30

Thursday, June 10th 2010, 3:49pm

Will you please give the full code on this? so we can learn and help?

Thanx
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

FEDEXX

Beginner

Posts: 10

Location: Italy

  • Send private message

31

Thursday, June 10th 2010, 5:32pm

Will you please give the full code on this? so we can learn and help?

Thanx
Tuur*thumbsup*

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 ---------------------------------------------------------------------------------- -->

Tuur

Sage

Posts: 3,120

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

32

Thursday, June 10th 2010, 5:37pm

Grazzi Mille

i will have a look tonight

Ciao

Arthuro *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

FEDEXX

Beginner

Posts: 10

Location: Italy

  • Send private message

33

Thursday, June 10th 2010, 5:47pm

Grazzi Mille

i will have a look tonight

Ciao

Arthuro *thumbsup*
Ok do you look tomorrow ... ;-)

34

Wednesday, June 16th 2010, 8:28pm

Possible to get the rolling ?

we have now the tilt, but if is possible I'll want the rolling

http://fullinside.fr/compas/alti.html

35

Monday, June 21st 2010, 4:41pm

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

36

Monday, June 21st 2010, 5:20pm

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, Klaus thank's a lot, but

Quoted

(only when control.mousetype is "drag3d")

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

37

Monday, June 21st 2010, 6:22pm

Hi Job.1,

Try with something like this:

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"
	     	/>
.....

set a value to control.headswing ... and retrieve the value of view.camroll on events.onviewchange...

SAlut.

38

Monday, June 21st 2010, 6:49pm

It's working well, but only with "drag3d"

dommage ! !

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

39

Monday, June 21st 2010, 7:42pm

Hi Job.1,

Quoted

It's working well, but only with "drag3d"
Not only ;-) ... It's also working with control.mousetype = moveto *smile* ...Try it ;-) ...
Chouette ton Alti/compas *thumbup* ...

SAlut

40

Monday, June 21st 2010, 8:22pm

Hi Job.1,

Quoted

It's working well, but only with "drag3d"
Not only ;-) ... It's also working with control.mousetype = moveto *smile* ...Try it ;-) ...
Chouette ton Alti/compas *thumbup* ...

SAlut


merci, mais non ça marche pô

Similar threads