Re: Round Channel

New Message Reply Date view Thread view Subject view Author view

From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 07/03/2000 12:56:54


You can use the stencil buffer to do this. Add a draw callback to the
round channel, and do something like this:

1) Clear stencil
2) Render the round shape of your channel into stencil ONLY, turn depth
   and color masks off.
3) enable the stencil test so that only parts of the scene which are drawn
   within the round area are drawn
4) Enable depth and color buffer writes
5) Draw the scene
6) Turn off stencil test

-- Marcin

On Mon, 3 Jul 2000, Publishing User wrote:

> I want do create two channel of the same pfScene, the window of one channel
> is overlaped on another. I want the overlaped channel to be round. can
> any body tell me how to do it?
>
> Hui
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jul 03 2000 - 12:57:32 PDT

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