View Full Version : anaglyph in gl
03-04-2010, 12:07 PM
can someone please help me, to create a solid 3d anaglyph cube in open gl..i could draw a wire cube on a live video..but a solid cube is not working...
and i still dont clearly understand the calculations involved in creating anaglyphs....pls help me on this....
03-04-2010, 12:24 PM
Obviously you are not an advanced GL programmer.
1) "i could draw a wire cube on a live video..but a solid cube is not working"
What do you mean precisely by not working ? Nothing show up, or some sort of corruption ? Does it works without the live video (why would it be different by the way.. maybe try to clear depth bufer right before rendering your cube) ?
2) "i still dont clearly understand the calculations involved in creating anaglyphs"
Do you mean the left and right camera setups ?
Or the red/cyan color mixing ?
Or something else ?
This page is old but interesting with its source code, be sure read the last part as accum buffer is not necessary :
EDIT : This one is even better, with how to precisely define off-axis projections needed for correct left/right camera setup :
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.