I’m interested in displaying a text label over a geometry that is moving around in 3D space. However I would like the text label to move only in 2D space, as if there is a 2D overlay projected onto the screen. If I set the label position to that of the 3D object but keep its Z value fixed, then the label only meets the geometry when the latter is in the same Z position:
What kind of operators should I look into to translate the 3D position of the geometry to a 2D position, such that the 2D position always occludes the 3D position relative to the camera? Is there an efficient way to do this?
Thank you in advance, and apologies if my terminology is off. Please let me know if I need to clarify.