Here are some resources I've come across regarding the concept of selecting objects using mouse in THREE.JS
. Some of the initial links may be outdated, but they still provide valuable insights.
Jens Arps penned an insightful piece on this subject where he highlighted the necessity of a custom THREE.Raycaster
for detecting Collada Objects
.
However, post THREE.JS r62, this approach is no longer mandatory. Mouse picking can now be achieved with a Raycaster, Projector, and Vector3. If you refer to Jens Arps's latest publication, you will find a detailed guide on the steps required. Although slightly challenging initially, especially with the inclusion of a FirstPersonControls
camera, eventually everything falls into place.
By studying the provided code, I managed to select and interact with various Collada Objects
.