Skip to main content
GameDev.net gamedev.net
🔒 Locked

Reflet effect using Stencil Buffer

Started by Daivuk Apr 9, 2002 at 11:36 PM 0 replies 350+ views
Original Post
Daivuk
Daivuk
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.

Sign in to reply to this topic.