I need to calculate the exact screen coordinate (xy) of an 3d object (xyz). I need the distance from the center of the screen.
my camera axis always is vector(0,0,-1)
I understand that I can calculate
scene.pixel_to_world to get how many world units is one pixel at the xy-plane (going through the origin) has
and i understand that i can calculate 1/scene.pixel_to_world to get how many pixel a world unit has in the same plane.
However i struggle to determine the distance in pixel from the screen center of any 3d objects with an x,y,z coordinate (with an z coordinate that is other than zero)
Is it possible to use the vector projection to project the position of the 3d object on the screen plane ?