I know of two ways (there might be others):
 
1. really add the objects using BranchGroups at different times.
2. add all the objects at one time and use a Switch to turn them visible one by one, the switch being controled by the timer loop - a behavior maybe ?
 
It's up to you to choose which one of those suits you best.
 
Cheers,
 
Florin
-----Urspr�ngliche Nachricht-----
Von: A. Murat Tanyer [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 10. M�rz 2003 11:21
An: [EMAIL PROTECTED]
Betreff: [JAVA3D] add Shape3Ds as a function of time!!!

Dear members,

I want to add Java3D objects to the scenegraph during the runtime. I know that there is a way to add objects by the help of the BranchGroup.

I am trying to make an animation. So in my case, I want to add Shape3Ds as a function of time.
I have a loop and at the end of each loop I have a bunch of Shape3Ds and their adding time (or delay time according to the first bunch) to the scenegraph. My animation (this loop) starts when the user presses a JButton in the GUI.

For example, I want to add ObjectBunch_1 at time "t",
ObjectBunch_2 at time "t + 2 sec", ObjectBunch_3 at time "t + 4 sec", etc.

What is the best way to solve this problem?

Thanks for any help.

Reply via email to