Making a Java Program Stereo-3D

2.9k views Asked by At

I was wondering if its possible to convert a java application (or any application) to stereo-3D (like, with the red-and-blue glasses).

Is there any tool or framework that does this?

3

There are 3 answers

0
DJClayworth On

The most common way to go about this is to work with JOGL, which is a thin Java layer over the OpenGL package. OpenGL supports stereoscopic 3D when paired with appropriate hardware. You will need to be using the right hardware, i.e. graphics card, as not all will support stereoscopy.

Here are some links that will get you started with JOGL and stereoscopy:

Be aware that JOGL is a very low level package, and not easy to learn or work with. You certainly won't be able to 'convert' your Java app to 3D with it, unless it was written in JOGL to start with.

In the interests of comprehensive answers, it is also possible to do this in Java3D, which is a higher-level easier-to-use package than JOGL.

0
InteractiveMesh On

Have a look here: Java 3D meets Swing -> Stereoscopic 3D Rendering / JCanvas3DAnaglyph -> Sample Stereoscopic 3D http://www.interactivemesh.org/testspace/j3dmeetsswing.html

August, InteractiveMesh

0
vandale On

The Canvas3D class in the java 3d documentation gives a basic overview of it in mixed mode rendering. basically you would use two off screen Canvas3D's to render each eye and then combine the images and display to user. see anaglyph demo