Re: Stencil question

New Message Reply Date view Thread view Subject view Author view

Ran Yakir (rany++at++rtset.co.il)
Fri, 30 May 1997 09:35:04 +0000


On May 29, 6:30pm, Joaquin Casillas Melendez wrote:
> Subject: Stencil question
> Hi all!
> I am trying to draw an objet over a given plane, and I don't want the
> object to be drawn outside the limits of the plane. In opengl this can be
> achieved by drawing the plane (floor) and at the same time writing a
> certain value to the stencil buffer. Then, in the draw routine, the
> object will be drawn only over the pixels with that a certain value.
>
> I don't know the way to do this in Performer, so any help would be
> appreciated.

In Performer you'll do it very much the same way. You'll have to call the
OpenGL stencil calls from within Performer's pre and post drawing callbacks.
Have a look on the man pages for pfNodeTravFuncs

Ran

-- 
 __                                  | Ran Yakir
 /_)  _  __   \  / _   / o __        | RT-SET Ltd.
/ )_ (_(_) )   \/ (_(_/<_(_)(        | 
              _/                     |   
-------------------------------------+--------------------------------
Phone :                              | E-mail : rany++at++rtset.co.il
  Work : 972-9-9552236               |          rany++at++netvision.net.il
  Res. : 972-9-7489974               |
Fax    : 972-9-9552239               |
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++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:55:19 PDT

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