Lee: You have discovered a bug with OrderedGroup.moveTo. A bug 4447901 has been filed to track this problem and will be fixed in the next release. Also note that depth-ordered transparency will be supported in Java3D 1.3. -Uma Java3D Team > MIME-Version: 1.0 > Date: Thu, 19 Apr 2001 12:19:04 -0400 > From: "J. Lee Dixon" <[EMAIL PROTECTED]> > Subject: [JAVA3D] Exception with using Group.moveTo(BranchGroup) for nested Ordered Groups > To: [EMAIL PROTECTED] > > Well, as I mentioned before, I finally got my range ordering working for > transparent objects. But the function I use to reorder objects in the > OrderedGroup was: > myOrderedGroup.moveTo(BranchGroup) > This function is really meant to move a BranchGroup from one part of the > scene to another. Well, it worked for a while until I started having > OrderedGroup nodes under other OrderedGroups. Then I got this nasty > thing: > > java.lang.IndexOutOfBoundsException: Index: -1, Size: 4 > at java.util.ArrayList.RangeCheck(ArrayList.java:491) > at java.util.ArrayList.set(ArrayList.java:323) > at > javax.media.j3d.OrderedBin.addRemoveOrderedCollection(OrderedBin.java:80 > ) > at javax.media.j3d.RenderBin.updateObject(RenderBin.java:362) > at > javax.media.j3d.MasterControl.updateMirrorObjects(MasterControl.java:236 > 6) > at > javax.media.j3d.MasterControl.runMonitor(MasterControl.java:2970) > at javax.media.j3d.MasterControl.doWork(MasterControl.java:2591) > at > javax.media.j3d.MasterControlThread.run(MasterControlThread.java:28) > > So, I switched back to just doing removeChild() on all the objects and > re-adding them (using addChild) and the exception went away. > > I didn't get a response back, but how are other people doing this? Do > people use multiple OrderedGroups or just one big one? I'm actually > making my ordered groups in 3D studio. > > -Lee > > J. Lee Dixon > SAIC - Celebration, FL > 321-939-7917 > [EMAIL PROTECTED] AOL: LeeOrlando > > =========================================================================== > 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".