Hi Eric,

I didn't do the on the fly modification with picking
but dabbled with picking. This is how it works:

Have a class which extends PickMouseBehavior and
overrides the method updateScene(int xPos, int yPos).
Add this MousePick instance to the Root of the graph.

public class MousePick extends PickMouseBehavior
{
....
....

    // call back mehod...
    public void updateScene(int xPos, int yPos)
    {
        SceneGraphPath path = pickObject.pickClosest
                  (xPos,yPos,PickObject.USE_BOUNDS);

        ....
    }
}

If u want to replace a specific shape or group
then u got to recognize that by some means so
idea would be to have UserData set on that
group/shape...DO NOT FORGET TO SET THE
CAPABILITIES.

Hope this helps...

Sivaram.

--- Eric Arnold <[EMAIL PROTECTED]> wrote:
> I am looking to do a specific type of picking and
> could not find an example
> in the archives...  I want to be able to click on
> one of the objects in my
> scene and add a wire frame sphere to it on the fly.
> Is this possible and if
> so how?  Does anyone know where I can find a copy of
> the implementation of
> the provided picking behaviors to take a look at
> them?  Thanks for the help.
>
> Eric Arnold
>
>
===========================================================================
> 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".
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

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