I think you can only add BranchGroups at runtime, so create a new
BranchGroup for ever Shape3D object you want to place in the scene.
----- Original Message -----
From: "Saurabh Akhauri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 29, 2001 10:15 PM
Subject: [JAVA3D] Re: [JAVA3D] Can´t add Shape3D at Runtime
I have also faced this problem
and as far as i could gather
it is not possible to add shape3D to BG
at run time
saurabh
----- Original Message -----
From: Sebastian Hentschel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 12:08 AM
Subject: [JAVA3D] Can´t add Shape3D at Runtime
> Hi, i can´t add Shape3D object at runtime
>
> I have an BranchGroup added to my SimpleUniverse.
> I have set the ALLOW_CHILDREN_EXTEND of the
> BranchGroup
>
> And now at Runtime. I try the following
>
> Shape3D object = ...;
> myBranchGroup.addChild(object);
>
> Ok i get an exception that says, that i only can
> add another BranchGroup.
>
> OK i try the following
>
> BranchGroup b = new BranchGroup();
> b.addChild(objekt);
> myBranchGroup.addChild(b);
>
> BranchGroup b = new BranchGroup();
> myBranchGroup.addChild(b);
> b.addChild(objekt);
>
> Noting works.
>
> What i am doing wrong.
>
> I have search throug the sun forums , but they have
> deleted the articles. And in the JAVA3D-INTEREST group
> i find nothing.
>
> Please help me.
>
> Thanks Sebastian
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/?.refer=text
>
>
===========================================================================
> 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".
===========================================================================
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".