mistic100 / Photo-Sphere-Viewer

A JavaScript library to display 360° sphere panoramas.
https://photo-sphere-viewer.js.org
MIT License
1.87k stars 677 forks source link

Fix tilt? #150

Closed vietquocnguyen closed 6 years ago

vietquocnguyen commented 7 years ago

If a 360 image has been taken at an angle and I would like to tilt it to fix it. Not in the JPEG but in the viewer, is that possible?

I was looking at viewer.camera.rotateX Y and Z but I didn't quite understand it. Thank you!

mistic100 commented 6 years ago

Can you confirm you actually talk about the roll (angle of the horizon) ?

vietquocnguyen commented 6 years ago

That is correct @mistic100. Thank you! It would be nice if you can input the tilt and roll degrees and have the viewer reorient the image. It's also referenced as "Horizon Correction" or "Top/bottom Correction" http://www.360camerauser.com/horizon-correction-360-panoramas-ricoh-theta/

vietquocnguyen commented 6 years ago

@mistic100 Thank you! I saw in the commit you added the panorama_roll option which accepts a radian. Is this only Roll or does your commit handle tilt as well?

mistic100 commented 6 years ago

No it's only roll, what you message said before you edited it (there is no notification for editions). If you want more, create a new issue, or submit a pull-request, it's very simple.

mistic100 commented 6 years ago

In version 3.2.5 "panorama_roll" will be replaced by "sphere_correction.roll" and added "tilt" and "pan"