Hi,
I need to add & remove nodes from a scene while it is alive &
compiled.
I have some questions about this subject:
* As I understand, I can add / remove only nodes from type BranchGroup
to a live scene. In didn't
know it and I thought to make my scene something like this
(I'm simplifying it):
SimpleUniverse
|
|
BranchGroup
|
|
|
TransformGroup (main transform
group)
|
---------------------------------------------------
| | |
TransformGroup TransformGroup
TransformGroup
Now I understand that each TransformGroup has to be added to
BranchGroup which will be added to the main
TransformGroup.
It looks like a lot of overhead (I will have more
transformGroups leafs). Is there another solution?
* When I want to remove a node, I have to give it's index. I searched
how I can get a node's index and I didn't find.
I also searched if I can give the object itself to be
removed and not its index but I didn't find such possibility.
I know that I can insert a node and ask to put it in a
specific index and this way I will know its index but it means that
I have to manage a list with index - node.
What do you suggest me to do?
Thanks in advance,
Rakefet Altshooler
===========================================================================
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".