Notice: Home alone tonight?
Topic: 3d vector from 2d
+Anonymous A — 5 years ago #58,293
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?
+Morbid !vbsvhaneDY — 5 years ago, 1 hour later[T] [B] #604,474
Inject domestos
+Anonymous C — 5 years ago, 20 minutes later, 1 hour after the original post[T] [B] #604,475
@previous (Morbid !vbsvhaneDY)
Great answer, boy.
·Anonymous A (OP) — 5 years ago, 44 minutes later, 2 hours after the original post[T] [B] #604,481
@604,474 (Morbid !vbsvhaneDY)
@previous (C)
not going to 4chan so answer well fuckface
+Anonymous D — 5 years ago, 54 minutes later, 3 hours after the original post[T] [B] #604,483
@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.
Start a new topic to continue this conversation.
Or browse the latest topics.