Re: [info-performer] Euler Angles and Vertice Relationships

Date view Thread view Subject view Author view

From: Allan Schaffer (allan++at++sgi.com)
Date: 02/06/2006 16:36:03


Christopher D. Johnson wrote:
> Greetings all. I have a Performer based application in which I have 2
> video channels that use the same (x,y,z) coordinate as their origin
> but vector off ("look") in different directions. Each camera has the
> capability to change it's yaw, pitch, and roll. I am now trying to
> "tie" the cameras together in such a way that when camera A has a
> change in yaw, pitch, and/or roll, camera B keeps it's angular
> relationship with A.

Yep, Performer has built-in functionality for this so it should be
straightforward.
   - Slave one channel to the other with pfAttachChan()
   - Control which channel attributes are shared with pfChanShare();
   - set an "offset" for the slave with pfChanViewOffsets();
     (obviously, DON'T share the offset)

There's an example in the pfChannel manpage. (Also be sure to read the
part about local lighting)

Good luck,
Allan

-- 
Allan Schaffer                                            allan++at++sgi.com
Engr. Dept. Manager, Visual Systems Group                1-650-933-2160
Silicon Graphics                                     http://www.sgi.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 16:36:05 PST