When a user is navigating through a scene in my application, I want to be able to identify the visible faces on the screen (excluding those that are not in the camera's field of view or hidden by other objects).
One approach I considered was using the Raycaster
class to cast rays on each pixel of the screen, but I am concerned about potential performance issues (although real-time capabilities are not necessary, I still want reasonable speed).
I am aware of the z-buffer functionality that determines which faces are visible due to not being hidden, and I'm wondering if there is a straightforward way to leverage this feature in Three.js to identify those faces.
Appreciate any guidance on this matter!