You should overload the renderField method in Canvas3D. Then you get the
active field (left or right) and you should be able to render your raster
for the field. I haven't tryed this yet, but I might have the same probleme
in the future. So I'm interested in your results.
Falk
----- Original Message -----
From: Ulf Tiede <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 6:02 PM
Subject: [JAVA3D] How can I display stereoscopic images?
> I have a pair of stereoscopic images, e.g. left.jpg and right.jpg
> and want to "render" these images into a stereo Canvas3D.
>
> Using Open-GL this is very easy:
> ...
> glDrawBuffer(GL_BACK_LEFT);
> glDrawPixels(width, height, GL_RGBA, GL_UNSIGNED_BYTE, leftBuffer);
> glDrawBuffer(GL_BACK_RIGHT);
> glDrawPixels(width, height, GL_RGBA, GL_UNSIGNED_BYTE, rightBuffer);
> glutSwapBuffers();
> ...
>
> I tried something like the code below, but this does not work
> at all. All kinds of manually configuring the rendering pipeline
> (immediate mode) result in some unexpected
> behaviour.
>
> ...
> GraphicsContext3D g3D = ...
> g3D.setStereoMode( GraphicsContext3D.STEREO_LEFT );
> g3D.draw( raster_left );
> g3D.setStereoMode( GraphicsContext3D.STEREO_RIGHT );
> g3D.draw( raster_right );
> ...
>
> Does anybody know example code for this problem or if this is not
> possible at all with j3d?
>
> My configuration (WindowsNT, jdk 1.3, j3d1.2, Diamond Fire GL 1000 Pro)
> works well in stereo for the examples in j3d using the standard rendering
> pipeline
> (despite the known bug that the z-buffer for the right eye is not cleared)
>
> Thank in advance for any hint.
>
> Ulf
>
>
===========================================================================
> 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".
>
===========================================================================
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".