Page 1 of 1

How to determine the QTVR rotation angle?

Posted: Thu Feb 08, 2007 8:12 pm
by MLaBoyteaux
I want to build an html interface to display my QTVR files and have a flash animation that shows a "radar" to indicate the direction the user is currently viewing, just like the Flash example.

The reason I want to use QTVR .mov files is because the Flash versions are very clunky and don't pan very smoothly. The Quicktime versions pan much smoother. I can write the javascript to interface a flash object with the QTVR object, but I don't know if the QTVR movie exposes the angle as a property.

Thomas, is this possible?

Posted: Thu Feb 08, 2007 8:17 pm
by thomas
Yes, it is. You can find an example for the Javascript code f.e. at http://www.pinlady.net/vr/#anchor7

Posted: Thu Feb 08, 2007 8:58 pm
by MLaBoyteaux
I did some research and found another good document at:
http://developer.apple.com/documentatio ... TP40001526

Basically it looks like the javascript calls to get and set the properties are:

float GetPanAngle()
void SetPanAngle(float angle)

float GetTiltAngle()
void SetTiltAngle(float angle)

float GetFieldOfView()
void SetFieldOfView(float fov)

Once I get something working, I'll post an example.

Thanks Thomas!