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…
Obviously you are not an advanced GL programmer.
-
“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) ? -
“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 :
http://local.wasp.uwa.edu.au/~pbourke/texture_colour/anaglyph/
EDIT : This one is even better, with how to precisely define off-axis projections needed for correct left/right camera setup :
http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/stereorender/