UIBillboard is invisible

I have a scene and I have added a uibillboard to it using



      Node uiNode = null;
      UIBillboard _bill = null;
      .........
      .........
      _bill = new UIBillboard( "bill","data/Monkey.png",50,50,1.0f);   
      uiNode = new Node("uiNode");
      uiNode.attachChild( _bill);
      rootNode.attachChild(uiNode);



When I run the program (my program extends VariableTimestepGame) , the billboard is invisible. I even tried to update the node, similar to what you have to do with Text, but no luck. Does anybody knows whats happening :?

do you have other things attached to rootnode and do they have bounds set? You may need to setForceView(true) on rootnode and guinode if so. Generally I keep my gui stuff seperate from rootnode to avoid issues like this.

do you have other things attached to rootnode and do they have bounds set?


Yes I have a couple of boxes which I do setModelBound on them.

I keep my gui stuff seperate from rootnode to avoid issues like this.


How do I do this? I even have tried to force an update on the node (similar to using Text node) but it hasnt worked.

tomcat
"tomcat" wrote:
How do I do this?
You have two root nodes each of them updated from your update and rendered from your render functions. They should not be attached to each other.

Great, it works now :slight_smile: .

tomcat

Could it work if you just attach it to rootNode and set forceView(true) ?