ptviewer: How to display next pano with pan tilt fov already applied?
Hi all,
may I ask for your advice with the following ptviewer problem?
I am building a kind of "unlimited" panorma tour (more like streetview).
To do this the next image needs to have same pan tilt fov as the recent
image.
The following function does this, BUT always displays the next image with
default 0,0,0 before pan tilt fov happens.
I wonder if there is a way to display the new image with pan titl fov
already applied?
Thanks,
Jan
function nextpano(nextimage) {
pan =document.ptviewer.pan();
tilt=document.ptviewer.tilt();
fov =document.ptviewer.fov();
document.ptviewer.newPano('{ file='+nextimage+'}')
// NOT WORKING, because Image not completely loaded yet.
document.ptviewer.gotoView(pan, tilt, fov);
// The following works mostly, but fails if loading needs more then 0.5
seconds.
// Also wrong part of panorama is displayed before pan tilt fov happens.
setTimeout("document.ptviewer.gotoView(pan, tilt, fov)",500);
}
[Non-text portions of this message have been removed]