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
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
What's a BranchGroup?
ASKER
Sorry, I forgot to clarify that I am using Java3D.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.