Activating 3D stereo

I have try to use stereo with jmonkey in a simpleapp but it’s doesn’t work.



the screen is completely black.



the code :



[java]

import java.util.logging.Logger;



import com.jme3.app.SimpleApplication;

import com.jme3.input.KeyInput;

import com.jme3.input.controls.KeyTrigger;

import com.jme3.light.DirectionalLight;

import com.jme3.material.Material;

import com.jme3.math.Vector3f;

import com.jme3.scene.Spatial;

import com.jme3.system.AppSettings;



public class Stereo extends SimpleApplication

{



private final static Logger logger = Logger.getLogger(Stereo.class.getName());



private Spatial teapot;



public static void main(String[] args)

{

Stereo app = new Stereo();

AppSettings appSettings = new AppSettings(true);



appSettings.setFullscreen(true);

appSettings.setResolution(1280, 720);

appSettings.setFrequency(59);



appSettings.setVSync(true);

appSettings.setBitsPerPixel(32);

appSettings.setStereo3D(true); //try to activate the stereo

appSettings.setFrameRate(59);





app.setSettings(appSettings);

app.setShowSettings(false);

app.start();

}



@Override

public void simpleInitApp()

{

teapot = assetManager.loadModel(“Models/Teapot/Teapot.obj”);

Material mat_default = new Material(assetManager, “Common/MatDefs/Misc/ShowNormals.j3md”);

teapot.setMaterial(mat_default);

rootNode.attachChild(teapot);



guiNode.detachAllChildren();

guiNode.attachChild(fpsText);



// You must add a light to make the model visible

DirectionalLight sun = new DirectionalLight();

sun.setDirection(new Vector3f(-0.1f, -0.7f, -1.0f));

rootNode.addLight(sun);



this.getFlyByCamera().setMoveSpeed(20);



//For the AZERTY keybord

inputManager.deleteMapping(“FLYCAM_Forward”);

inputManager.deleteMapping(“FLYCAM_Lower”);

inputManager.deleteMapping(“FLYCAM_StrafeLeft”);

inputManager.deleteMapping(“FLYCAM_Rise”);

inputManager.addMapping(“FLYCAM_Forward”, new KeyTrigger(KeyInput.KEY_Z));

inputManager.addMapping(“FLYCAM_Lower”, new KeyTrigger(KeyInput.KEY_W));

inputManager.addMapping(“FLYCAM_StrafeLeft”, new KeyTrigger(KeyInput.KEY_Q));

inputManager.addMapping(“FLYCAM_Rise”, new KeyTrigger(KeyInput.KEY_A));

inputManager.addListener(getFlyByCamera(), new String[] {“FLYCAM_Forward”, “FLYCAM_Lower”, “FLYCAM_StrafeLeft”, “FLYCAM_Rise”});

}



@Override

public void simpleUpdate(float tpf)

{

teapot.rotate(0, (float) 2*tpf, 0);

}

}

[/java]



When I take a screenshot, it shows the scene correctly, but the fram rate is 0.

The stereo is enabled in the NVIDIA Control Panel and works with Batman Arkam city for example.



Config :

windows 7 sp1 64bit

geforce GTX 460M with driver 285.62

jvm oracle 7_02

nightly build jme library (01/13/2012)

Samsung tv with stereo compliance



Thank you in advance for your help.

It’s maybe difficult to give me an answers because of my non common configuration.

If someone have sucess to activate stereo whith his jmonkey app, can give me his configuration.



thank

“stereo” files work fine for me, for “3d audio”(your thread title) you need mono audio files.

Thank for your response.



My thread title’s is misnomer.

I don’t want use stereo audio file but activate the stereoscopy(like in the avatar movie). I have try to use http://hub.jmonkeyengine.org/javadoc/com/jme3/system/AppSettings.html#setStereo3D(boolean).



Can you tell me if this option has already operate for someone?



Thank

NVIDIA doesn’t support OpenGL with 3D stereo on consumer level video cards, probably because there are not enough games that use OpenGL to warrant it.

In this case, do you know where can I find information about graphic cards who support this feature?Nvidia pro level or maybe amd card.



Thank

Even if you enable it there it won’t work. You will need a special filter that handles quad buffered stereo.

NVIDIA Quadro high-end and ultra-high-end solutions support it, see here:

Hello,
it’s a little bit outdated but,
I’m actually using the NVIDIA Quadro 4000 and the option .setStereo3D(true) has following problem:
[java]Failed to create display
org.lwjgl.LWJGLException: Capabilities not supported[/java]

My “problem” now is also related to this topic.
I use the mentioned graphic card with 3D Vision Pro.
After searching the Internet and the forum, i ended up with nothing helpful. The only topic I found, ended in Jan 09.
I would like to use shutter glasses. Anyone ever set up a small Application to use these glasses via jMonkeyEngine?

Thanks.

Have you seen this thread:

http://hub.jmonkeyengine.org/forum/topic/quad-buffer-stereo/

It appears to be related.

I’d be interested if you get a working example. I may be able to do some work on it, but don’t have a 3D output device yet (though do have Quadros). Annoyingly I’m stuck in a bit of a chicken and egg situation, if I knew the 3D would work then I would have more of a reason to get some suitable display.