The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
19 views

XNA 2D Stencil Buffer Rotation

I am currently working on a 2d game related to planets and am trying to get a stencil buffer working with rotation. I currently have a stencil buffer found from another related answer but it refuses ...
1
vote
1answer
32 views

Correcting Lighting in Stencil Reflections

I'm just playing around with OpenGL seeing how different methods of making shadows and reflections work. I've been following this tutorial which describes using GLUT_STENCIL's and MASK's to create a ...
1
vote
0answers
45 views

Alternative to z-fail

This question is less technical but maybe someone had similar thoughts. I am wondering if the following algorithm still harms the stencil shadow patent? It is concerned with the invention of a "new ...
2
votes
1answer
129 views

How stencil buffer and glFrontFace help making a shadow?

I'm trying to understand the tutorial 27th in Nehe website. This is about how to cast a shadow of an object using stencil buffer in OpenGL. The idea here is checking the directions of all the faces of ...
0
votes
1answer
61 views

Shadows go through meshes, and also being applied to itself

I am using Ogre3D and I am using stencil shadows for my character. They work pretty well, but I have 2 problems: first, the shadow is applied to the entity it is casting the shadow, and secondly, the ...
1
vote
0answers
58 views

Can you do a stencil glow with native GM:S commands?

I am looking to a stencil glow on GM:S with d3d_* functions. I could not find anything how to access the stencil buffer though. Is it even possible to access the stencil buffer without using an ...
3
votes
1answer
507 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 ...
3
votes
2answers
130 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 ...
1
vote
0answers
187 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 ...
2
votes
1answer
2k 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
696 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 ...