Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [stencil-test]

The tag has no usage guidance.

3
votes
3answers
194 views

Fast clipping without clearing stencil buffer

I'm writing an OpenGL application that runs on a Raspberry Pi, i.e., a quite resource-limited system. Essentially, a few quads with RGBA textures are overlayed/alpha blended on top of each other with ...
5
votes
1answer
71 views

Do stencil tests use any acceleration techniques?

Stencil bits are often used for optimizations, for instance having full screen lighting passes only affect certain pixels. Does the stencil test mechanism use any acceleration structures of any kind (...
6
votes
1answer
139 views

Do occlusion queries respect the stencil test at all?

In a project where I want to select visible objects using using a screen-aligned polygon and various conditions for what "selected" means with regards to that polygon, I'm basically drawing the ...
6
votes
1answer
272 views

Honouring Depth Test with Stencil Test

I'm using OpenGL's stencil test to carve out a semicircular hole in a transition frustum with a cylinder oriented perpendicularly. However as one can see below, while this objective is achieved, the ...
5
votes
0answers
119 views

How much processing power does stenciling actually save?

For example, let's assume I'm rendering cascaded shadow mapping, but for whatever reason, instead of one of the typical approach, I do the following: Render the lowest resolution shadowmap Copy part ...
11
votes
2answers
443 views

Is it possible to find out how many fragments made it through the stencil test?

I have an OpenGL application which uses stencil tests quite extensively to render irregular shapes (a bit like a simple 2-D CSG). If I could find out how many fragments passed the stencil test and ...