when you load up a scene via the loaders(be it .wrl, .3ds, .lwo, etc)
you have named objects inside of that scene
so, if you had a human model, you might have named certain parts
LEG,ARM,HEAD,etc

you can get these pieces by doing a method
getNamedObjects()
which returns a hashtable with those names

for picking purposes, you need to assign user data to these specific objects
So, when you get the transformGroup of the ARM object
do a
setUserData(new String"ARM");

now you have put in some marker so that when you do your picking
you can get the user data of that object and see which one you are picking

Hope that helps
Scott Decker


Scott Decker
Research Scientist
Pacific Northwest National Labs
[EMAIL PROTECTED]
don't feed the squirrels

-----Original Message-----
From:   Diego Borro [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, September 01, 1999 5:27 PM
To:     Decker, Scott D
Subject:        Picking and Loaders


    Hello.

    I'm working in Java3D and I have some problems. When I do the pick, I need
to know what object has been picked. I need to know this because I want working
with the object that has been picked. When I talk about object, I refer to files
loaded by means of the loaders.

    Then, the problem is that I have several files loaded into the scene and
when I do the pick, I can't know what object has been selected (I need some
method that when I pick the object, that method return me the object selected).

    You would say me some place where I would can get the documentation about
the loaders (above all the documentation about the loaders of files .obj and
.wrl ).

    Thanks by read this letter.

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