Rémi Arnaud (remi++at++remi.asd.sgi.com)
Wed, 21 May 1997 10:42:33 -0700 (PDT)
You are missing an information: what is the roll (rotation around
tha viewing vector ?)
If you consider no roll, then you can make a a rotation matrix
that will rotate the y-axis (view vector in observer coordinate
system) to v by:
pfVec3 yaxis = (0.0, 1.0f, 0.0f};
pfNormalizeVec(viewing_direction); /* if needed */
pfMakeVecRotMat(mat, yaxis, viewing_direction);
pfSetMatRowVec3(mat, 3, viewPoint); /* translation to viewpoint */
_ / _ _
|_) _ ._ _ o /\ |_)|\ | /\ | || \
| \(/_| | || /--\| \| \|/--\|_||_/
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:16 PDT