question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Partially restore 'old' sphereCorrection behaviour (prior to 4.2.0)

See original GitHub issue

Hi,

I am developing an application which makes use of PSV and am coming across some problems getting it to work as intended in 4.2.0.

A bit of explanation: I load heading, pitch and roll from a server-side API rather than from the XMP data directly. The application allows users to correct heading, pitch and roll data via a web-based interface if the XMP data is inaccurate (which it frequently is), so the XMP data is sourced from a server-side API rather than directly from the image.

I can get it to work if I set useXmpData to false. However ideally I do not want to completely turn off loading all data from XMP - just the heading, pitch and roll.

The alternative approach of setting the panoData option does not work fully for my use-case. The application allows users to correct the heading, pitch and roll through controls in a web interface. See the screenshot below. The yellow line represents the route of a sequence of panos taken along the path, and the markers represent the pano positions themselves. You can see that the route is offset slightly from its real position, which is along the visible path. Note how the interface allows the user to change the heading, pitch and roll; pressing the buttons should move the panorama relative to the markers without reloading the panorama.

This works as intended on <4.2 or when useXmpData is false. It works by calling Viewer.setOption() with sphereCorrection set to the new, corrected, heading (pan), tilt (pitch) and roll values when the user presses the pan, tilt and roll correction controls shown on the screenshot below.

However if I try the same thing with panoData rather than sphereCorrection: I cannot use setOption() with panoData, I have to re-load the panorama, which is slow and does not lead to the desired effect of changing the panorama rotation relative to the overlaid markers.

Therefore, is it possible to restore part of the pre-4.2 functionality where sphereCorrection can be changed even if it was found in the XMP data? Or, alternatively, a refinement of the useXmpData option where you can set it to ignore heading, pitch and roll but use the other XMP data.

Of course, there may be a solution to what I want to achieve without doing this, but after experimentation I have not found a way. Many apologies if so and please let me know! rotationcontrols

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mistic100commented, Mar 7, 2021

Good catch, it was missing a recursive option on the raycaster

1reaction
nickw1commented, Mar 7, 2021

@mistic100 to add to that: this has definitely happened with this latest commit. If I use the immediate previous commit, the select-marker event is fired as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bountysource
Partially restore 'old' sphereCorrection behaviour (prior to 4.2.0)
Read more >
reasonable accommodations procedures - WorldWideScience
Twenty-eight children (4 to 14 years old) with high AC/A esotropia with a ... using subjective and novice objective techniques, was only partially...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found