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".

Reply via email to