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
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