Draw Nifty UI on texture

Hello everyone,

i would like to modify the TestNiftyToMesh.java example (that could be found in example project) so that i could enable the mouse pointer on the mesh.

I would really be glad if anyone could give me a hint how to turn it on. Do I have to draw my own mouse pointer on it or can I use the NiftyMouse with


Okay, I’m starting to draw my own mouse cursor.

I’m doing that by adding a new SceneProcessor which is called DrawMouseCursorProcessor:

DrawMouseCursorProcessor mouseProcessor = new …;

niftyDisplay = new NiftyJmeDisplay(Globals.assetManager, Globals.inputManager, Globals.audioRenderer, viewPort);
nifty = niftyDisplay.getNifty();

The mouse processor will be called after the nifty display processor and will draw the mouse over the gui. I hope this works.

Later. :slight_smile: