Morendral
Member
Hello all, I'm asking for a bit of help here with trying to figure out how to find the 3D coordinates of where a ray intersects a given z plane (shooting for 0 but I'm not sure if that works). I used to have a script that worked, but no longer. I'm using the wonderful SMF, and the latest thing Snidr released has a great built in 2d to 3d function which provides a vector from the camera, given the camera and screen coordinates (in this case the window position of the mouse). I've been looking for a way to get a formula or pseudo code from the web but I've been unsuccessful so far; its either been using to many built in functions, or there are math symbols or concepts which I am unfamiliar with.
Any help would be appreciated, especially pseudocode which could help me figure out the final solution on my own. Thanks!
Any help would be appreciated, especially pseudocode which could help me figure out the final solution on my own. Thanks!