i'm writing a program that involves picking objects in 3d space, but i can't get it to work as it should.i'm using the following code to compute the ray:
//the camera and projection were initialized earlier.......
Vector3 near = new Vector3(GetMouseCoordonates().X, GetMouseCoordonates().Y, 0);Vector3 far = new ...