rootNode.attachChild(fadeOutNode);
rootNode.attachChild(fio);
	protected void initGame() {		rootNode = new Node("Scene Graph Root Node");		fadeOutNode = new Node("Fade Out Node");		fadeInNode = new Node("Fade In Node");		AlphaState fontAS = display.getRenderer().getAlphaState();		fontAS.setBlendEnabled(true);		fontAS.setSrcFunction(AlphaState.SB_SRC_ALPHA);		fontAS.setDstFunction(AlphaState.DB_ONE);		fontAS.setTestEnabled(true);		fontAS.setTestFunction(AlphaState.TF_GREATER);		fontAS.setEnabled(true);		TextureState fontTS = display.getRenderer().getTextureState();		fontTS.setTexture(TextureManager.loadTexture(				TestFadeInOutTransientEffect.class.getClassLoader()						.getResource("jmetest/data/font/font.png"),				Texture.MM_LINEAR, Texture.FM_LINEAR, true));		fontTS.setEnabled(true);		fps = new Text("FPS", "");		fps.setRenderState(fontAS);		fps.setRenderState(fontTS);				fadeOut = new Quad("Fade Out");		fadeOut.initialize(5, 5);		fadeOut.setRenderState(fontTS);		fadeOutNode.attachChild(fadeOut);				fadeIn = new Quad("Fade In");		fadeIn.initialize(5, 5);		fadeInNode.attachChild(fadeIn);				tRen = display.createTextureRenderer(512, 512, false, true, false, false, TextureRenderer.RENDER_TEXTURE_2D, 0);		fadeInT = tRen.setupTexture();		fadeOutT = tRen.setupTexture();		tRen.render(fadeInNode, fadeInT);		tRen.render(fadeOutNode, fadeOutT);				TextureState fadeOutTS = display.getRenderer().getTextureState();		fadeOutTS.setEnabled(true);		fadeOutTS.setTexture(fadeOutT);				TextureState fadeInTS = display.getRenderer().getTextureState();		fadeInTS.setEnabled(true);		fadeOutTS.setTexture(fadeInT);				fio = new FadeInOut("FadeInOut", fadeOutTS, fadeInTS, new ColorRGBA(1, 0, 0, 0), 0.01f);		fioC = new FadeInOutController(fio);		fio.addController(fioC);				rootNode.attachChild(fps);		rootNode.attachChild(fadeOutNode);	}