Hi everybody.
i have a little problem with my anaglyph program. i am writing a program that should be able
to display a scene anaglyphic. the scene is described in a source, that shouldn’t be changed,
so i have to catch the commands and replaced them with my own api with little changed commands.
the first time, swapBuffers is called, the scene should be rendered into the accumulation buffer
with the left eye’s colorMask. I do that with glAccum(GL_LOAD, 1.0);
By now, there shouldn’t be something in the frame buffer.
The next time, swapBuffers is called, the scene should be added to the accumulation buffer with
the right eye’s colorMask and a little camera translation. I do that with glAccum(GL_ACCUM,1.0);
Now the accumulation buffer should be copied into the frame buffer and be displayed
glAccum(GL_RETURN, 1.0);
I want the scene only displayed, when both renders are in the accumulation buffer, not when only
one is in it. But in my program there is alternately displayed the left eye’s scene, and then
the complete scene.
the scene shouldn’t be displayed, when only the left eye (the first turn) is loaded into the
accumulation buffer. i should be displayed, when both views are in the accumulation buffer.
is it possible to prevent opengl from displaying this frame?
i hope i made my problem clear!?