|
Morph
requires the same number of points on the mesh at each step, so I don't
think it will be useful for adding shapes to a scene.
-ben
Hi Murat,
If your shapes fits the requeriments, maybe Morph
helps.
see Morph javadocs and demo.
Alessandro
----- Original Message -----
Sent: Monday, March 10, 2003 8:09
AM
Subject: [JAVA3D] AW: [JAVA3D] add
Shape3Ds as a function of time!!!
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
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.
|