Same Field of View (FoV) in another image of a second tour (linking via url!)

Q&A about the latest versions
Post Reply
fnachtwey
Posts: 9
Joined: Mon Nov 09, 2020 12:22 pm

Hello all,

I ve started a multi-year project and need some help. To accompany a building project, I will create a tour with different pictures every year. I will always try to take the photos from the same location. In the tour there will be a button for each year and you can jump to the same picture (via Direct Node Access) in the other tour. I use customNodeID´s if this is important! 071 ist picture 71 of nearly 120 pictures.
2022-11-27 20_10_53-202004.p2vr_ - Pano2VR.png
2022-11-27 20_10_53-202004.p2vr_ - Pano2VR.png (3.93 MiB) Viewed 513 times
The jump to the other photo already works, but unfortunately the alignment of the photos does not fit: https://fnachtwey.de/Panorama/Test/UniF ... 2.6,100.00
Since I can't always align the camera the same way, the photos are not congruent. However, I have aligned the north in Pano2VR. In the URL above I used the following setting: First I set the targe = "$(an),$(at),$(af)" and then I call up "../202211/index.html#$(ucnode),$(*target)" via Go to URL. Unfortunately, this does not work with "$(fwd)" -> within the same tour it work well!

I then tried the JavaScript API and with "pano.setPanNorth(angle_in_degrees:Number)" I can jump to the same image angle. Perfect!
Unfortunately, I was not able to call up the URL of the other tour (https://fnachtwey.de/Panorama/Test/UniF ... x.html#071) via JavaScript and adjust the viewing direction there.

Therefore, my question: How can I call up the same field of view in the other image of the other tour if the images are not congruent (where only the north is aligned in Pano2VR)?

I hope I was able to explain my question in an understandable way. Otherwise you are welcome to call up the URLs and get an idea of the problem.

I would be glad about some helpful tips.

Many thanks and best regards
Frank
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Frank,
In all the panoramas of the same location, look for a reference point and set this as North.
Note, it does not need to be north unless you are using a map.
Also zoom in when setting North to get it as accurate as possible.
Once done use the target, “Forward”.
This will then use the heading when changing nodes.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
fnachtwey
Posts: 9
Joined: Mon Nov 09, 2020 12:22 pm

Hi Hopki,

thank you very much for your support. "Forward" works very well when the panoramas are in the same tour. That also works. But my panoramas refer to another tour and unfortunately it doesn't work there. Here I would have to work with JavaScript and "pano.setPanNorth(angle_in_degrees:Number)". If I enter this into the console of the browser, it also works. However, I have not found a way to refer to the second panorama in the other tour via JavaScript so that the view is aligned to the north.

So I would need something in this direction when I click on the button:

pano.openNext('{node1}','pano.setPanNorth(angle_in_degrees:Number)');

Maybe there are some JavaScript experts here who have a solution for this.

If you click on my site (https://fnachtwey.de/Panorama/Test/UniF ... x.html#071) on the menu on the top middle (Skin wechseln) and you click on "2020 April" or "2022 November" then you see what I mean. By using "forward" ($(ap), $(at) and $(af)) it does not work. I think I need the real north...


Many thanks and best regards
Frank
Attachments
ChangeFieldofView.png
ChangeFieldofView.png (580.28 KiB) Viewed 454 times
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
You can use the placeholder N$(an).
This will use the north setting, for example, a target of N$(an)/$(at)/$(af) is the same as Forward.
But as they are separate parameters you can of course fix the tilt or FoV, for example, N$(an)/$(at)/100.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply