How would I calculate the Intersection Point at the terrain in a World with the World, view and projection matrices. Now lets say that the intersection Point should be calculated from my 2D cursor coordinates and the part of the terrain behind my cursor should be the intersection Point.
So if I have my mouse at the exact center of my screen the 2D view should look something like this:
This test is easy if we know the "Y" Coordinate, but lets say that we don't know the "Y" Coordinate here (there could be a mountian)... I have absolutly no clue of how to solve this problem efficient. But this is definitivly possible. I Checked out CryEngine and from what I can see they display the collision Point of the bullet to the ground when firing a weapon. Any Help would be very appreciated, Tutorials and whatsoever.
Thanks Mikael.