If you want to be able to move each one independantly, you should load it once and then call "cloneTree()" on the original each time you want to get a new independant one identical to the original. Don't forget to cast it to the original class (Shape3D for ex.)!
Have fun! CHRIS P.S. We do this a lot in our game to avoid multiple reloads so we made special classes we called "Factories" which read in the model once and then do "cloneTree()" in a "getShape()" method we use to get new objects identical to the model. ----- Original Message ----- From: "Carlos Vieira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 17, 2003 8:09 AM Subject: [JAVA3D] Cloning objects > Hi, > > I am loading a 3ds object and i want > to show that object 15 times. > I don't want to load 15 times the object. > How can i do this.... i'm getting the > error of "...child already has a parent...", > which i understand, but i tried clone > and nothing appears on the screen... > i made detach before adding clone... > How can i resolve this problem... > > Thanks in advance > > Carlos > > =========================================================================== > 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". > =========================================================================== 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".