Ich would like to generate a 2.5D point cloud of a scene from the camera's perspective with python. Let's say the camera has a rosolution of [n,m] pixel and as a result I want to have n*m 3D vectors each starting at the camera and pointing to the surface of the object. I don't expect any code, but please point me in the right direction.

  • 1
    $\begingroup$ you could just render the image and take the Z-Depth. From that Z-Depth image you can easily get everything you want (with some coding of course) $\endgroup$
    – HenrikD
    Commented Dec 8, 2018 at 11:35
  • $\begingroup$ @HenrikD: thanks that works. See also: blender.stackexchange.com/questions/105094/… $\endgroup$
    – haronaut
    Commented May 4, 2019 at 7:40


You must log in to answer this question.

Browse other questions tagged .