Adding shape3D objects to branchgroup (live)
I need to be able to add shapes in real-time so what I try to do is detach the branchgroup, then add shape and finally re-add the group into the scene.
Problem is, after I detach the group and it will disappears form screen, I cant add or remove child objects. I get the exception: "javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node may be added"
Also, if I try to set capabililty bits I get: "javax.media.j3d.RestrictedAccessException: Cannot modify capability bits on a live or compiled object"
What am I missing? Is the group still live after I have detached it?