Sharon Clay (src++at++rose.asd.sgi.com)
Fri, 30 May 1997 11:21:57 -0700
Except for on iR where stencil clear can be done for free as part
of zclear iff you have one bit of stencil, we don't clear stencil.
We get away with this becuase we assume that you wont model the
layer to spill outside the base. If you clear stencil you'll be
better off but it still won't be perfect because if there
is overlap on the screen the decal of one will be able to write over
the decal of another since we are only using one bit of stencil and
don't have unique group values.
Possibly you can probably improve this a bit more by
using draw callbacks on the layer childeren to set a zfunction
of EQUAL if the layers are modeled to be exactly coplanar with the bases.
Or, you can use more bits of stencil and use draw callbacks on the base
and layer nodes to set your own group values (in which case you want
to not have us be setting stencil so use DISPLACE or else a group to
structure the children). You'll notice though that framebuffer memory
is finite and sometimes more bits of stencil makes you give up
something else. On non-iRs and non-Extremes, we actually try to get your
4 bits of stencil by default so that if reasonable you'll already
have them.
src.
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com (415) 933 - 1002 FAX: (415) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
=======================================================================
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