I'm wondering what the stencil buffer is and what it can do.
It helps children to manoeuvre vertical, horizontal and circular strokes, learning to form shapes, letter or numbers. Kids drawing with stencils keep them busy with drawing and coloring. In addition, they also paint and cut. These activities engage bilateral coordination.
Use painter's tape or spray adhesive to secure the stencil to the surface, so it doesn't move. Spray adhesive will guarantee security that the stencil won't move, or the brush won't catch the edge and result in paint bleed underneath. Lightly spray adhesive to the back of the stencil and position on the surface.
Stencil are used widely in many industries, one such being textile industry where it is used in silk screening, a type of textile printing. Stencils have been made popular by graffiti artists who use it to make graffiti quickly and easily. They use graffiti as a means to express themselves.
The key advantage of a stencil is that it can be used to rapidly and repeatedly produce a relatively intricate design. Stained glass artists have used stencils for hundreds of years to paint a repeating border design or add an intricate design to a background.
http://en.wikipedia.org/wiki/Stencil_buffer
Basically, the stencil buffers allows you to draw only in parts "marked" in the stencil buffer, rejecting pixels where this "mark" doesn't have certain value.
Is used to clip rendering in non-rectangular shapes, and to do shadow volumes.
Doom3-style shadows, mirrors, reflections, masking polygons, clipping polygons, displaying scene depth complexity, and several other things. There are quite a lot of things you can do.
Check francis hill's "Computer Graphics using OpenGL" or "The OpenGL programming guide" for more info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With