bnode.setType(BillboardNode.SCREEN_ALIGNED);
bnode.setAlignment(BillboardNode.SCREEN_ALIGNED);
  protected void simpleInitGame() {    display.setTitle("Imposter Test");    cam.setLocation(new Vector3f(0.0f, 0.0f, 25.0f));    cam.update();    // setup the scene to be 'impostered'        Md2ToJme converter=new Md2ToJme();    ByteArrayOutputStream BO=new ByteArrayOutputStream();    URL textu=TestMd2JmeWrite.class.getClassLoader().getResource(TEXTURE_NAME);    URL freak=TestMd2JmeWrite.class.getClassLoader().getResource(FILE_NAME);    freakmd2=null;    try {        long time = System.currentTimeMillis();        converter.convert(freak.openStream(),BO);        System.out.println("Time to convert from md2 to .jme:"+ ( System.currentTimeMillis()-time));    } catch (IOException e) {        System.out.println("damn exceptions:" + e.getMessage());    }    JmeBinaryReader jbr=new JmeBinaryReader();    try {        long time=System.currentTimeMillis();        freakmd2=jbr.loadBinaryFormat(new ByteArrayInputStream(BO.toByteArray()));        System.out.println("Time to convert from .jme to SceneGraph:"+ ( System.currentTimeMillis()-time));    } catch (IOException e) {        System.out.println("damn exceptions:" + e.getMessage());    }        ((KeyframeController) freakmd2.getChild(0).getController(0)).setSpeed(10);    ((KeyframeController) freakmd2.getChild(0).getController(0)).setRepeatType(Controller.RT_WRAP);    fakeScene = new Node("Fake node");    fakeScene.attachChild(freakmd2);    TextureState ts = display.getRenderer().createTextureState();    ts.setEnabled(true);    ts.setTexture(    TextureManager.loadTexture(        textu,        Texture.MM_LINEAR,        Texture.FM_LINEAR));    freakmd2.setRenderState(ts);    // apply the appropriate texture to the imposter scene    TextureState ts2 = display.getRenderer().createTextureState();    ts2.setEnabled(true);    ts2.setTexture(        TextureManager.loadTexture(        TestImposterNode.class.getClassLoader().getResource(TEXTURE_NAME),        Texture.MM_LINEAR,        Texture.FM_LINEAR));    fakeScene.setRenderState(ts2);    ZBufferState buf = display.getRenderer().createZBufferState();    buf.setEnabled(true);    buf.setFunction(ZBufferState.CF_LEQUAL);    fakeScene.setRenderState(buf);    fakeScene.updateRenderState();    // setup the imposter node...    // we first determine a good texture size (must be equal to or less than the display size)    int tSize = 256;    if (display.getHeight() > 512)      tSize = 512;    iNode = new ImposterNode("model imposter", 10, tSize, tSize);    iNode.attachChild(fakeScene);    iNode.setCameraDistance(100);    iNode.setRedrawRate(.05f); // .05 = update texture 20 times a second on average//    iNode.setCameraThreshold(15*FastMath.DEG_TO_RAD);    // Now add the imposter to a Screen Aligned billboard so the deception is complete.    BillboardNode bnode = new BillboardNode("imposter bbnode");    bnode.setType(BillboardNode.SCREEN_ALIGNED);    bnode.attachChild(iNode);    rootNode.attachChild(bnode);  }