flare.setRootNode(rootNode);
  protected void simpleInitGame() {    display.setTitle("Lens Flare!");    cam.setLocation(new Vector3f(0.0f, 0.0f, 200.0f));    cam.update();    input.setKeySpeed(100);    lightState.detachAll();    PointLight dr = new PointLight();    dr.setEnabled(true);    dr.setDiffuse(ColorRGBA.white);    dr.setAmbient(ColorRGBA.gray);    dr.setLocation(new Vector3f(0f, 0f, 0f));    lightState.setTwoSidedLighting(true);    lightNode = new LightNode("light", lightState);    lightNode.setLight(dr);    Vector3f min2 = new Vector3f( -0.5f, -0.5f, -0.5f);    Vector3f max2 = new Vector3f(0.5f, 0.5f, 0.5f);    Box lightBox = new Box("box", min2, max2);    lightBox.setModelBound(new BoundingBox());    lightBox.updateModelBound();    lightNode.attachChild(lightBox);    lightNode.setTarget(rootNode);    lightNode.setLocalTranslation(new Vector3f( -14f, 14f, -14f));    // clear the lights from this lightbox so the lightbox itself doesn't		// get affected by light:    lightBox.setLightCombineMode(LightState.OFF);		// Setup the lensflare textures.		TextureState[] tex = new TextureState[4];		tex[0] = display.getRenderer().createTextureState();		tex[0].setTexture(				TextureManager.loadTexture(				LensFlare.class.getClassLoader().getResource(				"jmetest/data/texture/flare1.png"),				Texture.MM_LINEAR_LINEAR,				Texture.FM_LINEAR,				Image.RGBA8888,				1.0f,				true));		tex[0].setEnabled(true);		tex[0].apply();		tex[1] = display.getRenderer().createTextureState();		tex[1].setTexture(				TextureManager.loadTexture(				LensFlare.class.getClassLoader().getResource(				"jmetest/data/texture/flare2.png"),				Texture.MM_LINEAR_LINEAR,				Texture.FM_LINEAR));		tex[1].setEnabled(true);		tex[1].apply();		tex[2] = display.getRenderer().createTextureState();		tex[2].setTexture(				TextureManager.loadTexture(				LensFlare.class.getClassLoader().getResource(				"jmetest/data/texture/flare3.png"),				Texture.MM_LINEAR_LINEAR,				Texture.FM_LINEAR));		tex[2].setEnabled(true);		tex[2].apply();		tex[3] = display.getRenderer().createTextureState();		tex[3].setTexture(				TextureManager.loadTexture(				LensFlare.class.getClassLoader().getResource(				"jmetest/data/texture/flare4.png"),				Texture.MM_LINEAR_LINEAR,				Texture.FM_LINEAR));		tex[3].setEnabled(true);		tex[3].apply();    LensFlare flare = LensFlareFactory.createBasicLensFlare("flare", tex);    flare.setLocalTranslation(lightNode.getLocalTranslation());    //lightNode.attachChild(flare);    Box box = new Box("my box", new Vector3f(0, 0, 0), 10, 10, 10);    box.setModelBound(new BoundingBox());    box.updateModelBound();    rootNode.attachChild(box);    rootNode.attachChild(lightNode);    // notice that it comes at the end    rootNode.attachChild(flare);  }