title: Implementing Ray Picking
body: <p>I have a renderer using directx and openGL, and a 3d scene. The viewport and the window are of the same dimensions.</p>
  
  <p>How do I implement picking given mouse coordinates x and y in a platform independent way?</p>