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.

1

Friday, February 1st 2019, 3:47pm

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

San7

Intermediate

Posts: 311

Occupation: coding in krpano

  • Send private message

2

Friday, February 1st 2019, 8:31pm

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

Saturday, February 2nd 2019, 9:18am

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

Sage

Posts: 3,327

Location: Netherlands

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

  • Send private message

4

Saturday, February 2nd 2019, 11:03am

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*
http://www.virtualtuur.com
Skype:studiotuur