You are not logged in.

tidytrax

Beginner

  • "tidytrax" started this thread

Posts: 16

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);