You are not logged in.

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 200

Occupation: Photographer

  • Send private message

1

Tuesday, October 27th 2015, 9:16am

options plugins - more decimal numbers for lookat?

Hi Klaus.
I am working on flat Gigaixel panorama and two decimal numbers for lookat in options plugins are not enough. For setting the hotspots or layers exactly on the desired place I found I need at least 3 decimal numbers.
Is it possible to change options plugins (preferably before some major update as I can“t wait so long :)) or is there some othe method how to get this information?
Thank you very much!
BR Igor
Best regards,
Igor Socha

Tuur

Sage

Posts: 3,839

Location: Netherlands

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

  • Send private message

2

Tuesday, October 27th 2015, 10:48am

Hi,

something like this?

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
<events name="coords" keep="true" onclick="MakeCoords" />		
		
<layer name="coords" url="../plugins/textfield.swf" keep="true" align="left" width="300" height="100" backgroundcolor="0xffff00" html="ATH = [br] ATV =" selectable="true" css="text-align:left; color:#000000; font-family:Helvetica; font-weight:regular; font-size:14px;" />

<action name="MakeCoords">
	screentosphere(mouse.x, mouse.y, toh, tov);
	set(layer[coords].html, calc:'ATH = ' + toh + '[br]ATV = ' + tov );

	showlog(); 
	trace('ATH = ', get(toh));
	trace('ATV = ', get(tov));

</action>


http://www.virtualtuur.com/krpano/coords/1/index.html

Hope it helps
Tuur *thumbsup*

Tuur

Sage

Posts: 3,839

Location: Netherlands

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

  • Send private message

3

Tuesday, October 27th 2015, 11:12am

maybe you mean this?

http://www.virtualtuur.com/krpano/coords/2/index.html

Source code

1
2
3
4
5
6
7
8
9
<events name="coords" keep="true" onviewchange="MakeCoords" />		
		
<layer name="coords" url="../plugins/textfield.swf" keep="true" align="left" width="300" height="100" backgroundcolor="0xffff00" html="" selectable="true" css="text-align:left; color:#000000; font-family:Helvetica; font-weight:regular; font-size:14px;" />

<action name="MakeCoords">
	set(layer[coords].html, calc:'Hlookat = ' + view.hlookat + '[br]Vlookat = ' + view.vlookat + '[br]FOV = ' + view.fov );

	delayedcall(0.01, MakeCoords());
</action>


Tuur *thumbsup*

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 200

Occupation: Photographer

  • Send private message

4

Tuesday, October 27th 2015, 12:12pm

Thank you very much! Perfect! *thumbsup*
Best regards,
Igor Socha

Tuur

Sage

Posts: 3,839

Location: Netherlands

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

  • Send private message

5

Wednesday, October 28th 2015, 6:20pm

Hi Igor,

here a better version with the roundval.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<events name="coords" keep="true" onviewchange="MakeCoords" />		
		
<layer name="coords" url="../plugins/textfield.swf" keep="true" align="left" width="300" height="100" backgroundcolor="0xffff00" html="" selectable="true" css="text-align:left; color:#000000; font-family:Helvetica; font-weight:regular; font-size:14px;" />

<action name="MakeCoords">
	<!-- 4 digits max -->
	roundval(view.hlookat,4);
	roundval(view.vlookat,4);
	roundval(view.fov,4);

	set(layer[coords].html, calc:'Hlookat = ' + view.hlookat + '[br]Vlookat = ' + view.vlookat + '[br]FOV = ' + view.fov );	
</action>


Tuur *thumbsup*

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 200

Occupation: Photographer

  • Send private message

6

Wednesday, October 28th 2015, 6:26pm

Hartelijk Bedankt Tuur!
Best regards,
Igor Socha

rhuansantos

Beginner

Posts: 9

Location: Brazil, Rio de janeiro

Occupation: Web Developer

  • Send private message

7

Saturday, November 7th 2015, 6:25pm

It's works

Thank you guys, it's working well...

Just one question, could I do that just using Js? if yes, how?