mapillary / OpenSfM

Open source Structure-from-Motion pipeline
https://www.opensfm.org/
BSD 2-Clause "Simplified" License
3.4k stars 859 forks source link

How to use OpenSfM viewer to watch 360 degree panorama photos #235

Closed WongPhuKwei closed 6 years ago

WongPhuKwei commented 7 years ago

I would like to know how to use OpenSfM viewer to watch 360 degree panorama photos. like Google street map, I can look around, not only go forward and backward. I made the structure with equirectangular type photo. Many thx.

WongPhuKwei commented 7 years ago

look around means I can stand in a position and look the thing around me. in other words, rotating in a position. many thanks.

paulinus commented 7 years ago

You can use SHIFT+DRAG to look around.

What you won't be able to do is to easily move from one image to another using the arrows on the screen. This is because those arrows were designed for perspective images that have a determined viewing direction. For panoramas, one should ignore that direction.

It is possible to modify the code in reconstruction.html to enable better navigation for panoramas. If you get to do it, please let us know. Thanks!

WongPhuKwei commented 7 years ago

Thanks Pau. Yes, I would like do navigation for panoramas in OpenSfM, Like google street map. could you give me some support?

paulinus commented 7 years ago

The code computing the possible motions is here. It checks whether there are images that would produce the wantedMotion and that look towards the wantedDirs.

It needs to be modified so that, in case the images are 360, the wantedDirs are ignored.