How would I go about getting a jME texture to show in Nifty? I used a slightly altered Render To Texture class, and I want to get the result into my GUI. How would I do this?
Texture.getImage()?
Oh… and the for Nifty side of things:
[java]
NiftyImage img = nifty.getRenderEngine().createImage(image, false);
icon.getRenderer(ImageRenderer.class).setImage(img);
[/java]
Alright, thanks!
The method nifty.getRenderEngine().createImage(); doesn’t ask for an image, it asks for a String and a boolean… I assume the boolean would be whether or not to use the alpha map, but how would I export my RenderToTexture output to an image? Is it even possible?