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 / November 2006

Tip: Looking for answers? Try searching our database.

Pick a Shape on MOUSE_ENTERED event

Thread view: 
hoa123 - 27 Nov 2006 15:50 GMT
I am using PickCanvas class in my application and it is correct to pick a
shape on MOUSE_PRESSED or MOUSE_CLICKED event in MyBehaviour object. Though I
could receive MOUSE_ENTERED or MOUSE_EXITED in MyBehaviour object, the
PickCanvas could not pick a shape (it always returns a null PickResult object
in this case).

My scene graph tree:
BG
|-> TG -> S
|-> TG -> S
|-> Behaviour

I am very appreciate if you could give me some advices. Thanks in advance.
cc - 28 Nov 2006 09:13 GMT
Perhaps, some properties should be setted in your shape object .
sanbikinoraion - 28 Nov 2006 09:45 GMT
> I am using PickCanvas class in my application and it is correct to pick a
> shape on MOUSE_PRESSED or MOUSE_CLICKED event in MyBehaviour object. Though I
[quoted text clipped - 7 lines]
> |-> TG -> S
> |-> Behaviour

As another commenter says, ensure that you have set the shapes to be
pickable by setting the capabilities appropriately (something like
"shape.setCapability(ENABLE_PICK_REPORTING);").

Also, if you've written a custom picker, I suggest making sure that it
can pick something even in the most simple of circumstances (ie. knock
up a scene graph with a huge cube bigger than the viewport and set the
pick to run with x-y parameters 0 0, etc.


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.