Ben,
       It is likely that you are detaching the BG in a user thread. If this is
true, you will need to synchronize the detach operation with the j3d's
update threads which is rather complicated. This is a known bug in j3d :

BugId 4340607 - Node and NodeComponent's set* methods not synchronized
with set/clearLive.

A possible workaround to this bug is to let the j3d's behavior system
handle the detach operation.

If you do have a bug for us to look at. Please send us a small test
program and fill up the following form :

FULL PRODUCT VERSION :

ADDITIONAL OS VERSION INFORMATION :

A DESCRIPTION OF THE PROBLEM :

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -

ACTUAL -

REPRODUCIBILITY :

thanks,

- Chien Yang
  Java 3D, Sun Microsystems Inc.



Ben Logan wrote:
Hi, I think someone may be able to help me, I get the following error
while trying to remove a branchgroup from my scene, the branchgroup
contains a collision detector that holds a copy of the transformgroup,
im sure that this is the problem, just don't know how to fix it? If you
need any more info, then let me know

java.lang.NullPointerException
        at
javax.media.j3d.TransformGroupRetained.getCurrentChildLocalToVworld(Tran
sformGroupRetained.java:1029)
        at
javax.media.j3d.TransformGroupRetained.getCurrentChildLocalToVworld(Tran
sformGroupRetained.java:1025)
        at
javax.media.j3d.TransformGroupRetained.transformBounds(TransformGroupRet
ained.java:1000)
        at
javax.media.j3d.WakeupOnCollisionEntry.updateCollisionBounds(WakeupOnCol
lisionEntry.java:410)
        at
javax.media.j3d.GeometryStructure.processCollisionDetection(GeometryStru
cture.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)


Kind regards


Ben

********************************************
Ben Logan - Graduate Software Engineer
RCID
Stephenson Building
Newcastle Upon Tyne
NE1 7RU
www.rcid.ncl.ac.uk
********************************************

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

Reply via email to