I have a setup where I’m using the stencil buffer to mask out half the lines of my pbuffer. This has worked perfectly up until I started requesting an anti-aliased pbuffer.
When I look at the GL pipeline in the blue book it shows Stencil-Buffering happening after MultiSample, leading me to believe that what I’d like to happen should work.
I’ve tried both a GeForce4 and a GeForceFX 5900 on Windows 2000.
Originally posted by hortitude: I have a setup where I’m using the stencil buffer to mask out half the lines of my pbuffer. This has worked perfectly up until I started requesting an anti-aliased pbuffer.
More specifically, what does not work?
Does it bombs out? Maybe it does not get a pixel format? Seems to work but doesn’t to its job?
Originally posted by hortitude: it shows Stencil-Buffering happening after MultiSample, leading me to believe that what I’d like to happen should work.
Maybe, but just as AA is not supported on some cards and stencil is not on some (admitedly old) others. AA and stencil could not be supported for pbuffers.
For now, just to clarify: When I choose the pixel-format it returns 10 different formats, but when I try them, they don’t seem to actually have the effect you might expect. If I setup the stencil-buffer to mask out all odd numbered lines and turn on Anti-Aliasing my graphics show up on all lines.
If I run the same code but don’t use Anti-Aliasing the graphics only show up on the odd numbered lines (so I at least know that I am using the stencil buffer correctly).