Hello,
Is there a way to check if plane faces are visible to camera?
Thanks
Hello,
Is there a way to check if plane faces are visible to camera?
Thanks
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.
thanks for the answer