Hi! Thats nearly the same thing that I asked here recently. AFAIU only BranchGroup can be attached/deattached from a life graph. For attachment, the parent BranchGroup should have ALLOW_CHILDREN_EXTEND set. The BranchGroup itself should have ALLOW_DETACH set.
If add a class as attachment that represents a attachable/detachable object with an additional TransformGroup so that it can be moved. As a ctor-parameter I use any valid sub-scenegraph, in my case the output of a loader.load().getSceneGroup(). Hope that helps, - J ----- Original Message ----- From: "Subu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002 2:17 AM Subject: [JAVA3D] Adding Shape3D objects to a live scene. > Hello everyone, > > I'm trying to add Shape3D objects to a live scene graph. > > Which of the following capability bits have to be set? > ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, > Currently, I've set all three of them. > > Also, do I have to set these capabilities for the entire hierarchy or is it > sufficient to set them only for the Group node to which these Shape3D > objects are added? > > This does not seem to work. > Am I missing something here? > > Is there som example code that detaches a BranchGroup and re-attach it?
ObjectGroup.java
Description: Binary data
