Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RD3D - How to render images to this autostereo display

6 views
Skip to first unread message

Marcio Calixto Cabral

unread,
Mar 31, 2004, 10:24:03 AM3/31/04
to

Hi there,

Does anybody know how to render images to this Sharp Notebook? Apparently,
by taking a look at some demos provided with the notebook, one must render
one vertical line for the right eye and then one vertical line for the
left eye. And so on...

I did this but it didn't look "stereo" as the demos provided. I tried that
both in Linux and Windows.

Please, if anybody has any white papers or how to do this, I'd appreciate
any information.

Thank's in advance,
Marcio

Twxs

unread,
Mar 31, 2004, 10:49:54 AM3/31/04
to Marcio Calixto Cabral

we have implemented a stereo rendering on the same laptop, and had the
same problem.

we solve it by blending pixel color .

glBindTexture(GL_TEXTURE_2D, rightEyeTexture);
//Red and Blue on even rows
glPolygonStipple(leftMask);
glColorMask(GL_TRUE, GL_FALSE, GL_TRUE, GL_TRUE);
glBegin(GL_QUADS); ... glEnd();
//Green on odd rows
glPolygonStipple(rightMask);
glColorMask(GL_FALSE, GL_TRUE, GL_FALSE, GL_TRUE);
glBegin(GL_QUADS); ... glEnd();

glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE);

/*left image*/

glBindTexture(GL_TEXTURE_2D, leftEyeTexture);
//Green on even rows
glPolygonStipple(leftMask);
glColorMask(GL_FALSE, GL_TRUE, GL_FALSE, GL_TRUE);
glBegin(GL_QUADS); ... glEnd();
//Red and Blue on odd rows
glPolygonStipple(rightMask);
glColorMask(GL_TRUE, GL_FALSE, GL_TRUE, GL_TRUE);
glBegin(GL_QUADS);.. glEnd();

// init
for(int i=0; i<4*32;i++) {
leftMask[i] = 0xAA;
rightMask[i] = 0x55;
}

Twxs

0 new messages