Determine if Plane is seen by Camera

Hello,

Is there a way to check if plane faces are visible to camera?

Thanks

Hi @Lukas_31!

I think the topic below can help you. :point_down:

1 Like

Thanks for reply,

meshInstance.visibleThisFrame

returns true even if the plane faces are not visible to the camera.
I need to determine when the faces are not visible.

Can you describe why is it not visible? Is it outside of camera frustum? If so, then that method should work. If it is within the frustum, then you have to come up with a logic that defines if it is visible or not.

I just have a plane that I’m rotating, and I want to know from the code if it is visible or not.

Sorry, not opening random links, but if you want to know if the plane is rotated towards the camera, you can use a dot product of the camera view direction and the plane direction. If the value is negative, the plane is rotated towards the camera.

3 Likes

thanks for the answer