*
The moose likes Swing / AWT / SWT and the fly likes mouse click event  for 3D coordinates in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "mouse click event  for 3D coordinates in java" Watch "mouse click event  for 3D coordinates in java" New topic
Author

mouse click event for 3D coordinates in java

vamsee kanth
Greenhorn

Joined: Nov 08, 2004
Posts: 1
when i use mouse click event in java i can catch the x coordinate and the y coordinate of the point clicked by using event.getX() and event.getY(). But when similarly i use event.getZ(),it is giving error.

i desperately need the Z coordinate also to be read as iam working on OPENGL and java and developing a graphics tool for which this Z coordinate is very very important.

please somebody help me how to go about it or any other way by which i can read all the three coordinates X,Y,Z of a mouse click action.

code in this regard will be highly helpful.

please do the needful.
hoping a quick response...........

thankx
Don Kiddick
Ranch Hand

Joined: Dec 12, 2002
Posts: 580
You will need to use open gl to do this or query your model somehow.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mouse click event for 3D coordinates in java
 
Similar Threads
MouseDragg
I can't figure out why this is not working!
How does Java access JavaScript Values
get two coordinates
Firing a mouse clicked event