Notifications
Clear all

[Closed] Is this possible?

Hello Everyone,

I was wondering if we can find out which object overlaps the other in a camera view and cut the object behind it.

Here’s what I want to do:
In the attached image, I would like to export the position of the Red Points. I have gone through the vertex render script which allows me to export out the vertices. I want to create paths on an image based on the vertices of the objects.

The Problem is:
The vertex render script allows me to do so but it will export all the vertices no matter if they are behind any geometry or not.

In the image, I would like to export the points and make an ENCLOSED path on the green plane.

Can it be done??

Thanks in advance
-v

2 Replies

if you want to know is a vertex is behind an object relative to the camera, you could fire a ray from the camera in the direction of the vertex, on every object in the scene that is suspected of being in front of that vertex. If you get an intersection, simply check if the hit point is closer to the camera then the vertex, then this object is in front of the vertex.

Thanks for the reply.
I can do the testing, but will take a lot of time to check it…

Considering the tests are done and successful, how do I crop the mesh behind the object?
I need the cropped mesh’s vertices!!!