Re: viewing matrix and pfDraw()

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Mon, 6 Nov 1995 18:03:31 +0100


"nextfly" with performer 2.0 does this kind of thing.
After a quick inspection it seems to issue a sneaky
perspective call in a pre-draw callback for the channel
and loads the viewing matrix.

You could do something similar by issuing a translate or
multmatrix which performer doesn't know about and move the
culled database relative to the frustum before you call pfDraw.
You may have to push & pop matrix either side of the translate
& draw, but maybe not.

Good Luck,
Angus.

On Nov 6, 10:54am, Rebecca Xiong wrote:
> Subject: viewing matrix and pfDraw()
> Hi,
>
> Is there a way to change the viewing matrix after pfCull() has been called
> but before pfDraw() is called? I'm trying to show the effect of culling in
> a program by drawing the culling result from a different viewpoint.
>
> Many thanks in advance,
> Rebecca
>
> --
> -------------------------------------------------------
> Rebecca Xiong | becca++at++mit.edu
> LCS Lab, MIT | http://theory.lcs.mit.edu/~becca
> -------------------------------------------------------
>
>-- End of excerpt from Rebecca Xiong

-- 
Angus Dorbie,
Silicon Graphics Ltd, UK
dorbie++at++reading.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:52:01 PDT

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