Nvidia Ge force 7600 zbuffer problem

Hi

I'm trying to develop a 3d console with jme.

I have a problem with 3ds object imported and Nvidia Graphics accelletarion…

i'm not able to use Zbuffer .



The same application running on the same machine with Ati x1300 is perfectly running!



What's wrong?

any ideas?



TK a lot

I started from Monkeyword3d, i have an SWT application very similar as Mw3d.



The platform is Linux x86_64



this is the code that i use to  display the 3ds objs into a new Level.



it's very strange becouse, wthout 3d acceleration or with ati card it's work !!





public void updateWorld3dBox() {

    if (world3droot == null) {

   

    world3droot= new Node("world3d");

   

    world3droot.setCullMode(Spatial.CULL_NEVER);

    }

    if (world3droot != null) {

    world3droot.removeFromParent();

    world3droot.detachAllChildren();



    for (LayerObj obj : layers) {

    Node tempnode=obj.getModel();

    if(tempnode!=null){

    if(obj.isEnable()){

      world3droot.attachChild(tempnode);

      if(obj.getPos()!=null){

      tempnode.setLocalTranslation(obj.getPos());

      }

      if(obj.getQ()!=null){

      tempnode.setLocalRotation(obj.getQ());

      }

      if(obj.getScale()!=null){

      tempnode.setLocalScale(obj.getScale());  

      }

      if(obj.getLayerName()!=null){

      tempnode.setName(obj.getLayerName());

     

      }

      tempnode.setRenderState(RenderStateFactory.loadMaterialState(obj.getAmb(),obj.getDif(), obj.getEmi(), obj.getSpe(), MaterialState.MF_FRONT_AND_BACK, obj.getShininess()) );

    }

    }

}

     

        if(rotationAxes.equalsIgnoreCase("x")){

        rot90.fromAngleAxis(FastMath.DEG_TO_RAD*(rotationAngle), Vector3f.UNIT_X);

        }

        if(rotationAxes.equalsIgnoreCase("y")){

        rot90.fromAngleAxis(FastMath.DEG_TO_RAD*(rotationAngle), Vector3f.UNIT_Y);

        }

        if(rotationAxes.equalsIgnoreCase("z")){

        rot90.fromAngleAxis(FastMath.DEG_TO_RAD*(rotationAngle), Vector3f.UNIT_Z);

        }

        if(rotationAxes.equalsIgnoreCase("xyz")){

        rot90.fromAngleAxis(FastMath.DEG_TO_RAD*(rotationAngle), Vector3f.UNIT_XYZ);

        }

       

        if(world3droot!=null)

      world3droot.setLocalRotation(rot90);

 

        level.getRootNode().attachChild(world3droot);

        level.getRootNode().updateRenderState();

        level.getRootNode().updateGeometricState(0.0F, true);

        level.updateLevel();

    }

}

You really need to give more details for people to answer your question. ZBuffer, of course, works on NVIDIA cards, too. And it's not clear what this should relate to the imported model. A short example code snippet (app) would help, probably.

I found the problem!!



public GLCanvas createCanvas(int width, int height, Composite parent) {

this.width = width;

this.height = height;

parent.setLayout(new FillLayout());

       



GLData data = new GLData ();

data.doubleBuffer = true;

data.depthSize=32;



:smiley: