I don't know exactly what you want to do.
But you must know than ONLY Branchgroup() can be added when Scene is "live".
Try:
Create a new BranchGroup node.
Add the component to the BranchGroup that you want to attach when scene is
"live"
Then Add de BranchGroup to your Scene.
> My program build some scene using internal
> buildScene().
>
> Group objRoot = buildScene();
>
> objRoot.setCapability(Group.ALLOW_CHILDREN_READ);
> objRoot.setCapability(Group.ALLOW_CHILDREN_WRITE);
> objRoot.setCapability(Group.ALLOW_CHILDREN_EXTEND);
>
> ..
> ..
>
> root.addChild(scene); // root is BranchGroup
> ..
> ..
>
> Then, the scene is displayed. There is a button that
> add box into 'objRoot', but it occurs error.
>
> [error]
> --------- UNCAUGHT EXCEPTION ---------
> javax.media.j3d.RestrictedAccessException: Group: only
> a BranchGroup node may be added
>
> at javax.media.j3d.Group.addChild(Group.java:255)
>
>
> >>>>>>>>
>
> How can I add some node into 'objRoot' in run time
> after the initial scene is built?
>
>
>
> Thanks in advance.
>
> =====
>
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".