How to apply jME texture to Nifty panel?

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?


Oh… and the for Nifty side of things:


NiftyImage img = nifty.getRenderEngine().createImage(image, false);



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?