Displaying 3D models in GUI node

ToneGodGUI is a 2D lib made by toneGod.
General documentation: Exciting news! And… um… new Documentation… dun dun duuuun
Or to get all the threads linked to that project: http://hub.jmonkeyengine.org/c/projects/tonegodgui

For 2D lib, you have a choice between nifty (officially supported) and toneGodGUI and Lemur.

In my snippet, setupModelViewer() is “generic”; only displayModelView() is linked to the 2D lib. So you can use any lib or do it yourself and use this… just set the texture of the element in 2D (displayModel.getMaterial().setTexture(“ColorMap”, offTex);).

I’ve found it easier to follow easy paths to get the architecture going and only focus on pretty/specific difficulties later on. So maybe you shouldn’t be focusing on this kind of stuff from the get-go.

1 Like