Link to home
Start Free TrialLog in
Avatar of wazila
wazila

asked on

BranchGroups

Hi,

I am trying to pick a node but I am getting an exception that says that i can only pick if the BranchGroup is alive.  Does anyone know how to set a BranchGroup to be alive? Or does anyone know what this means?

wazila
Avatar of Sasha_Mapa
Sasha_Mapa

What's a BranchGroup?
Avatar of wazila

ASKER

Sorry, I forgot to clarify that I am using Java3D.
ASKER CERTIFIED SOLUTION
Avatar of Nevyn
Nevyn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Actually, the BranchGroup does not have to be added directly to the Locale. Once the BranchGroup is added to a live scene graph, it becomes alive and all of its children become alive. To make the BranchGroup not alive, you must set the BranchGroup.ALLOW_DETACH capability and call the detach method of BranchGroup when it is alive. This will remove the BranchGroup and all of its children from the Universe and hence from the display.