Find if vertex is occluded

Hello, community!

I’ve been using world_to_camera_view to convert a 3D world coordinate to a projection on the camera. Is there a way to use python to find out whether a vertex is occluded (ie, blocked by a mesh and not visible)?

I’m using Blender 2.75!

Cheerio,
blending_on

Hello again!

I’m considering using ray_trace(co1, co2), a property of the scene object. The documentation is a bit vague - it mentions the first argument is a boolean. Is that boolean true if and only if there is a path from co1 to co2? If so, that’s my answer.

The return value of the function is a tuple:


result, obj, mat, loc, normal = scene.ray_cast(a, b)

result specifies probably if you hit anything