Re: pfSCS transformation Matrix Question

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (allan++at++sgi.com)
Fri, 24 Dec 1999 12:07:37 -0800 (PST)


On Dec 24, 12:22pm, John D. Jamulla wrote:
>
> I am trying to "transform" a pfGeoSet made with pfdNewArrow() up the
> Z-axis by some amount, lets say 5 units.
>
> I have examined the matrix created, and for some reason I get the
> Identity 4x4 matrix when created below, but "weird" values in the 4th
> row if I mess with the X, Y, Z values. All the docs I see seem to
> show me I am doing this correctly.

This looks like it might be an artifact of mixing the C & C++
Performer API's. So instead of

      pfMakeTransMat(&z_trans_mat, 0.0f, 0.0f, 5.0f);
try:
      z_trans_mat.makeTrans(0.0f, 0.0f, 5.0f);

[On IRIX, using pfMakeTransMat in a C++ pfProgram fails during
compilation with an 'undefined identifier'. On Linux, the compiler
just issues an 'implicit declaration' warning. Interesting]

Allan

-- 
Allan Schaffer                                            allan++at++sgi.com
Silicon Graphics                           http://reality.sgi.com/allan

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Dec 24 1999 - 12:07:44 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.