You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

tidytrax

Beginner

  • "tidytrax" started this thread

Posts: 10

Location: Brazil - Rio de Janeiro

Occupation: (IT Analyss

  • Send private message

1

Wednesday, May 15th 2019, 7:36am

go through coordinates

Hello, I want to go through some coordinates
Example : {[atv,ath,fov], [atv,ath,fov], [atv,ath,fov] ... }

And I want the panorama walk through those coordinates

I already did it in Javascript, works, but not so smoth, the movement is terrible

Has some function on krpano to do that.

Quoted


loadInterval = setInterval(() => {

tkl.getKrPano().set('view.vlookat',coordinates[currentFrame][0][0])
tkl.getKrPano().set('view.hlookat',coordinates[currentFrame][0][1])
tkl.getKrPano().set('view.fov',coordinates[currentFrame][0][2])


if ( currentFrame >= lastFrame ) {
clearInterval(loadInterval);
} else {
currentFrame++;
}
},48);