In the realm of three-dimensional space, imagine a cube represented by a THREE.Mesh
that has been added to the scene.
cube.position.set( 10, 10, 10 );
scene.add( cube );
Once you have rotated the scene using your mouse, the goal is to cleverly conceal the cube object if its location, relative to the current camera's perspective, extends beyond the origin of the scene at coordinates (0,0,0)
. The challenge lies in understanding how to convert the scene's spatial coordinates to align with those seen from the camera's viewpoint.
Bonus Information:
Being new to the world of 3D graphics, I may lack the appropriate terminology to accurately express the situation. Therefore, any additional insights or clarifications on this subject would be greatly appreciated :)
Update 2015-01-30
An enhanced explanation of my intention: Drawing inspiration from an analogy involving far frustums as mentioned in gaitat's comment, let's consider the task at hand as isolating objects that surpass an imaginary plane resembling a frustum crossing through a specific point. In essence, the objective now shifts towards identifying points situated past that plane originating from the specified point, in this case, (0,0,0).