Hey there, Does the stencil buffer need to be "created" when the window is created? Because I have code that I tried in the hl model viewer with a stencil buffer (for shadows), which works fine.
But in HL, I can't even do simple stencil buffer ops...they just all fail. I thought it was required to initialize the window with the stencil buffer capability...am I totally off? Thanks!! Georges -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Sunday, January 12, 2003 8:50 PM To: [EMAIL PROTECTED] Subject: Re: RE: [hlcoders] Motion Blur [ Converted text/html to text/plain ] George, Not all cards have hardware support for hte stencil buffer and as such will slow the machine down to sludge. I noticed you were using GLUT function calls and definitions as parameters which wont work in HL as it is not a GLUT window. Instead I would suggest trying something like: glEnable/glDisable(GL_STENCIL_TEST); glStencilFunc(function, reference, mask); glStencilOp(stencil_fail, depth_fail, depth_pass); glStencilMask(mask); glClear( | GL_STENCIL_BUFFER_BIT); Hope this helps, Michael Shimmins The Absconder Effect >Hey there, > >This isn't an answer, more of a question related to >OpenGL...have you been able to use the stencil buffer? >I have tried but it never seems to work since it needs to >be initialized with >glutInitDisplayMode(GLUT_RGBA|GLUT_DOUBLE|GLUT_STENCIL)... > >Georges > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]]On Behalf Of Michael >Shimmins >Sent: Saturday, January 11, 2003 10:00 PM >To: HLCoders >Subject: [hlcoders] Motion Blur > > >This is a multi-part message in MIME format. >-- >[ Picked text/plain from multipart/alternative ] >Hi all, > >I'm trying (in vain) to apply a motion blur effect to the view in HL. >I've tried doing this using the accumulation buffer in OpenGL which >slows the frame rate down to 4 frames per second. &! gt; >Does anyone have any other ideas about how to do motion blur? > >Cheers, > >Michael Shimmins >The Absconder Effect (http://www.tae-mod.com) >_______________________________________________________ >Important - This email and any attachments may be confidential. If >received in error, please contact us and delete all copies. Before >opening or using attachments, check them for viruses and defects. >Regardless of any loss, damage or consequence, whether caused by the >negligence of the sender or not, resulting directly or indirectly from >the use of any attached files our liability is limited to resupplying >any affected attachments. Any representations or opinions expressed are >those of the individual sender, and not necessarily those of Sesechial >Software. > > >-- > >________________! _______________________________ >To unsubscribe, edit your list preferences, or view the list archives, >please visit: >http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > >_______________________________________________ >To unsubscribe, edit your list preferences, or view the list archives, please visit: >http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders