Calculating 3D position from 2D mouse coordinates
Hi,
I would like to map 2d coordinates to a 3d plane where z=0. I realise that transforming viewspace coordinates using an inverse of the projection matrix will give me this, but the problem is getting the screen z depth at any given x,y point. There is no z-buffer to read from, so this must be calculated just from the mouse coordinates.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement