Hi all
i work on a viewer which shall be able to load a Modell during runtime. When
i load a model for the first time, everything is correctly rendered. But
when i try to load another model i get the following exception.
java.lang.IndexOutOfBoundsException: Index: -1, Size: 4
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at
javax.media.j3d.RenderBin.findOrderedCollection(RenderBin.java:3061)
at javax.media.j3d.RenderBin.findEnvironmentSet(RenderBin.java:3449)
at javax.media.j3d.RenderBin.insertRenderAtom(RenderBin.java:2867)
at
javax.media.j3d.RenderBin.processGeometryAtoms(RenderBin.java:2398)
at javax.media.j3d.RenderBin.processMessages(RenderBin.java:974)
at
javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.ja
va:83)
at javax.media.j3d.J3dThread.run(J3dThread.java:256)
It seems, that the exception is thrown by the rendering process, my app runs
on until i exit, but my canvas is black. For reloading i detach the scene
BranchGroup ,then create a new BranchGroup and add it to my above
TransformGroup. The Exception occures after i add the new Branchgroup.
I use also one OrderedGroup, a PickingBehavior, a FrameBehavior,
KeyboardNavigation and MouseNavigation.
Plattform WinNT 4.0 SP5, Java3D 1.2 OpenGL, Jre 1.2(same effect on 1.3)
hope that anyone has an idea...
thanks
Alexander Wojnar
===========================================================================
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".