I'm realizing a Java3D environment for academical purposes (as I told into the "Java3D & Garbage Collection" thread in this page) . I need to display some animations. I build animations graphs in different BranchGroups at startup, and attach/detach them when I need to enable/disable a specific animation. I'm not sure if this is the right way! I suspect I'm creating object retention.
If I've got a SimpleUniverse "mySU" and some BranchGraphs "myBG1, myBG2, ..... , myBGn" 1) Is it correct to call "mySU.getLocale().removeBranchGraph( myBG1 );" and then "myBGi = null;" ( i= 1,2,.....) to flush "myBGi" BranchGroup? 2) If, at the end, there are k BranchGroup left (k<n) and I call mySU.removeAllLocales, java3D should flush them. What about the (n-k) bg I detached? 3) Is it there a way to reuse a compiled BranchGroup and attach nodes to it? 4)Maybe this kind of bgs use generates object retention? Thank you, Giuseppe ==========================================================================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".