Linked Questions

1 vote
1 answer
310 views

Label points in plane and get position after transformation

As I'm a Blender greenhorn, I need your help. Here is my problem: I have a document added as plane. Next, I want to label certain points within the document. Afterwards, I transform (fold and rotate) ...
1 vote
0 answers
197 views

How to get the pixel coordinates of a rendered object

I want to render an object (plane) and want to know exactly where this object is in the image. To do so, I discovered this answer which was already quite helpful. Here the code I use, based on the ...
1 vote
2 answers
268 views

Programmatically crop render region to geometry

I have a complex geometry nodes setup and a script to render out multiple viewlayers as separate images. For context, I'm generating the fixed imagery necessary for previewing a framed canvas product ...
2 votes
1 answer
764 views

​List all ​occluded objects from camera

I'm trying to have a list of objects that are occluded from camera view. 'bpy.context.scene.ray_cast()' does not help since it also returns occluded verts/objects. I have visited some other answers ...
2 votes
1 answer
2k views

How to find all image coordinates of rendered object?

I got my object and I need to know all pixels that are displaying this object in my rendered picture. I read about a smiliar question here. update I tried this code from here: ...
2 votes
0 answers
71 views

How to find the alignment between a mesh and a render?

I am currently doing the following (all via bpy in Python): Load a triangle mesh in Blender, and convert it to quads. The mesh is a flat object (like a bent piece of pape). Add a texture to the mesh. ...
6 votes
1 answer
419 views

Finding image coordinates of rendered vertex after refraction, distortion, etc

I'm in blender 2.92 working with the Python API. I know how to get the pixel coordinates of a vertex before refraction, lens distortion, etc.--see e.g. How to find image coordinates of the rendered ...
0 votes
0 answers
386 views

Vertex is visible to the camera or obscured

How can you know if a vertex is visible to the camera, or is it obscured by some faces of the same mesh or a mesh of other objects? I need a python solution for Blender 2.92 or above. At the input of ...
29 votes
2 answers
32k views

3x4 camera matrix from blender camera

In computer vision, the transformation from 3D world coordinates to pixel coordinates is often represented by a 3x4 (3 rows by 4 cols) matrix P as detailed below. Given a camera in Blender, I need ...
1 vote
0 answers
182 views

Bounding box of 3D object in 2D render is offset

I am currently trying to translate a 3D object in my Blender scene to a region of interest in the respective 2D render. I have found these solutions 1, 2, and 3 that make use of the ...
5 votes
2 answers
1k views

Perspective Flatten Geometry by Shrinkwrap

I have a 3D scene I need to flatten towards the cammera in order for the geometry to still appear 3D when viewed in a 2D game from the front. I've done this in Maya with the shrinkwrap method and the "...
3 votes
1 answer
3k views

Python: Check if vertex is on camera field of view [duplicate]

Suppose I have the following camera perspective. As you can see some of the Cube vertices are visible from the camera, others are not. Is there a way from python to detect if a certain vertex is in ...
2 votes
1 answer
2k views

AttributeError: 'Mesh' object has no attribute 'view_frame'

I am trying to get the pixel coordinates of the object in the rendered image in blender using the How to find image coordinates of the rendered vertex? But I get the error AttributeError: 'Mesh' ...
1 vote
0 answers
491 views

How to get objects and mesh object vertices from camera view with Python in Blender 2.8 [duplicate]

What I want to do I want to change the power of only the light object visible in the camera view. I want to remove vertices to mesh objects in visible in the camera view. Not remove mesh objects, ...
4 votes
1 answer
951 views

Blender scripting: Circle Selectiong in the "3D View"

In Blender2.74, I want to circle-select the vertices in the "3D View", using this: circle_select(x = 300, y = 400, radius = 30). I found this question. So I know ...

15 30 50 per page