rotQuat = new Quaternion(); axis = new Vector3f(1, 1, 0.5f); axis.normalizeLocal(); Vector3f max = new Vector3f(5, 5, 5); Vector3f min = new Vector3f(-5, -5, -5); box = new Box("Box", min, max); box.setModelBound(new BoundingBox()); box.updateModelBound(); box.setLocalTranslation(new Vector3f(0, 0, -10)); box.setRenderQueueMode(Renderer.QUEUE_SKIP); //rootNode.attachChild(box); box.setRandomColors(); TextureState ts = renderer.createTextureState(); ts.setEnabled(true); ts.setTexture(TextureManager.loadTexture(JMESwingTest.class .getClassLoader().getResource( "jmetest/data/images/Monkey.jpg"), Texture.MM_LINEAR, Texture.FM_LINEAR)); rootNode.setRenderState(ts); startTime = System.currentTimeMillis() + 5000; //md3 Md3ToJme converter=new Md3ToJme(); URL model=null; Spatial r =null; final KeyframeController keycon =null; model=TestMd3JmeWrite.class.getClassLoader().getResource("jmetest/data/model/nordhorse.md3"); URL tex=TestMd3JmeWrite.class.getClassLoader().getResource("jmetest/data/model/nordhorse_color.jpg"); ByteArrayOutputStream BO=new ByteArrayOutputStream(); try { converter.convert(model.openStream(),BO); logger.info("Done converting, now watch how fast it loads!"); long time=System.currentTimeMillis(); r=(Spatial)BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray())); r.setModelBound(new BoundingBox()); r.updateModelBound(); logger.info("Finished loading time is "+(System.currentTimeMillis()-time)); TextureState ts2=renderer.createTextureState(); ts2.setTexture(TextureManager.loadTexture(tex,Texture.MM_LINEAR,Texture.FM_LINEAR)); ts2.setEnabled(true); r.setRenderState(ts2); rootNode.attachChild(r); r.addController(keycon); //cam.lookAt(new Vector3f(rootNode.getWorldBound().getCenter()), Vector3f.UNIT_Y); } catch (IOException e) { logger.log(Level.SEVERE, "Failed to load Md3 file", e); }