Dave,

My solution to this is to build my scene with multiple branchgroups.  I
have a physical structure branchgroup that I pick against (for collision
detection) and I have a separate "decor" branchgroup for things that
players just see and can't actually touch / collide / etc.  Thus I never
pick against the decor branchgroup.  Does it create much of a
performance penalty to have Geometry intersect capabilities turned on in
this group that we won't pick against?  I don't know the answer to that.

- John

"Yazel, David J." wrote:
>
> Heres an example:
>
> A particle system might have a shape swarming and rotating around a
> character, and you want to click on the character without hitting the shapes
> forming the partical system.  But in that case I want it to ignore the other
> shapes, not throw an exception.
>
> > ----------
> > From:         John Wright[SMTP:[EMAIL PROTECTED]]
> > Reply To:     Discussion list for Java 3D API
> > Sent:         Tuesday, January 16, 2001 11:29 AM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: [JAVA3D] PickTool GEOMETRY mode
> >
> > Lee,
> >
> > Certainly this should be documented better.  It plagued me when I first
> > started.  As far as I figure it should have the capability turned on by
> > default.  As you mentioned having just one Shape3D without the
> > capability set causes it to die an ugly death.  I'm not sure I'd want it
> > to ignore the exceptions because then we might be dealing with
> > mysterious pick failures as it ignores the items we forgot to set the
> > capability on.
> >
> > Can you tell me any reason you might NOT want the capability set? Why
> > should it ever be off?
> >
> > - John
> >
> > "J. Lee Dixon" wrote:
> > >
> > > As a final note/request, I guess I can understand why the Geometry class
> > > defaults to having the capability turned off.  But it does seem a bit
> > > redundant to have to set the capability for everything in the scene
> > > since PickTool throws an exception and dies if it finds something that
> > > does not have the capability set.  I figured that if a Geometry did not
> > > have the right bits set, it would just ignore that Geometry.  Instead,
> > > it dies and you can't even get to the Geometry that you DID enable the
> > > bit on.
> > >
> > > I think this is a quick fix.  PickTool should do a try/catch around
> > > Shape3D.intersect(), and ignore the Shape3D on exception.
> > >
> > > Any thoughts??
> > >
> > > -Lee
> > >
> > > > -----Original Message-----
> > > > From: J. Lee Dixon [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, January 16, 2001 10:24 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: [JAVA3D] PickTool GEOMETRY mode
> > > >
> > > >
> > > > Okay, finally found it.  It's in the Geometry class... the
> > > > documentation
> > > > was literal.  Go figure.... ;)
> > > >
> > > > -Lee
> > > >
> > > > > -----Original Message-----
> > > > > From: J. Lee Dixon [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, January 16, 2001 9:37 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: [JAVA3D] PickTool GEOMETRY mode
> > > > >
> > > > >
> > > > > The JavaDoc for PickTool says:
> > > > > PickTool.GEOMETRY will pick using the geometry of the
> > > > pickable nodes.
> > > > > The PickResult returned will contain the SceneGraphPath to
> > > > the picked
> > > > > Node. Geometry nodes in the scene must have the ALLOW_INTERSECT
> > > > > capability set for this mode.
> > > > > Well, I've looked at Shape3D, and there is no such thing as
> > > > > ALLOW_INTERSECT.  Am I looking in the wrong place?  I have used the
> > > > > PickTool.setCapabilities() function in my loader which creates the
> > > > > Shape3Ds, but I still get the exception:
> > > > >
> > > > >   javax.media.j3d.CapabilityNotSetException: Shape3D: no
> > > > capability to
> > > > > allow intersect
> > > > >
> > > > > whenever I try to select something.  Also, I am using the Cylinder
> > > > > class.  What flag should I set in the constructor to allow
> > > > > interesections??
> > > > >
> > > > > I was using the default BOUNDS selection, but this does not
> > > > work well
> > > > > with selectable objects that are very close together.
> > > > >
> > > > > -Lee
> > > > >
> > > > >
> > > > > J. Lee Dixon
> > > > > SAIC - Celebration, FL
> > > > > 407-566-1438
> > > > > [EMAIL PROTECTED]    AOL: LeeOrlando
> > > > >
> > > > > ==============================================================
> > > > > =============
> > > > > 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".
> > > >
> > >
> > >
> > ==========================================================================
> > =
> > > 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".
> >
>
> ===========================================================================
> 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".

Reply via email to