From: Scott Herod (herod++at++rtset.com)
Date: 06/29/2000 12:08:46
Publishing User wrote:
> I want to add a round window/channel to simulate using
> telescope viewing from a tower, I think using multi-channel
> and stencil buffer is the solution, but i don't know
> how to set the round mask onto stencil buffer?
>
> Hui
>
You don't need to use a multi-channel approach. I've done similar
things a couple of different
ways. The easiest, but probably not the most efficient, is to create the
mask that you want and
in a draw callback do a glDrawPixels then call pfDraw. It is probably
more efficient to create
some geometry to act as a mask and use channel drawing bins to draw it
first, swapping the
stencil ops as you go.
Scott Herod
-- RT-SET Broadcast Graphics Division Voice : 303-465-1556 x122 100 Technology Drive, Suite 100 FAX : 303-465-2012 Broomfield, CO 80021 USA Email : herod++at++rtset.com
This archive was generated by hypermail 2b29 : Thu Jun 29 2000 - 12:09:46 PDT