I got a problem here. My code is perfect (I presume ) and the stencil buffer don''t want to work !!!!
This is my code : (drawing a list : named ''duk_fMap'')
glColorMask(0,0,0,0);
glEnable(GL_STENCIL_TEST);
glStencilFunc(GL_ALWAYS, 1, 1);
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
glDisable(GL_DEPTH_TEST);
glCallList(duk_fMirror1);
glEnable(GL_DEPTH_TEST);
glColorMask(1,1,1,1);
glStencilFunc(GL_EQUAL, 1, 1);
glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
glPushMatrix();
glTranslated(0,-512,0);
glScalef (1,-1,1);
glCallList(duk_fMap);
glPopMatrix();
glDisable(GL_STENCIL_TEST);
But it''s like if my Stencil Buffer don''t work !!????!?!?!
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more