Hi, I'm developing an application to pick up individual objects in a scenegraph which 
is converted from a loaded VRML file. I have no difficulty for the initial pick. But 
after I changed the scene(reset or load another new one), there is a problem to pick.

I have checked my code, and am sure that I've added the updated scene branch group to 
the newly added pick canvas, the updated BranchGroup is alive,and I set the capability 
of the nodes in the updated scenegraph this way:
PickTool.setCapabilities( (Node) sg, PickTool.INTERSECT_FULL );
to allow picking.

The errors I got like this:
java.lang.IllegalStateException: Picking can only work if BranchGroup is alive
        at javax.media.j3d.BranchGroup.pickAll(BranchGroup.java:123)
        at 
com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(PickTool.java:835)
        at 
com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersect(PickTool.java:915)
        at com.sun.j3d.utils.picking.PickTool.pickClosest(PickTool.java:566)

Does anybody know what might cause the problem? Thank you very much in advance!!!

Yi

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