Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / February 2004

Tip: Looking for answers? Try searching our database.

Geometry-based Picking

Thread view: 
Ian Wojtowicz - 24 Feb 2004 08:50 GMT
I am trying to get geometry-based picking to work in my code, but I
keep running into CapabilityNotSet exceptions:

Exception occurred during Behavior execution:
javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to
allow intersect
    at javax.media.j3d.Shape3D.intersect(Shape3D.java:572)

I find this strange because I am in fact setting the ALLOW_INTERSECT
capability (along with anything else that I think might help):

        box.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
        box.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
        box.setCapability(Geometry.ALLOW_INTERSECT);
        box.setCapability(Primitive.ENABLE_GEOMETRY_PICKING);
        box.setCapability(Node.ALLOW_PICKABLE_READ);
        box.setCapability(Node.ALLOW_PICKABLE_WRITE);
        box.setCapability(Node.ENABLE_PICK_REPORTING);

Has anyone used geometry-based picking before? I'd love to see some
sample code. Bounds-based picking works, but the selection area is too
course to be useful.

Any ideas would be greatly appreciated.
Christian Wiech - 26 Feb 2004 11:52 GMT
If you mean something like picking a
point from a geometry than have a
look at the Point Picker example at

http://www.j3d.org/utilities/index.html

It worked for me in my projects.

Cheers

Christian

Am Tue, 24 Feb 2004 00:50:06 -0800 schrieb Ian Wojtowicz:

> I am trying to get geometry-based picking to work in my code, but I
> keep running into CapabilityNotSet exceptions:
[quoted text clipped - 20 lines]
>
> Any ideas would be greatly appreciated.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.