Hmm, my picking stuff does work really fine in 1.1.x versions of J3D, but it
doesen't work in 1.2 versions (alpha and beta).

I think the BranchGroup.pickClosest-Method does ignore the pickable-flag,
because im my app non-pickable objects are still picked !

Here's the code:

  Leaf pickedLeaf;
  SceneGraphPath path = pickScene.pickClosest(xpos, ypos,
               PickObject.USE_BOUNDS);

     if(path != null) {
      pickedLeaf = (Shape3D) pickScene.pickNode(path, PickObject.SHAPE3D);
      if(pickedLeaf == null)
       pickedLeaf = (Morph) pickScene.pickNode(path, PickObject.MORPH);

      System.out.println("Object picked: " + pickedLeaf);
      System.out.println("Pickable-Flag:" + pickedLeaf.getPickable());
     }

( pickScene is a PickObject which does call BranchGroup.pickClosest. see
j3d-javadoc)

and the following is printed out:

Object picked: javax.media.j3d.Shape3D@3e16f5
Pickable-Flag:false      <---  ????? Not pickable, but has been picked ?

Am I doing something wrong ? I do not think so, because it does work with
j3d 1.1.x.

Chris

-----------------------------------------------------------
<< Very funny Scotty, now beam down my clothes >>

ICQ: 32649217
[EMAIL PROTECTED]

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