How to determine the QTVR rotation angle?

Q&A about the latest release Version
Locked
MLaBoyteaux
Posts: 11
Joined: Tue Jan 02, 2007 8:09 pm
Location: Fort Worth, Texas
Contact:

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?
User avatar
thomas
Chief Gnome
Posts: 2611
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Yes, it is. You can find an example for the Javascript code f.e. at http://www.pinlady.net/vr/#anchor7
MfG, Thomas
MLaBoyteaux
Posts: 11
Joined: Tue Jan 02, 2007 8:09 pm
Location: Fort Worth, Texas
Contact:

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!
Locked