1

How do I get pixel coordinates (in the rendered image) of an object's surface without rendering the scene?

A similar problem would be getting pixel coordinates of an object's vertices, which you can easily achieve by looping over the object's vertices, get their coordinates in world space, then finally use bpy_extras.object_utils.world_to_camera_view() to convert them to pixel coordinates without actually rendering the scene.

So, how do I get pixel coordinates of an object's entire surface (not just its vertices) without rendering the scene?

  • I think you can't really get away from rendering a super simplified version, here is a very similar question to yours: https://blender.stackexchange.com/questions/165777/how-to-find-all-image-coordinates-of-rendered-object/166221#166221 – WhatAMesh Mar 30 '20 at 12:25
  • Alright, then I have another question: can you at least get pixel coordinates of an object's surface when it's covered by another object? – Francesco Cariaggi Mar 30 '20 at 13:44
  • You should Tag with @ WhatAMesh if you want people to get notified. Yes, you can just add a tiny bit of code that only makes one object at a time visible – WhatAMesh May 27 '20 at 15:41

0 Answers0