I’m trying to display text that shows the xy coordinates from the Points of a POP onto the rendered POP itself. Kinda like Blobtracking
, but instead of a video source i use the pop to dat to get xy coordinates. It kinda works but the text is being displayed slighty offset the further it is away from the middle.
I have no clue how to fix this, i tried scaling at different points, but that doesn’t work, since they’re irregularly displaced. anyone got any ideas?
A quick solution could be to use the Geo Text COMP instead of the Text TOP as there you can specify a 3D position for each string.
This is important as your points are in 3D space and the mapping from 3D coordinates to 2D coordinates in the Render TOP is not a 1 to 1 translation but depends on the Camera COMP, the camera’s position and the camera’s view matrix.
If you must use the Text TOP, you can make use of the Projection POP to convert from Cartesian to Screen Space coordinates referencing the same camera you use for rendering. The result then can be used for the text position in your Text TOP.