开发者

Making a Java Program Stereo-3D

I was wondering if its possible开发者_JS百科 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?


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


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

August, InteractiveMesh


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜