View Single Post
  #6  
Old 12-17-2008, 01:00 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Vizard uses the glColorMask command to render anaglyphic stereo. Basically, the code works like this:
Code:
glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_TRUE);
RenderLeftEye();

glColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_TRUE);
RenderRightEye();
That's pretty much it. If you need more advanced control over the color filtering, then you will have to use a post-process shader. Let me know if you are interested in this and I can provide you some code.
Reply With Quote