I’m trying to attach a “cast bar” Spatial to the guiNode, and I ran into trouble getting planes and text to appear on the guiNode.
I switched from a plane to instead use a box with the same material, and it suddenly appeared. I thought it was maybe a result of the plane facing the wrong way, but rotating it a few different ways still didn’t get it to appear.
Now I’m having the same issue getting bitmap text to appear once its attached to the guiNode. I’m running a test case in my main classy with the following code.
BitmapText castText = new BitmapText(getAssetManager().loadFont("Interface/Fonts/Nyala.fnt"));
castText.setLocalTranslation(width /2, height /2, 0);
If I switch that code slightly and get rid of the BitmapText and attach a node at the same spot, then it appears on the screen as expected.
Node castCircleNode = (Node) getAssetManager().loadModel("Interface/CastBar/castCircle.j3o");
castCircleNode.setLocalTranslation(width /2, height /2, 0);
Am I missing something else I need to do to get the BitmapText to show up? I searched around and couldn’t find a
solution that worked for me, although based on old posts it sounds like others have been able to get BitmapText to appear on the GuiNode.