From: Christopher D. Johnson (cubicwts++at++excite.com)
Date: 12/21/2005 06:25:23
Greetings all. I am currently working on adding upgrades to a current flight simulation. I currently have one "camera" I use to show the "out the window" view from the aircraft, so this camera simply always points towards the boresight of the air crafts frame.
I am working on an upgrade that simulates another "camera" view that can be slewed to look in other directions OTHER than straight in front of the aircraft. This camera view always has the same xyz world coordinates as the air craft. My problem is how to go about transforming the yaw, pitch and roll properly. This camera view is "stiff armed" to the aircraft, which means for example that if I give it a yaw 70 degrees to the right of A/C boresight and a pitch of 10 degrees above A/C boresight, that as I fly the aircraft around this camera must keep those same offsets RELATIVE TO THE AIRCRAFT boresight. So if I roll the aircraft to an inverted position with the above angles, the second camera still looks like it has a yaw 70 degrees to the right of the "out the window" view (A/C boresight) and a pitch of 10 degrees above the "out the window" view (A/C boresight). However since I've rolled, I must transform the yaw and pitch as the A/C moves because in an inverted positon the
yaw is now looking 70 degrees to the LEFT of what non-inverted A/C boresight is, and my pitch is 10 degrees BELOW what non-inverted A/C boresight is. And I must also transform the roll because relative to the aircraft the camera has rolled as it is moved along with the aircraft (think if the 2nd camera were looking 90 degrees to the right of the OTW camera boresight. As I pitched the A/C nose up and down the 2nd camera view would look like it was rolling, not pitching).
Does Performer have any built-in functionality that would tie the two camera view together in such a way that YPR relative transformations are less cumbersome?
Christopher D. Johnson
AV-8B Harrier II Simulators
ISEO Support Team
Cherry Point, NC
252-466-4542
252-466-4538
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
This archive was generated by hypermail 2b29 : Wed Dec 21 2005 - 06:25:32 PST