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:

How to determine the QTVR rotation angle?

Post by MLaBoyteaux » Thu Feb 08, 2007 8:12 pm

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: 2527
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Post by thomas » Thu Feb 08, 2007 8:17 pm

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:

Post by MLaBoyteaux » Thu Feb 08, 2007 8:58 pm

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

Who is online

Users browsing this forum: No registered users and 7 guests