3D coordinate from mouse cursor position

Here is the minimal working example.
xortest.C (700 Bytes)

Again, it works for me too, but I didn’t understand so far what’s wrong in my program, because it seems to me I’m doing exactly the same thing. I’ll try to look carefully, let’s see if I catch the bug