Which points are behind the object (from camera pov)

   959   1   0
User Avatar
Member
22 posts
Joined: Nov. 2017
Offline
I'm trying to figure out which points on Object B are occluded by Object A from camera's point of view. What's the best way to figure this out?

Thank you.
User Avatar
Member
94 posts
Joined: April 2011
Offline
Hi,
The best way for you would be to test if there is any occlusion between the points in the object B and the object A based on the camera direction.
For that, you can use the intersect vex function, and then if the returned value is negative, it would mean that no object are between this point and the camera.

I included a quick example on how to do it

Attachments:
Object_occluded_between_cam.hiplc (118.8 KB)

  • Quick Links