[EMAIL PROTECTED] writes:
>Hi--
>
>I'm working on a 3D clickable interface, and I want to be able to create
>spheres dynamically when the user clicks.  Java3D doesn't let you add
>children to live or compiled branchgroups.  Is there some way around
>this?  Right now I have to create the spheres when I initialize the
>program
>and then only draw them once the user has clicked.  This seems like a very
>roundabout way of accomplishing what should be a simple thing to do.

Set the capability bit ALLOW_CHILDREN_EXPAND on the branchgroup, and set
the ALLOW_DETACH capability bit of the item to be added if you want to
remove it.  Then you should be able to add and remove even if the scene is
live or compiled.
>

Good luck,

Nathan Goff

===========================================================================
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".

Reply via email to