Re: How to relect/mirror a Performer window

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (aschaffe)
Thu, 19 May 1994 20:33:19 -0700


On May 19, 11:11am, Richard Gallery wrote:
>
> I have an application where I wish to relect or mirror
> the viewport of a Performer window. Specifically, I
> need to do this for a home-grown HMD that requires
> mirrored images for correct display, but also I can
> imagine situations such as a car simulator, in which
> the user sees a mirrored image representing the view
> out the back window of the car simulator that they are
> driving, in which it would be necessary to do this.

I haven't considered all of the possible side effects, but
you might try:

        pfScale(-1.0,1.0,1.0);

before pfDraw() in your channel draw callback.
Upon casual inspection, this seems to work ok..

You'll want to disable backface removal as well.
(You could -enable- frontface removal, though)

Allan

-- 
Allan Schaffer
Silicon Graphics
aschaffe++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:17 PDT

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