Mirror channel

New Message Reply Date view Thread view Subject view Author view

From: Hans Palbøl (c937161++at++student.dtu.dk)
Date: 05/20/2000 05:55:33


Hi,

I'm having trouble setting up a channel as a rear view mirror. The
problem is that the image is not mirrored. I tried to add a
transformation with the following code:

  pfMatrix mat;
  mat.makeScale( -1.0, 1.0, 1.0 );
  pfFrustum fru;
  mirrorChan->getBaseFrust( &fru );
  mirrorChan->orthoXform( &fru, mat );

but it didn't help. Btw. orthoXform should according to the man page be
able to take a pfChannel directly, but that couldn't compile. I also
tried to switch the left and right values in the setViewport call, but
that's not allowed.

Any help is much appreciated.

Regards,
Hans

-- 
Hans Palbøl

"Jeg tror nok, han benyttede sig af de vilde trækfugle til at slippe bort" ----------------------------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat May 20 2000 - 06:31:22 PDT

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