Chien Yang: I tried it out, but unfortunately failed, the exception comes out again. Any more suggestions to have this job done? The weird thing is even I disable these behaviors before I detach the BranchGroup, this problem still will be there. Really troublesome. Thanks for your reply!
Samuel Liu ----- Original Message ----- From: Chien Yang <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Samuel, Have you tried doing the detach in a j3d Behavior ? There is a known MT bug with detach() executed in the user thread. - Chien Yang Java 3D, Sun Microsystems Inc. Liu Samuel wrote: > hi all, > There is a NullPointerException occured when I attempted to detach a BranchGroup > from the locale, there is a collision detection behavior serves as a child of the > BranchGroup. The call trace is: > > java.lang.NullPointerException > at > javax.media.j3d.TransformGroupRetained.getCurrentChildLocalToVworld(TransformGroupRetained.java:1029) > at > javax.media.j3d.TransformGroupRetained.getCurrentChildLocalToVworld(TransformGroupRetained.java:1025) > at > javax.media.j3d.TransformGroupRetained.transformBounds(TransformGroupRetained.java:1000) > at > javax.media.j3d.WakeupOnCollisionEntry.updateCollisionBounds(WakeupOnCollisionEntry.java:410) > at > javax.media.j3d.GeometryStructure.processCollisionDetection(GeometryStructure.java:866) > at > javax.media.j3d.GeometryStructure.processMessages(GeometryStructure.java:214) > at javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.java:83) > at javax.media.j3d.J3dThread.run(J3dThread.java:250) > > Seems to be an internel exception. Why? Bug of j3d collision detection? Any > walkarounds? > > Many many many thanks for your help:-) > > Liu