I can't see any obstacles...
Just apply need capabilities to branchgroups.
Something like this:
 
------------------------------------------------------------------
objRoot = new BranchGroup();
objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
lightGroup = new BranchGroup();
lightGroup.setCapability(BranchGroup.ALLOW_DETACH);
objRoot.addChild(lightGroup);
objRoot.compile();
....................................
objRoot.removeChild(lightGroup);
.....................................
objRoot.addChild(lightGroup);
-------------------------------------------------------------------
 
After scene compilation or live only BranchGroup can be remove or add.
 
Vladimir A. Vernikovski
Programmer
-------------------------------------------
JPROOF Technologies Ltd.
----- Original Message -----
Sent: Thursday, June 19, 2003 3:23 AM
Subject: [JAVA3D] Adding content to the graph after compilation

Ok, so I've got my scene graph, and I want to add an object to it at runtime. I can get all the info I need, except that when I go to add it, I get an error because the scene is live (and my branchgroup has been compiled). How can I add content to that branchgroup after it's compiled? I do know how to detach it so it's not live, but that doesn't fix it.

 

- Michael

Reply via email to