I just wanted to thank for all the answers. One of the suggestions helped me
to get it working.

Katja

> Katja,
>
> Check out the VrmlPickingTest example from my book. It should include most
> of what you need. You will just have to create your scenegraph yourself,
> rather than loading from a VRML file.
>
> Sincerely,
>
> Daniel Selman
>
> Author - "Java 3D Programming"
> http://www.manning.com/selman
>
> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Katja Loescher
> Sent: Friday, June 14, 2002 5:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Picking CapabilityNotSetException
>
>
> I looked up the capability bits for boxes in the java doc and added all of
> them. But I still get those errors.
> Why do I get a Shape3D and a GeometryArray error when I click on a Box?
>
> Thanks!
> Katja
>
> > > I tried to do it with PickCanvas, but I always get a
> > > CapabilityNotSetException: "GeometryArray: no capability to get vertex
> > count" when I click on the
> > > plane and "Shape3D: no capability to get geometry" when I click on one
> > of the
> > > boxes. Which capabilities are have to be set?
> >
> > You need to set the capabilities, the objects (the Geometry array and
> the
> > shape3d have setCapability(int) methods (actully inherit it from
> > SceneGraphObject), the ones you need are GeometryArray.ALLOW_COUNT_READ
> > and
> > Shape3D.ALLOW_GEOMETRY_READ, it's all in the java doc for java3d
> >
> > HTH
> >
> > Jeremy
> >
> > --
> > ________________________________________________________
> >
> > PGP key is here -> http://www.computerbooth.com/pgp.html
> >
> > * If debugging is the process of removing bugs, then programming must be
> > the process of putting them in.
> >
> >
>
===========================================================================
> > 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".
> >
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
>
===========================================================================
> 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".
>

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

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