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
    Dec 8 '18 at 11:35
  • $\begingroup$ @HenrikD: thanks that works. See also: blender.stackexchange.com/questions/105094/… $\endgroup$
    – harandk
    May 4 '19 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.