Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making a Java Program Stereo-3D

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?

like image 767
user663321 Avatar asked Feb 25 '23 09:02

user663321


2 Answers

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:

  • Fivedots
  • Stereo capabilities

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.

  • Sample program
like image 137
DJClayworth Avatar answered Mar 06 '23 23:03

DJClayworth


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

August, InteractiveMesh

like image 44
InteractiveMesh Avatar answered Mar 07 '23 00:03

InteractiveMesh