.3ds animation problem

hello i am trying to develop a game so basic.

i have a problem with an animation .3ds, when i put it in the node and i rotate this, the animation broken in two pieces, y paste  the code here, is of one  example of  jme, can you help me?







ByteArrayOutputStream BO=new ByteArrayOutputStream();

            logger.info("Starting to convert 3ds to .jme");

            converter.convert(objFile.openStream(),BO);

           

           

           

         

            logger.info("Done converting, now watch how fast it loads!");

            long time=System.currentTimeMillis();

            Node r=(Node)BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));

            logger.info("Finished loading time is "+(System.currentTimeMillis()-time));

       

            r.setLocalRotation(new Quaternion(0,2,0,0));

            r.setLocalScale(.1f);

            rootNode.attachChild®;







thank you for your time.

Please post your .3ds animation source. I am trying to do this now and am not having very much success. Thank you.

the animation should start playing by default if it is loaded correctly. Try to print out any controllers on the loaded model to see if any animation was loaded.



jmetest.effects.glsl.BloomTest uses an animated .3ds file, check this out for reference.



Hellmaster

hi. thank you for your help, buy when i change the animation "jmetest/data/model/Character.3DS" for another .3ds file !bam

It looks like he cant find the 3ds model and therefore maxFile is null.

the filename is case sensitive maybe ?



Hellmaster

remember that Windows isn't case-sensitive but java is, so it could be your path.