OpenGL stencil in 2D - advanced (?) issues
-
I have run into a dead end in another OpenGL forum. I have a basic understanding how (OpenGL) stencilling works. My stencil is in 2D , no depths. I am extracting a (circular) part of OpenGL objects, no problem. I am trying to further manipulate the stencil result. The task is to enlarge the result and move it to the center of the screen. I used glTranslatef but it moves the original stencil, not the result. I want to move the result only. I think my issue is that the stencil was build in "top of the modleview matrix" ( no push /pop) and the objects to be stencilled are in various matrix "stack" - used push / pop. I understand the "result" is in color buffer, but it sure looks as I am manipulating the stencil buffer, which has been already disabled. Am I correct in all this? Do I have to rebuild all on SAME matrixview stack level ? I am sorry if I am not using correct OpenGL terminology. Cheers