Replies: 2 comments 1 reply
-
Looking to do something similar too, upvote! |
Beta Was this translation helpful? Give feedback.
-
There was a similar question some time ago, but they wanted to to the inverse - convert a screen point to a 3D point: You want to project a 3D point to a screen coordinate. This is done by simply multiplying the 3D point with the viewProjection matrix. This will give you a point in normalized coordinates (-1 .. 1 on all axis). If the result is lower than -1 or bigger than 1 on any axis, then it's out of screen (actually out of the frustum). You then center and scale the result to convert to pixel coords. |
Beta Was this translation helpful? Give feedback.
-
How to get the central point of an entity or asset and convert it into the 2D screen or view coordinate system?
(ios / android)
Beta Was this translation helpful? Give feedback.
All reactions