Questions tagged [stencil-buffer]

The stencil buffer is a concept implemented in various 3D graphics APIs used for performing "stencil" operations, used to minimize rasterization of hidden pixels or to implement various effects.

Resources:

202 questions
0
votes
2 answers

Reflection and depth in OpenGL

I'm trying to create a mirror in OpenGL. Most references I've found recommend using the stencil buffer to define the boundaries of the mirror itself and using a combination of translation and scaling matrices for the actual reflection. I managed to…
user1986358
  • 81
  • 2
  • 9
0
votes
1 answer

Stencil buffer test settings DirectX9

I have a function that renders a triangle of desired color. I am trying to render a yellow triangle and then a red triangle over it with stencil test enable. I am using a circle as my stencil window. What should be my stencil test equations and…
proton
  • 658
  • 1
  • 7
  • 26
0
votes
1 answer

Unable to get Stencil Buffer to work in iOS 4+ (5.0 works fine). [OpenGL ES 2.0]

So I am trying to use a stencil buffer in iOS for masking/clipping purposes. Do you guys have any idea why this code may not work? This is everything I have associated with Stencils. On iOS 4 I get a black screen. On iOS 5 I get exactly what I…
MurderDev
  • 157
  • 1
  • 10
0
votes
1 answer

Stencil Buffer in Opengl

Stencil test in OpenGL Red Book says: the stencil test takes place only if there is a stencil buffer. How can I find out, if there is a stencil buffer in my OpenGL / graphics card implementation ?
Sania Programmer
  • 264
  • 4
  • 13
-1
votes
1 answer

Legacy OpenGL - Blending textures on water reflections produced with stencil test

I'm forced to use legacy OpenGL and no shaders for an academic project (yes..). I'm rendering a 3D world with mountains and water. My goal (and problem) is to draw the skydome as reflection on the water. The skydome itself has 2 textures (night and…
Tides
  • 17
  • 4
-1
votes
1 answer

Separate stencil with FBO (NVidia)

I'm trying to have a FBO with separate depth and stencil buffers. I know that NVidia GPU's historically only supported packed depth/stencil. However I stumbled on the ARB_texture_stencil8 extension and wonder how to use it against a FBO. This code…
Anton Duzenko
  • 2,366
  • 1
  • 21
  • 26
-1
votes
1 answer

OpenGL Stencil Buffer in Gtkmm on Linux C++

I've been trying to generate reflection with a stencil buffer for a school project. I was following this tutorial: http://www.opengl.org/archives/resources/code/samples/mjktips/Reflect.html It describes how to create a reflection by reflecting the…
1 2 3
13
14