Apparent Zbuffering Problems

New Message Reply Date view Thread view Subject view Author view

Dorrie Hall (dorrie++at++beamish.mit.edu)
Fri, 10 May 1996 13:00:23 -0400


Hi Andy,
        Here's what I use in a post draw routine
   to draw on top of the scene but I don't draw anything
   else in that frame. I think I remember some strange
   z-buffer things happening when I used pfLayer in a
   non-coplanar situation. Are you doing any stenciling?
                Dorrie

   
    /* in post draw */

    pfPushState();
    pfBasicState();
    pfBasicState();
    pfDisable(PFEN_TEXTURE);
    pfDisable(PFEN_LIGHTING);
    pfDisable(PFEN_FOG);
    zfunction(ZF_ALWAYS);
    ortho2(0,100.0f,0,100.0f);
    mmode(MVIEWING);
    pfPushIdentMatrix();
    /* just override zbuffer instead of overlay */
    zwritemask(0x000000);

    /* draw on top of scene here*/

    zwritemask(0xFFFFFF);
    zfunction(ZF_LEQUAL);
    pfPopMatrix();
    pfPopState();

    


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:52:53 PDT

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