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.
