[DiscordArchive] Does that look right?
[DiscordArchive] Does that look right?
Archived author: Kaev • Posted: 2022-11-13T21:01:12.968000+00:00
Original source
screenPos.x \*= (viewportWidth * viewportHeight);
screenPos.y \*= (viewportWidth * viewportHeight);
screenPos.z \*= (viewportWidth * viewportHeight);
Archived author: Pursche • Posted: 2022-11-13T21:01:33.038000+00:00
Original source
Actually you can drop the third axis of the screenpos at this point, it would be depth which we don't care about.
Archived author: bandysc • Posted: 2022-11-13T21:02:12.671000+00:00
Original source
x * width, y * height
Archived author: Kaev • Posted: 2022-11-13T21:02:56.233000+00:00
Original source
wouldnt it be z instead of y because z is what y would be in the 3d coordinates?
Archived author: Kaev • Posted: 2022-11-13T21:03:16.190000+00:00
Original source
y is up i think
Archived author: bandysc • Posted: 2022-11-13T21:03:42.034000+00:00
Original source
at this point Y is really screen Y as far as I can see
Archived author: Kaev • Posted: 2022-11-13T21:03:51.680000+00:00
Original source
kk
Archived author: Kaev • Posted: 2022-11-13T21:04:00.559000+00:00
Original source
so just
screenPos.x \*= viewportWidth;
screenPos.y \*= viewportHeight;
Archived author: Kaev • Posted: 2022-11-13T21:04:51.080000+00:00
Original source
i mean yeah that makes sense
Archived author: Pursche • Posted: 2022-11-13T21:05:01.609000+00:00
Original source
Yep