Three.js Raycasting with Camera as Origin
问题 I'm trying to determine whether a point in space is visible to the camera or hidden behind other objects in the scene. I'm doing this by casting a ray from the position of the camera to that point in space and testing if that ray is intersected by an set of intersectable objects. My problem is no intersections occur until the camera position itself intersects one of the objects in the set of intersectable objects. I've created a jsfiddle in which, if an intersection is detected, a line is