Re: Stencil Buffer



No matter wich method you choose, the stencilbuffer will be written at least 1.5 times completly (initial clear + 50%). Chances are, that even the z-buffer
will internally be read completly during this procedure.

The z buffer is best disabled for entering the data into the stencil. As I mentioned you can alternately not use the stencil at all, and just render to z.


Both stencil and z are optimised on current chips, so initial clear typically means zero work.

	Eyal
.



Relevant Pages

  • Stencil Buffer works with lines, but not textures.
    ... The application has two render modes, "Design" and "Preview" If in design mode, a plane is rendered as a grid of lines. ... When I render with no stencils, ... // Set the device index buffer and vertex buffer ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: Reading back the z-buffer?
    ... > the stencil test set to render pixels during pass i when the ith bit ... > appropriate bits in the depth/stencil buffer and use alpha blending to ... > combine them into the render target. ... pixel for the next pass. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: re-use zbuffer
    ... a stencil would have been useful in case such where foreground data ... > that i want to render the glows in a seperate render target texture. ... > depthStencilSurface. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Hidden lines and Stencil mistery
    ... Disable writing to the color buffer with glColorMask. ... Clear the stencil buffer. ... Render the object as edges. ...
    (comp.graphics.api.opengl)
  • Re: Stencil mask
    ... make a round selection on screen, and all I will render to the render ... target will only draw in the round area. ... So, in my Direct3D learning, I think that Stencil Buffer is the key to do ...
    (microsoft.public.win32.programmer.directx.graphics)

Loading