Thanks Marcin,

 I tried what you said but the problems contineus.

The problem can't be with the Spheres. because when i
comment the line where the box is added to the scene,
all the spheres are identified correctly.

my code:

  In the constructor of my behavior class:
(...)
pickCanvas = new PickCanvas(canvas3D,branchGroup);
pickCanvas.setTolerance(0);
(...)

and in the processStimulus method:
(...)
pickCanvas.setShapeLocation(mouseEvent);        PickResult[]
res = pickCanvas.pickAll();
(...)


Anyone know how can i do this?



*****
Denis


--- Marcin Jasiński <[EMAIL PROTECTED]> wrote:

> Try to set pickCanvas.setTolerance(0 );
>
> I got a similar problem and this was a solution
>
> Marcin
>
>
> DS> Hi,
>
>
> DS>   In my scene I have a big Box with four
> Shperes.
> DS> Like this:
>
> DS> front:      side:
> DS> +-----+      +
> DS> |() ()|     (|)
> DS> |     |      |
> DS> |() ()|     (|)
> DS> +-----+      +
>
> DS> The user may click on one of the Spheres or on
> the big
> DS> box.
>
> DS> I am using the PickCanvas class for this.
>
> DS> But my problem is that for some of the Spheres,
> when I
> DS> click on them. PickCanvas returns the Box!?
>
> DS> How can I fiz this???
> DS> Any one can help me?
>
>
> DS> *****
> DS> Denis




_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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