Questions tagged [stencil]

The tag has no usage guidance.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
149 views

How can I make a transparent hole with shaperenderer using stencil masking in libgdx?

I'm making a 2d game, where I need a resizeable, moveable rectangle outline. I'm trying to use stencil masking to do it by cutting a hole in a solid rectangle, and I thought this would help: How can ...
1
vote
0answers
19 views

Custom shader with stencil breaks Unity built-in masking

my custom shader works like a charm for what I wanted it, but if it is referenced in the scene, Unity built-in masking stops working (both the Sprite Mask component and the rect-based Mask stop ...
1
vote
0answers
178 views

Recreating A Puzzle Effect Using Stencils

I'm trying to recreate something I saw on reddit a while back. I tried rendering camera output onto planes, but am not getting the results that I want -- this is basically what I'm trying to recreate: ...
1
vote
0answers
324 views

Stencil inside Stencil? (Multiple masks on same object)

So please take a look at what I want to achieve The Red and Blue part is the object I want to mask. The thing is that it will be masked by the green area, and only after that it will be masked by the ...
1
vote
0answers
127 views

Stencil IncrSat and DecrSat explanation

Can someone please explain me what is the purpose of IncrSat and DecrSat? Currently I know that they increment/decrement the current value in the buffer and they make sure the value is between 0 and ...
1
vote
0answers
1k 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. ...
0
votes
0answers
14 views

Stencil not working processing

With jogamp I can create the following stencil: ...
0
votes
0answers
17 views

How to build a hidden 3D snapping grid effect?

Looking to build a 3D grid similar to the image below taken from Google Blocks. Seems like it consists of these main components: A set of spheres that can go transparent. A stencil that follows the ...
0
votes
1answer
21 views

OpenGL stencil pipe

Is there a document describing 2D stencil pipe ? Static, no rotation etc. Something in more details then enable stencil (buffer) write stencil ( mask) to stencil buffer 1st pass write stencil ...