The stencil tag has no wiki summary.
3
votes
2answers
113 views
How can I simulate multiple depth channels?
Here's what I'd like to achieve:
Rendering a first pass of objects in my scene, using standard depth comparison
Rendering another pass of objects in the same scene, but with the following rules:
A ...
3
votes
1answer
299 views
Stencil mask with AlphaTestEffect
I am trying to pull off the following effect in XNA 4.0:
http://eng.utah.edu/~brendanw/question.jpg
The purple area has 50% opacity. I have gotten pretty close with the following code:
public ...
2
votes
1answer
1k views
How can I write only to the stencil buffer in OpenGL ES 2.0?
I'd like to write to the stencil buffer without incurring the cost of my expensive shaders. As I understand it, I write to the stencil buffer as a 'side effect' of rendering something. In this first ...
1
vote
1answer
538 views
Clipping polygons in XNA with stencil (not using spritebatch)
The problem... i'm drawing polygons, in this case boxes, and i want clip children polygons with its parent's client area.
// Class Region
public void Render(GraphicsDevice Device, Camera ...
1
vote
0answers
147 views
Stencil buffer appears to not be decrementing values correctly
I'm attempting to use the stencil buffer as a clipper for my UI system, but I'm having trouble debugging a problem I'm running in to.
This is what I'm doing: A widget can pass a rectangle to the the ...
0
votes
0answers
195 views
sdl stencil buffer [closed]
I am trying to use the stencil buffer for rendering reflection and am working with SDL and OpenGL.
When I give the command SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,8),I get a return value of 0 ...