problem summary:
I want to find out the position and distance of vpython label objects, but not in world coordinates but instead in screen coordinates (like the pixel_pos parameter) so that i can make sure labels do not appear too close to each other.
full working example code:
world description (see example code link above):
I have a world with several vertical yellow cylinders. each cylinder has a base at position z=0 and an axis in the direction of vp.vec(0,0,1 of various length.
Each cylinder has an "location" label at the base (white text) and a "value" label at the top (green text). While the world coordinate of each base and top of each cylinder are known, i need to calculate where the labels appear on the screen (in screen pixel coordinates) so to make shure that the labels do not appear too close to each other or overlap.
The user should be able to zoom and pan the camera (userspin = False). The camera axis