Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mouse click event for 3D coordinates in java

 
vamsee kanth
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to use open gl to do this or query your model somehow.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic