Sie sind nicht angemeldet.

1

Freitag, 1. Februar 2019, 15:47

Set "North" of a spherical image --> prealign

Hi,
I want to set the north of a tour to the same direction in all images. I´m using "prealign" because I don´t have any gps or "north" data. I´m rotating the panorama in the tour and then I estimate the degrees to prealign. Then I test and set prealign again until its fine.
Is there another option to do this faster? For example that I can see the ath value of the correct view and use the difference of starting view als prealign value?

So I have to see the ath-value of the actual view. Is there a plugin?

Thank you,
Marc

2

Freitag, 1. Februar 2019, 20:31

Do you want to set north when loading each scene? You can display the hlookat readings in the console and calculate the difference amendment

<events onviewchanged="trace(view.hlookat);" />




3

Samstag, 2. Februar 2019, 09:18

i always use this code to get spherical coordinates of panorama under mouse pointer:

<action name="get_coordinates">
screentosphere(mouse.x, mouse.y, toh, tov);
roundval(toh, 2);
roundval(tov, 2);
txtadd(txt, 'ath=&quot;', get(toh), '&quot; atv=&quot;', get(tov), '&quot;');
trace('ath=', toh, ' atv=', tov);
</action>

<events name="coordinates" onmousedown="get_coordinates();" keep="true" />


also if you wanna mesure ath roughly without click and console:


<events name="lookat" onviewchange="copy(hl, view.hlookat); Math.round(hl); copy(layer[tech_info].html, hl); " keep="true" />
<layer name="tech_info" url="plugins/textfield.swf" align="lefttop" html="" keep="true" />

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

4

Samstag, 2. Februar 2019, 11:03

Hi,

maybe this little tool i made is a option for you.
You'll find your coordinates under 'numbers'.
https://krpano.com/forum/wbb/index.php?p…74910#post74910

Tuur *thumbsup*