JOGL - red- green- STEREO
Hello,
I wrote a little application with jogl and now want to make it red-green-Stereo.
Does someone know a good tutorial, how to do that?
Or maybe can explain the main points to be considered?
I did a red-gren-stereo app ones, but it's quite a long time ago, and I can't find any suitable tutorials....
Thanks in advance
JJ
# 1
Disclaimer: I have no experience and am merely stating the obvious. If you already know the obvious, ignore this post.
The basic idea is that you want one colour (red? I'm not certain of the convention, but I presume you have some glasses to test with) to be what the left eye sees and the other to be what the right eye sees. So render from one camera position in the red bits and another, at a fixed relative position, in the right bits. Might be easiest to use two back-buffers, but it depends on how much control you have over rendering. The relative positioning can be done either by trial and error or from first principles using trig and an estimated position of the head relative to the monitor, monitor size, and interpupillary distance.