Dear j3d developers,

I'm trying to get stereo working on IRIX/SGI machines. The problem is
that SGI's implementation of Java3D stereo mode seems not to be correct.

I'm also wondering if Sun's implementation is correct with respect to
OpenGL.
This is what happens in SGI's implementation (this is an excerpt of
ogldebug's output: a SGI tool which traces OpenGL calls):

.....
1) glDrawBuffer(GL_LEFT_BACK)
....
// draws the left eye
....
2) glDrawBuffer(GL_RIGHT_BACK)
.....
// draws the right eye
.....
3) glXSwapBuffers(displ, win);
...
// swaps the back colorbuffers (left & right) to the front colorbuffers
...
4) glDrawBuffer(GL_BACK)
...
5)   glClearColor(0, 0, 0, 1);
     glClear(GL_COLOR_BUFFER_BIT);
     glDepthMask(GL_TRUE);
     glClear(GL_DEPTH_BUFFER_BIT);
...
// clear colorbuffer & depth buffer
...
6) goto 1

The problem is between step 1 and 2. Before drawing into the right eye
colorbuffer the z-buffer has to be cleared. This is because there is
only *one* z buffer for all colorbuffers, and drawing in the left buffer
means the z-buffer is also written.
What I'm currently experiencing with SGI's implementation is that a cube
drawn in the left buffer is obscuring a cube drawn in the right buffer
(which is z clipped)

My question is: Is this the default OpenGL implementation of Sun? Or is
this an implementation bug of SGI?
Also, has anyone made stereo work on Sun workstations at all?

Thanks,

Robbert van Dalen

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to