When I plot points of a mesh to 2d using bpy_extras.object_utils.world_to_camera_view
the object is centered to the camera. However the actual camera in 3d mode the objects are not centered.
An image is probably the best way to illustrate what I was expecting versus the results I am getting (see below).
Is there anyway to get these meshes off center as the camera actually sees them?
Expected:
Actual:
I don't know if my python code is to blame.. here it is:
..snip.. (for each vector of each mesh)
blenderVertexIndex = bpy.data.objects[obj.name].data.polygons[indexFace].vertices[indexVector]
coordinate3D = bpy.data.objects[obj.name].data.vertices[blenderVertexIndex].co * obj.matrix_world
coordinate2D = bpy_extras.object_utils.world_to_camera_view(bpy.context.scene, bpy.data.objects["Camera"], coordinate3D)