4

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?

BlueRaja - Danny Pflughoeft
  • 84,206
  • 33
  • 197
  • 283
user663321
  • 1,963
  • 2
  • 14
  • 10
  • 1
    I'm not going to click 'close' -> 'not a real question' but I really should... please re-phrase this, it's very difficult to know exactly what you're saying. – Joe Apr 26 '11 at 16:52
  • 1
    This would ideally be done at the graphics card driver level (on a card that supports stereoscopic 3D), at which point you're not in Javaland anymore. – cHao Apr 26 '11 at 16:53
  • And what you want to see in 3D from a 2D Java (or any application)? You will just get the same 2D rectangles, in the best case. – Rogach Apr 26 '11 at 16:57
  • I suppose what I am looking for is some way to programmaticly make a java swing application show depth that can be viewed using 3d glasses. But leave the rest of the screen normal. Only affect my application. – user663321 Apr 26 '11 at 16:58
  • @Joe, I recommend going ahead and voting to close, and then voting to reopen if and when the post is improved. – Pops Apr 26 '11 at 16:58
  • Start writing a webcomic, grow a devoted, geeky fanbase for it, wait for April 1 and ask them to do this for you. – Pops Apr 26 '11 at 17:00
  • Related: http://stackoverflow.com/questions/1017067 – BlueRaja - Danny Pflughoeft Apr 26 '11 at 17:05
  • 1
    What's with the "not a real question"? It seems perfectly clear to me. What are you not understanding about it, Joe? – DJClayworth Apr 26 '11 at 17:52
  • @DJClayworth - please view the history of the question, I won't quote it here. Suffice it to say wanting something "3d" but not "3d graphics" is confusing. – Joe Apr 27 '11 at 08:39
  • My apologies, the original question was in fact extremely confusing. I wish there was a better way of dealing with this kind of thing. – DJClayworth Apr 27 '11 at 15:00
  • 1
    I think SO probably has the best model available. Imagine the nightmare having multi-dimensional comment threads to go with versioned questions... – Joe Apr 27 '11 at 22:33

3 Answers3

4

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.

DJClayworth
  • 26,349
  • 9
  • 53
  • 79
3

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

August, InteractiveMesh

1

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

vandale
  • 3,600
  • 3
  • 22
  • 39