Hey guys im testing about 2D text in a 3D scene with Billboard control. The problem is that i cant see the text at all, it was working fine with the GUI node but for billboard, you’re supposed to attach it to a Node.
[java]
//This is my UI class
dmgFont = assetManager.loadFont(“Interface/Fonts/Arial.fnt”);
dmgAmount = new BitmapText(dmgFont, false);
dmgAmount.setColor(ColorRGBA.Red);
dmgAmount.setSize(30f);
dmgAmount().setBox(new Rectangle(-dmgAmount.getLineWidth() / 2.0f , 0f, dmgAmount.getLineWidth() +20, dmgAmount.getLineHeight()));
dmgAmount().setText("Test");
dmgAmount().setQueueBucket(RenderQueue.Bucket.Transparent);
dmgAmount().setAlignment(BitmapFont.Align.Center);
//In my Game class
ui = new UI(this, this.app.getAssetManager());
text = new BillboardControl();
text.setAlignment(BillboardControl.Alignment.Screen);
textNode = new Node("Node for text");
textNode.setQueueBucket(Bucket.Transparent);
textNode.attachChild(ui.dmgAmount());
ui.dmgAmount().addControl(text);
this.app.getRootNode().attachChild(textNode);
[/java]
Once again the problem is that i cannot see my text at all, i could see before if i use GuiNode.