54

Building 3D content with a scene graph
Making a node live

  • Adding a branch graph into a locale (or simple universe) makes its nodes live (drawable)
    BranchGroup myBranch = new BranchGroup( );
    myBranch.addChild( myShape );
    myLocale.addBranchGraph( myBranch ); // make live!

  • Removing the branch graph from the locale reverses the effect
    myLocale.removeBranchGraph( myBranch );// not live