Hi guys!

I have posted a few time about having problems with picking of VRML object
loaded with the XJ3D loader (and the Sun one for that matter as well!) I am
certain I have got the picking routines worked out O.K. and I have put aside
my main project to concentrate on this problem I keep getting.

The main problem is when picking a VRML object imported with a loader.  I have
written a test file that creates a basic simple Universe and added a a Java
generated Shape3D to it that I can pick and get information about the
intersection with he pick ray etc perfectly.  within the same file (commented
out during this test)

I also have a VRML shape that is imported and capabilities set on the shape to
allow for picking.  when this imported shape is added to the scene and I try
to get information about the pick target I get silly results.  I would love it
if someone would be kind enough to have a look at it for me.  I can put the
VRML file and java files into a zip file (to save space) and mail them to
anyone willing to have a look at it for me!  I have not attached it to this
mail to save peoples space in their inboxes!

This problem has been driving me crazy as it just does not make sense I have
tried .pickClosest  .pickAll  .pickAllSorted  and even after trawling trough
the outputs for possible correct readings I can not find a complete set of
x,y,z local readings that I require!

Any offers of assistance would be much appreciated.


Yours Phil Colbert :)


>===== Original Message From Discussion list for Java 3D API
<[EMAIL PROTECTED]> =====
>Not to worry guys
>
>I have found out what the problem was and for future ref I have included my
>solution in brief!
>
>The early versions of the pick tool routine looked like this:-
>
>pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
>pickCanvas.setTolerance(0.0f);
>pickCanvas.setShapeLocation(xpos, ypos);
>pickResult = pickCanvas.pickClosest();
>
>The changes made now make the start of the routine look like this:-
>
>pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
>pickCanvas.setTolerance(4.0f);
>pickCanvas.setShapeLocation(xPos, yPos);
>PickResult[] results = null;
>results = pickCanvas.pickAll();
>
>
>Things that made a diffrence was the pickAll() and the tolerance of (4.0f)
>
>C YA Phil Colbert :)
>
>
>
>>===== Original Message From Discussion list for Java 3D API
><[EMAIL PROTECTED]> =====
>>Justin
>>
>>A week or so ago I sent a mail to this news group about a problem I was
>>getting when loading a VRML shape and when I was picking it to query the
>Local
>>coordinates I was getting unexpected results in that I should have been
>>getting clicks in the range 1.6 to 0.0  instead I was getting 0.8 to -0.8!
I
>>noted your response so decided to investigate it a bit more to see if I
could
>>understand what was happening.  I built another smaller application that
just
>>had the displaying of the VRML shape and a pick behavior on it to query the
>>local coords.  I am still getting the same problems!  When I insert a basic
>>shape created from my own geometry I have no problems which lets me think it
>>is not my pick routine.
>>
>>You mentioned that if I sent a test file etc you would look at it is the
>offer
>>still open?  If so I can mail you a zip file with the Java files and VRML
>file
>>you will need to test it with.
>>
>>Yours Phil Colbert :)
>>
>>
>>>===== Original Message From Discussion list for Java 3D API
>><[EMAIL PROTECTED]> =====
>>>Philip J Colbert wrote:
>>>
>>> In the VRML model we are using the to allow for some interaction we grab
>>the
>>> local points that basically fall in the range 0.3 to -0.3  but when the
>>model
>>> is loaded into a Java Scene the local coordinate points are not in the
>same
>>> range!  They are approx about half the value!
>>>
>>>That sounds odd, but I'm not sure how you are reading the information
>>>back to confirm this. Can you send me a test file and app to show this?
>>>
>>>--
>>>Justin Couch                         http://www.vlc.com.au/~justin/
>>>Java Architect & Bit Twiddler              http://www.yumetech.com/
>>>Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
>>>-------------------------------------------------------------------
>>>"Humanism is dead. Animals think, feel; so do machines now.
>>>Neither man nor woman is the measure of all things. Every organism
>>>processes data according to its domain, its environment; you, with
>>>all your brains, would be useless in a mouse's universe..."
>>>                                               - Greg Bear, Slant
>>>-------------------------------------------------------------------
>>>
>>>===========================================================================
>>>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".
>>
>>Philip J Colbert
>>Software Engineer
>>RCID, Bruce Building
>>University of Newcastle Upon Tyne
>>NE1 7RU
>>Phone 0191-2225306
>>Fax 0191-2225833
>>This e-mail, including any attached files, may contain confidential and
>privileged information for the sole use of the intended recipient(s). If you
>are not the intended recipient, please note that any circulation or copying
of
>this e-mail is strictly prohibited. If you have received this e-mail in error
>please contact the sender by reply e-mail and delete all copies of this
>message.
>>
>>The RCID makes every effort to ensure that this e-mail and any attachments
>are sent virus free. However it is the responsibility of the recipient to
>perform any checks they deem necessary.
>>
>>===========================================================================
>>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".
>
>Philip J Colbert
>Software Engineer
>RCID, Bruce Building
>University of Newcastle Upon Tyne
>NE1 7RU
>Phone 0191-2225306
>Fax 0191-2225833
>This e-mail, including any attached files, may contain confidential and
privileged information for the sole use of the intended recipient(s). If you
are not the intended recipient, please note that any circulation or copying of
this e-mail is strictly prohibited. If you have received this e-mail in error
please contact the sender by reply e-mail and delete all copies of this
message.
>
>The RCID makes every effort to ensure that this e-mail and any attachments
are sent virus free. However it is the responsibility of the recipient to
perform any checks they deem necessary.
>
>===========================================================================
>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".

Philip J Colbert
Software Engineer
RCID, Bruce Building
University of Newcastle Upon Tyne
NE1 7RU
Phone 0191-2225306
Fax 0191-2225833
This e-mail, including any attached files, may contain confidential and privileged 
information for the sole use of the intended recipient(s). If you are not the intended 
recipient, please note that any circulation or copying of this e-mail is strictly 
prohibited. If you have received this e-mail in error please contact the sender by 
reply e-mail and delete all copies of this message.

The RCID makes every effort to ensure that this e-mail and any attachments are sent 
virus free. However it is the responsibility of the recipient to perform any checks 
they deem necessary.

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