Nicolas Gauvin (nicolas++at++cae.ca)
Fri, 30 May 1997 14:04:38 -0400
Is it possible that you are seeing this behavior on regions of the screen
that end up not being covered by your base child? That would explain it.
You child must always be entirely contained by your base (in screen space) in
order for the stencil algorithm of pfLayer to work. It's because
pfLayer doesn't clear the whole stencil buffer before drawing its children
(for obvious performance reasons).
It only updates the region covered by the base depending on the result of the
depth test. If your children end up outside this region you will be comparing
stencil values left from previous pfLayers or random values which are not
guaranteed to be 0.
If really need the stencil buffer to be cleared for each of your pfLayer
you could do it in a pre-draw callback but you'll get a performance drop.
--
Nicolas Gauvin CAE Electronics Ltd., 8585 Cote De Liesse
3D Graphics Software Saint-Laurent, Quebec, Canada, H4L-4X4
nicolas++at++cae.ca Tel: (514) 341-2000 x2275, Fax: (514) 340-5496
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:19 PDT