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.
is there separate mouse click action in openGL and if so will it catch the 3D coordinates???
code in this regard will be highly helpful.
please do the needful.
hoping a quick response…