flash navigation tool

Specific Q&A about the new Flash export
Posts: 2
Joined: Sat Feb 17, 2007 1:36 am

Mon Mar 05, 2007 10:28 am

I already posted this in the "Pano2QTVR release" section but maybe that was the wrong forum for this kind of problem, I apologise for the cross post....

what I'm trying to do is to automatically pan the panorama to a specific location. Say I want t click on a tool like the radar of the example posted on this site (http://www.pano2qtvr.com/sample/flashtour/) and have the panorama to ease automatically to match that angle. I got it to work with an interval sending setPan(nextstep) calls, but since the panorama moves without switching the image quality the result is just impossibly slow :(
Is there a better way to do this than a sequence of setPan calls? Or is there a call to change the resolution to low untill the panorama gets to the target?

any ideas?


User avatar
Chief Gnome
Posts: 2563
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria

Sun Mar 11, 2007 1:49 am

There is a method called setMeshDensity(deltaDegrees) which is used internally to change the Quality. You can play around with the parameter to see what meets your need best. Normal the value should be the difference in your movement. As starting point maybe try:

Code: Select all

MfG, Thomas
Posts: 8
Joined: Tue Apr 10, 2007 9:53 am
Location: Gemany

Thu Apr 12, 2007 3:18 pm


if I get you right there is another way to solve this problem I just integrated myself.



to rotate as long as it takes to reach the target view angle and stop the motion by using <mc>.pano.setAutorotate(0).

This is much faster as doing a polling setPan() and is even quite fast if you do not change the quality.

Now you have two worakrounds for your problem and you can choose which fits you best.