pfLayer + stencil not working on Impact?

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Tue, 6 May 1997 19:48:36 -0400


I'm trying to use pfLayers with mode PFDECAL_BASE_STENCIL on a Max Impact
without much success. I made sure my frame buffer has at least 1 bit of stencil
and I'm using OpenGL.

If I take the pfLayer example in
/usr/share/Performer/src/pguide/libpf/C/layer.c
and force the mode to PFDECAL_BASE_STENCIL instead of the default DISPLACE I
get
flickering of the coplanar polygons.

To convince myself that the stencil was there and working correctly
I implemented the layering algorithm using the immediate glStencil* OpenGL
calls. I tried that with some simple coplanar polygons in a draw callback
of the same Performer app and it worked perfectly.

However if I put the same kind of polygons in a scene graph under a pfLayer
node with mode STENCIL it doesn't work.

                 pfLayer
                / | \
               / | \
           base layer1 layer2

  [my layers are fully contained and coplonar with the base]

I would be curious to know if others have had similar experiences.

My config is Performer 2.2 latest beta + IRIX 6.2 + Max Impact + usual gfx
patches.

-- 
---
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

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:11 PDT

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