hi i m trying to find 3d vector from 2d vector made of 2 coordinates basically on screen space logic to world space coordinates.... how do i do that?
@604,474 (Morbid !vbsvhaneDY)
@previous (C)
not going to 4chan so answer well fuckface
@OP
Do you still have the modelview matrix stored somewhere ? If yes you can simply multiply your coordinates of your screen space vector by the inverse of the mv matrix because it is non singular so guaranteed to exist.
If you do have the coordinates of the origin of the world in your camera space and its orientation you can simply create the inverse yourself which is going to be the composite of a translation and a rotation, aka the so called lookat matrix.