From: Paolo Farinelli (paolo++at++gobbles.engr.sgi.com)
Date: 12/21/2005 08:43:46
Hi Christopher,
Set the same pfCoord on both channels using pfChannel::setView,
then specify the 'relative view offset' on your additional
camera using pfChannel::setViewOffsets.
See the pfChannel manpage for details.
Hope this helps.
Regards,
Paolo
On Wed, 21 Dec 2005, Christopher D. Johnson wrote:
>
> 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!
>
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
>
This archive was generated by hypermail 2b29 : Wed Dec 21 2005 - 08:43:45 PST