Hi guys, I'm wrting now panoramic photos viewer for fun. I'd like to do this on a 180 degrees sphere fragment. This is example:
http://michalhalas.pl/pano/ As you can see camera can pan and tilt but now i want to limit this moves to upper/down/left and right border of the image so the background is never seen when camera moves or when zoom/focus is being changed. I was trying to measure current fov angle with this functions: http://en.wikipedia.org/wiki/Angle_of_view and compare it with known vertical angle of this sphere part (or 180 horizontal). It doesnt work properly. Maybe someone here knows the answer how to do this? Thanks in advance, Michał
