Linked Questions

3
votes
1answer
1k 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 ...
3
votes
0answers
381 views

3D Mesh Vertex to 2D Pixel Coordinates [duplicate]

I can obtain the coordinate of a mesh vertex with python via wco = mesh.vertices[mesh_vert_idx].co Further, it is possible to convert this coordinate system to ...
1
vote
0answers
299 views

How can I get a list with the 2D screen coordinates of visible Vertices in 3D view without having to convert 3D to 2D? [duplicate]

The bgl module allows us to obtain various information displayed in 3D Blender view. For example, I made a script that gets the 3D coordinate where the mouse cursor hits a object: ...
1
vote
0answers
108 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, ...
19
votes
3answers
10k 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 ...
3
votes
4answers
1k views

Mesh silhouette as a polygon or pixels surrounded by the silhouette on the rendered image?

Here is my target application. The rendered image with rendered meshes is used in an interactive application. A user may click or point the cursor to an object on the image. Information related to ...
4
votes
1answer
1k views

Alternative to redraw_timer()

I have a script whose goal is to find all the visible vertices from the camera view. The simplest solution should work as follows: Go Into Camera View Update the view with ...
2
votes
2answers
1k views

Python: Obtaining Object Contour Pixels

I would like to obtain the pixel coordinates of an object's outline in the currently-rendered scene, using the bpy module. I found this, which is related, but I'm still not sure how to do it. Has ...
4
votes
1answer
603 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 ...
2
votes
1answer
964 views

blender camera from 3x4 matrix

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 P I need code to return a ...
0
votes
0answers
833 views

How to project a point from 3D to 2D in blender?

I know how to obtain the 4x4 projection matrix of the camera in Blender, but it seems its format is different from the standard camera projection matrices. I would appreciate it if someone explains ...
0
votes
1answer
634 views

'Matrix' object has no attribute 'z' in world_to_camera_view

I'm trying to use the following code to get 2D points out of Blender. Ultimately my goal is to generate HPGL for a pen plotter but for now I'll be happy with a printed list of coordinates. Whenever ...
2
votes
0answers
641 views

How to find if the vertex of an object is occluded by another vertex/face in front of it from a given viewpoint?

I can use the recipes on this page: How to find image coordinates of the rendered vertex?. But is there a way to know if a point is being occluded by some point/face in front of it from the viewpoint ...
0
votes
1answer
470 views

How to map/project bone coordinates to camera coordinates sytem/view?

I need the bone-head coordinates to be mapped on to the camera view. Actual scenario is to obtain the 3D coordinates of bone/joint. This is how I do it now. ...
1
vote
0answers
470 views

RayCasting from Perspective Camera View into 3D Scene?

I am using Templates->Python->Operator Modal View3D Raycast template script which uses event.mouse_region_x, event.mouse_region_y to create raycasts into the ...

15 30 50 per page