Need a way to add and remove objects smoothly
I am currently adding and removing objects to a live scene by using a BranchGrup as follows:
I remove the BranchGroup from the scene, clear its contents, add new shapes to it, then add the BranchGrup back to the live scene. Each time I add a BranchGrup to the scene with a new set of shapes can be thought of as a movie frame....i have a scroller at the bottom that populates the BranchGroup with the shapes belonging to the given frame. The user can also hit play where the scroller moves through each frame...so the user sees the data like a movie. The problem however is that between each frame, the view clears, then objects appear, then clears, then objects appear....as i add and remove the BranchGroup.
Does anyone know of a way i can add and remove objects without getting this blinking effect of nothing, then something, then nothing, and so on...
thanks a billion in advance,